Make Symbol a type alias for Hc<Box<str>>
commit20ff1590735905e763cd4b98ff6943d821fd95ee
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:32 +0000 (25 16:24 -0800)
tree3351ee7474dd81ddfc45869daac93a49764b371a
parent354baccddf6e813a9f36746f6dca790ad52ff0a4
Make Symbol a type alias for Hc<Box<str>>

Summary: Instead of making Symbol an opaque type, just make it an alias. Then, if we provide convenient impls for `Hc<Box<str>>` (like `AsRef<Path>` or `PartialEq<String>`) they can be used directly without having to write forwarding impls for the `Symbol` type.

Reviewed By: shayne-fletcher

Differential Revision: D33698455

fbshipit-source-id: caa1367c95ecde17e42d99abe48b7202ab8c6e94
hphp/hack/src/rupro/lib/hcons/mod.rs
hphp/hack/src/rupro/lib/naming/naming.rs
hphp/hack/src/rupro/lib/pos/relative_path.rs
hphp/hack/src/rupro/lib/pos/symbol.rs