remove some unsafe string conversion
commit54e050fbae86df7a96974bc0d8201671b678c777
authorAaron Orenstein <aorenste@fb.com>
Wed, 9 Feb 2022 16:22:00 +0000 (9 08:22 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Wed, 9 Feb 2022 16:38:34 +0000 (9 08:38 -0800)
tree93082eeb4b7e9ac7aa607b7c80d938f8a4547f51
parent3de7a2022d3fdf85eba6631b2b5f31acd6b68b74
remove some unsafe string conversion

Summary: Now that we have a byte-oriented stream for bytecode_printer we can start emitting some byte data directly instead of (unsafely) converting through `str` first.

Reviewed By: shayne-fletcher

Differential Revision: D33062798

fbshipit-source-id: 121f529e6dcdd9609838c6485d8f0cace58ccb0e
hphp/hack/Cargo.lock
hphp/hack/src/hackc/bytecode_printer/Cargo.toml
hphp/hack/src/hackc/bytecode_printer/print.rs
hphp/hack/src/hackc/hhbc/cargo/hhbc_id/Cargo.toml
hphp/hack/src/hackc/hhbc/hhbc_id.rs
hphp/hack/src/hackc/utils/string_utils.rs
hphp/hack/src/utils/escaper.rs
hphp/hack/src/utils/ffi/Cargo.toml
hphp/hack/src/utils/ffi/ffi.rs