fix type name formatting
commit68052c236b085c24f962327c275417648ae0ca1d
authorMillie Chen <milliechen@fb.com>
Wed, 10 Nov 2021 17:06:03 +0000 (10 09:06 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Wed, 10 Nov 2021 17:08:20 +0000 (10 09:08 -0800)
treee6cce905859503675c005611171a6079a898e87b
parentd49cafb849768c6d439883886a7d71fb5f5edee2
fix type name formatting

Summary: It seems like type names prefixed with '\\' after naming are subject to xhp formatting, but those without the prefix should not be. This diff adds that condition, also removes an unnecessary string allocation.

Reviewed By: shayne-fletcher

Differential Revision: D32292419

fbshipit-source-id: daf176a3ca2187cdba496dab19132f74b615a08f
hphp/hack/src/facts/facts.rs