Move coeffect printing into bytecode_printer
commit953e770899f6dc870c171eec950c7ee917e0f6c8
authorAaron Orenstein <aorenste@fb.com>
Wed, 16 Feb 2022 19:58:28 +0000 (16 11:58 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Wed, 16 Feb 2022 19:59:46 +0000 (16 11:59 -0800)
treebb4773510064a3228e50651d681c13b54ee92c52
parentb761b320d8c1057ad1b29abf84650162954e5fae
Move coeffect printing into bytecode_printer

Summary:
All the rest of the hhas printing is isolated to the bytecode_printer module.  No reason that printing coeffects should be any different.

While in there also modify the code to not use unsafe string conversion.

Reviewed By: oulgen, edwinsmith

Differential Revision: D34176614

fbshipit-source-id: 778f36f21f66bb67ab24aadc923e34ff72bd7b99
hphp/hack/Cargo.lock
hphp/hack/src/hackc/bytecode_printer/coeffects.rs [new file with mode: 0644]
hphp/hack/src/hackc/bytecode_printer/context.rs
hphp/hack/src/hackc/bytecode_printer/lib.rs
hphp/hack/src/hackc/bytecode_printer/print.rs
hphp/hack/src/hackc/bytecode_printer/write.rs
hphp/hack/src/hackc/hhbc/hhas_coeffects.rs
hphp/hack/src/naming/Cargo.toml
hphp/hack/src/naming/naming_special_names.rs