diff options
| author | Henry Gressmann <mail@henrygressmann.de> | 2024-10-05 23:05:42 +0200 |
|---|---|---|
| committer | Henry Gressmann <mail@henrygressmann.de> | 2024-10-05 23:05:42 +0200 |
| commit | c00031a82782393eb32a9143aedb61e902a7c5d0 (patch) | |
| tree | 4614a2705bf9fdcc6f0291e9a7ea694a8ee31662 /crates/parser/src/visit.rs | |
| parent | a3ca2af26f066900e2db550bbd608aceadf1ac7c (diff) | |
chore: update deps
Signed-off-by: Henry Gressmann <mail@henrygressmann.de>
Diffstat (limited to 'crates/parser/src/visit.rs')
| -rw-r--r-- | crates/parser/src/visit.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crates/parser/src/visit.rs b/crates/parser/src/visit.rs index 4e39a5a..c9e5eac 100644 --- a/crates/parser/src/visit.rs +++ b/crates/parser/src/visit.rs @@ -8,7 +8,7 @@ use wasmparser::{FuncValidator, FuncValidatorAllocations, FunctionBody, VisitOpe struct ValidateThenVisit<'a, R: WasmModuleResources>(usize, &'a mut FunctionBuilder<R>); macro_rules! validate_then_visit { - ($( @$proposal:ident $op:ident $({ $($arg:ident: $argty:ty),* })? => $visit:ident)*) => {$( + ($( @$proposal:ident $op:ident $({ $($arg:ident: $argty:ty),* })? => $visit:ident ($($ann:tt)*))*) => {$( fn $visit(&mut self $($(,$arg: $argty)*)?) -> Self::Output { self.1.$visit($($($arg.clone()),*)?); self.1.validator_visitor(self.0).$visit($($($arg),*)?)?; @@ -118,8 +118,8 @@ impl<R: WasmModuleResources> FunctionBuilder<R> { } macro_rules! impl_visit_operator { - ($(@$proposal:ident $op:ident $({ $($arg:ident: $argty:ty),* })? => $visit:ident)*) => { - $(impl_visit_operator!(@@$proposal $op $({ $($arg: $argty),* })? => $visit);)* + ($(@$proposal:ident $op:ident $({ $($arg:ident: $argty:ty),* })? => $visit:ident ($($ann:tt)*))*) => { + $(impl_visit_operator!(@@$proposal $op $({ $($arg: $argty),* })? => $visit ($($ann:tt)*));)* }; (@@mvp $($rest:tt)* ) => {}; @@ -129,7 +129,7 @@ macro_rules! impl_visit_operator { (@@bulk_memory $($rest:tt)* ) => {}; (@@tail_call $($rest:tt)* ) => {}; // (@@simd $($rest:tt)* ) => {}; - (@@$proposal:ident $op:ident $({ $($arg:ident: $argty:ty),* })? => $visit:ident) => { + (@@$proposal:ident $op:ident $({ $($arg:ident: $argty:ty),* })? => $visit:ident ($($ann:tt)*)) => { #[cold] fn $visit(&mut self $($(,$arg: $argty)*)?) { self.unsupported(stringify!($visit)) @@ -137,7 +137,7 @@ macro_rules! impl_visit_operator { }; } -impl<'a, R: WasmModuleResources> wasmparser::VisitOperator<'a> for FunctionBuilder<R> { +impl<R: WasmModuleResources> wasmparser::VisitOperator<'_> for FunctionBuilder<R> { type Output = (); wasmparser::for_each_operator!(impl_visit_operator); |
