Move helper from facts_parser.rs to facts.rs
commit8031c66e894729b38b62b45f0b741adc389035da
authorMillie Chen <milliechen@fb.com>
Thu, 27 Jan 2022 05:00:11 +0000 (26 21:00 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Thu, 27 Jan 2022 05:23:58 +0000 (26 21:23 -0800)
tree542e99eda39be5371b73444773c88a56068ab772
parent457bf580c01833f408af60832240bbcee47e546b
Move helper from facts_parser.rs to facts.rs

Summary: With the new decl parser based facts [rolled out to 100%](https://www.internalfb.com/diff/D33688656), we're hoping to eventually remove `facts_parser.rs`. This diff removes a dependency on that file by copying over a helper function.

Reviewed By: shayne-fletcher

Differential Revision: D33721403

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