@@ -8,7 +8,7 @@ use wasmparser::{FuncValidator, FuncValidatorAllocations, FunctionBody, VisitOpe
88
99struct ValidateThenVisit < ' a , R : WasmModuleResources > ( usize , & ' a mut FunctionBuilder < R > ) ;
1010macro_rules! validate_then_visit {
11- ( $( @$proposal: ident $op: ident $( { $( $arg: ident: $argty: ty) ,* } ) ? => $visit: ident) * ) => { $(
11+ ( $( @$proposal: ident $op: ident $( { $( $arg: ident: $argty: ty) ,* } ) ? => $visit: ident ( $ ( $ann : tt ) * ) ) * ) => { $(
1212 fn $visit( & mut self $( $( , $arg: $argty) * ) ?) -> Self :: Output {
1313 self . 1. $visit( $( $( $arg. clone( ) ) ,* ) ?) ;
1414 self . 1 . validator_visitor( self . 0 ) . $visit( $( $( $arg) ,* ) ?) ?;
@@ -118,8 +118,8 @@ impl<R: WasmModuleResources> FunctionBuilder<R> {
118118}
119119
120120macro_rules! impl_visit_operator {
121- ( $( @$proposal: ident $op: ident $( { $( $arg: ident: $argty: ty) ,* } ) ? => $visit: ident) * ) => {
122- $( impl_visit_operator!( @@$proposal $op $( { $( $arg: $argty) ,* } ) ? => $visit) ; ) *
121+ ( $( @$proposal: ident $op: ident $( { $( $arg: ident: $argty: ty) ,* } ) ? => $visit: ident ( $ ( $ann : tt ) * ) ) * ) => {
122+ $( impl_visit_operator!( @@$proposal $op $( { $( $arg: $argty) ,* } ) ? => $visit ( $ ( $ann : tt ) * ) ) ; ) *
123123 } ;
124124
125125 ( @@mvp $( $rest: tt) * ) => { } ;
@@ -129,15 +129,15 @@ macro_rules! impl_visit_operator {
129129 ( @@bulk_memory $( $rest: tt) * ) => { } ;
130130 ( @@tail_call $( $rest: tt) * ) => { } ;
131131 // (@@simd $($rest:tt)* ) => {};
132- ( @@$proposal: ident $op: ident $( { $( $arg: ident: $argty: ty) ,* } ) ? => $visit: ident) => {
132+ ( @@$proposal: ident $op: ident $( { $( $arg: ident: $argty: ty) ,* } ) ? => $visit: ident ( $ ( $ann : tt ) * ) ) => {
133133 #[ cold]
134134 fn $visit( & mut self $( $( , $arg: $argty) * ) ?) {
135135 self . unsupported( stringify!( $visit) )
136136 }
137137 } ;
138138}
139139
140- impl < ' a , R : WasmModuleResources > wasmparser:: VisitOperator < ' a > for FunctionBuilder < R > {
140+ impl < R : WasmModuleResources > wasmparser:: VisitOperator < ' _ > for FunctionBuilder < R > {
141141 type Output = ( ) ;
142142 wasmparser:: for_each_operator!( impl_visit_operator) ;
143143
0 commit comments