Remove unsafe usage in backend/src/encode.rs

Using `unsafe` was just a little too eager there so let's use an
off-the-shelf solution for solving the actual problem we have, which is
to allocate strings with a lifetime of `Interner` rather than
deduplicating strings.
This commit is contained in:
Alex Crichton
2019-03-05 12:27:39 -08:00
parent 93a1301c9f
commit f3f3ebee3a
3 changed files with 10 additions and 18 deletions

View File

@ -2,6 +2,7 @@
#![cfg_attr(feature = "extra-traits", deny(missing_debug_implementations))]
#![doc(html_root_url = "https://docs.rs/wasm-bindgen-backend/0.2")]
extern crate bumpalo;
#[macro_use]
extern crate log;
extern crate proc_macro2;