File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -291,9 +291,6 @@ macro_rules! make_ast_visitor {
291
291
fn visit_precise_capturing_arg( & mut self , arg: & ' ast PreciseCapturingArg ) {
292
292
walk_precise_capturing_arg( self , arg) ;
293
293
}
294
- fn visit_variant_discr( & mut self , discr: & ' ast AnonConst ) -> Self :: Result {
295
- self . visit_anon_const( discr)
296
- }
297
294
fn visit_mac_def( & mut self , _mac: & ' ast MacroDef , _id: NodeId ) -> Self :: Result {
298
295
Self :: Result :: output( )
299
296
}
@@ -343,6 +340,11 @@ macro_rules! make_ast_visitor {
343
340
make_visit!{ P !( Local ) ; visit_local, walk_local}
344
341
make_visit!{ P !( Pat ) ; visit_pat, walk_pat}
345
342
make_visit!{ P !( Ty ) ; visit_ty, walk_ty}
343
+
344
+
345
+ fn visit_variant_discr( & mut self , discr: ref_t!( AnonConst ) ) -> result!( ) {
346
+ self . visit_anon_const( discr)
347
+ }
346
348
}
347
349
348
350
pub fn walk_angle_bracketed_parameter_data<$( $lt, ) ? V : $trait$( <$lt>) ?>(
You can’t perform that action at this time.
0 commit comments