Remove GlobalAllocator
commit221b47ec60d6d87394635e94cde11dac66a7283a
authorJake Bailey (Hacklang) <jakebailey@fb.com>
Thu, 3 Mar 2022 01:59:44 +0000 (2 17:59 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Thu, 3 Mar 2022 01:59:44 +0000 (2 17:59 -0800)
tree2d8b08964ef14b7db5e685d6a11e9b4f3df3be6d
parent6bc812c619170e0b89cd80a8c989b0cf414c5257
Remove GlobalAllocator

Summary: Remove the "GlobalAllocator" struct responsible for hashconsing strings, byte strings, symbols, and RelativePaths. Migrate constructors to associated functions instead. Prefer the name `new` over `intern` to make it obvious how these types are intended to be constructed.

Reviewed By: shayne-fletcher

Differential Revision: D34594110

fbshipit-source-id: 7463c1fdc412a907af3596bf68650b62b8288379
15 files changed:
hphp/hack/src/rupro/decl_file.rs
hphp/hack/src/rupro/decl_repo.rs
hphp/hack/src/rupro/lib/alloc/alloc_bytes.rs [deleted file]
hphp/hack/src/rupro/lib/alloc/alloc_decl_defs.rs
hphp/hack/src/rupro/lib/alloc/alloc_pos.rs
hphp/hack/src/rupro/lib/alloc/alloc_reason.rs
hphp/hack/src/rupro/lib/alloc/mod.rs
hphp/hack/src/rupro/lib/naming_provider.rs
hphp/hack/src/rupro/lib/pos/pos.rs
hphp/hack/src/rupro/lib/pos/relative_path.rs
hphp/hack/src/rupro/lib/pos/symbol.rs
hphp/hack/src/rupro/lib/special_names.rs
hphp/hack/src/rupro/lib/typing.rs
hphp/hack/src/rupro/lib/typing_toplevel.rs
hphp/hack/src/rupro/stc_ffi.rs