Change representation of Symbol from Hc<Box<str>> to Hc<str>
commitefbbc59bed2bb18c4ddeb4577452aa05fa277779
authorJake Bailey (Hacklang) <jakebailey@fb.com>
Wed, 26 Jan 2022 00:14:05 +0000 (25 16:14 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Wed, 26 Jan 2022 00:24:35 +0000 (25 16:24 -0800)
tree460066b248c5d9d8c56f2664f4daf79d78a08fbb
parente5c35478272115f2cf8ea3aacf9a808239a0ab91
Change representation of Symbol from Hc<Box<str>> to Hc<str>

Summary: The previous two diffs laid the foundation for storing dynamically sized types in an Hc, which this diff does (by adding the `?Sized` bound). This allows us to construct `Hc<str>` instead of `Hc<Box<str>>`, getting rid of an unnecessary indirection.

Differential Revision: D33698454

fbshipit-source-id: 0865c0f9b041a68a7bb6b7bddf66a378f985d66c
hphp/hack/src/rupro/lib/hcons/mod.rs
hphp/hack/src/rupro/lib/pos/symbol.rs
hphp/hack/src/rupro/lib/pos_provider.rs