Skip to content

Commit 1b2abca

Browse files
authored
Update wasm-tools family of crates (#424)
Nothing major, just keeping up to date.
1 parent ad62c5a commit 1b2abca

3 files changed

Lines changed: 25 additions & 27 deletions

File tree

Cargo.lock

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ env_logger = "0.9.1"
2727

2828
wasmtime = { git = "https://github.com/bytecodealliance/wasmtime", features = ["component-model"] }
2929
wasmtime-environ = { git = "https://github.com/bytecodealliance/wasmtime" }
30-
wasmprinter = "0.2.42"
31-
wasmparser = "0.93.0"
32-
wasm-encoder = "0.19.0"
33-
wat = "1.0.50"
30+
wasmprinter = "0.2.43"
31+
wasmparser = "0.94.0"
32+
wasm-encoder = "0.19.1"
33+
wat = "1.0.51"
3434

3535
wit-bindgen-core = { path = 'crates/bindgen-core', version = '0.3.0' }
3636
wit-bindgen-gen-guest-c = { path = 'crates/gen-guest-c', version = '0.3.0' }

crates/wit-component/src/gc.rs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -250,16 +250,14 @@ impl<'a> Module<'a> {
250250
for s in section {
251251
match s? {
252252
Name::Function(map) => {
253-
let mut map = map.get_map()?;
254-
for _ in 0..map.get_count() {
255-
let naming = map.read()?;
253+
for naming in map {
254+
let naming = naming?;
256255
self.func_names.insert(naming.index, naming.name);
257256
}
258257
}
259258
Name::Global(map) => {
260-
let mut map = map.get_map()?;
261-
for _ in 0..map.get_count() {
262-
let naming = map.read()?;
259+
for naming in map {
260+
let naming = naming?;
263261
self.global_names.insert(naming.index, naming.name);
264262
}
265263
}
@@ -715,7 +713,7 @@ impl<'a> Module<'a> {
715713
macro_rules! define_visit {
716714
($(@$p:ident $op:ident $({ $($arg:ident: $argty:ty),* })? => $visit:ident)*) => {
717715
$(
718-
fn $visit(&mut self, _offset: usize $(, $($arg: $argty),*)?) {
716+
fn $visit(&mut self $(, $($arg: $argty),*)?) {
719717
$(
720718
$(
721719
define_visit!(mark_live self $arg $arg);
@@ -822,7 +820,7 @@ macro_rules! define_encode {
822820
($(@$p:ident $op:ident $({ $($arg:ident: $argty:ty),* })? => $visit:ident)*) => {
823821
$(
824822
#[allow(clippy::drop_copy)]
825-
fn $visit(&mut self, _offset: usize $(, $($arg: $argty),*)?) {
823+
fn $visit(&mut self $(, $($arg: $argty),*)?) {
826824
#[allow(unused_imports)]
827825
use wasm_encoder::Instruction::*;
828826
$(

0 commit comments

Comments
 (0)