diff --git a/crates/backend/Cargo.toml b/crates/backend/Cargo.toml index 8caffd62a..7b1b3d25d 100644 --- a/crates/backend/Cargo.toml +++ b/crates/backend/Cargo.toml @@ -16,7 +16,7 @@ spans = [] extra-traits = ["syn/extra-traits"] [dependencies] -bumpalo = "2.1" +bumpalo = "3.0.0" lazy_static = "1.0.0" log = "0.4" proc-macro2 = "1.0" diff --git a/crates/backend/src/encode.rs b/crates/backend/src/encode.rs index c678dd8f9..d60e34c67 100644 --- a/crates/backend/src/encode.rs +++ b/crates/backend/src/encode.rs @@ -64,8 +64,8 @@ impl Interner { fn intern_str(&self, s: &str) -> &str { // NB: eventually this could be used to intern `s` to only allocate one // copy, but for now let's just "transmute" `s` to have the same - // lifetmie as this struct itself (which is our main goal here) - bumpalo::collections::String::from_str_in(s, &self.bump).into_bump_str() + // lifetime as this struct itself (which is our main goal here) + self.bump.alloc_str(s) } /// Given an import to a local module `id` this generates a unique module id diff --git a/crates/webidl/src/util.rs b/crates/webidl/src/util.rs index 45156a261..c15a6d1ba 100644 --- a/crates/webidl/src/util.rs +++ b/crates/webidl/src/util.rs @@ -424,7 +424,7 @@ impl<'src> FirstPassRecord<'src> { // signature where that and all remaining optional arguments are // undefined. let mut signatures = Vec::new(); - 'outer: for signature in data.signatures.iter() { + for signature in data.signatures.iter() { let mut idl_args = Vec::with_capacity(signature.args.len()); for (i, arg) in signature.args.iter().enumerate() { if arg.optional {