Skip to content

Commit 36afba7

Browse files
fitzgenalexcrichton
authored andcommitted
Bump bumpalo (#1925)
* Fix typo in comment * Bump `bumpalo` dependency to 3.0.0 * Fix warning about unused loop label
1 parent 580daab commit 36afba7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

crates/backend/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spans = []
1616
extra-traits = ["syn/extra-traits"]
1717

1818
[dependencies]
19-
bumpalo = "2.1"
19+
bumpalo = "3.0.0"
2020
lazy_static = "1.0.0"
2121
log = "0.4"
2222
proc-macro2 = "1.0"

crates/backend/src/encode.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ impl Interner {
6464
fn intern_str(&self, s: &str) -> &str {
6565
// NB: eventually this could be used to intern `s` to only allocate one
6666
// copy, but for now let's just "transmute" `s` to have the same
67-
// lifetmie as this struct itself (which is our main goal here)
68-
bumpalo::collections::String::from_str_in(s, &self.bump).into_bump_str()
67+
// lifetime as this struct itself (which is our main goal here)
68+
self.bump.alloc_str(s)
6969
}
7070

7171
/// Given an import to a local module `id` this generates a unique module id

crates/webidl/src/util.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ impl<'src> FirstPassRecord<'src> {
424424
// signature where that and all remaining optional arguments are
425425
// undefined.
426426
let mut signatures = Vec::new();
427-
'outer: for signature in data.signatures.iter() {
427+
for signature in data.signatures.iter() {
428428
let mut idl_args = Vec::with_capacity(signature.args.len());
429429
for (i, arg) in signature.args.iter().enumerate() {
430430
if arg.optional {

0 commit comments

Comments
 (0)