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 @@ -297,9 +297,6 @@ macro_rules! make_ast_visitor {
297
297
fn visit_precise_capturing_arg( & mut self , arg: & ' ast PreciseCapturingArg ) {
298
298
walk_precise_capturing_arg( self , arg) ;
299
299
}
300
- fn visit_variant_discr( & mut self , discr: & ' ast AnonConst ) -> Self :: Result {
301
- self . visit_anon_const( discr)
302
- }
303
300
fn visit_mac_def( & mut self , _mac: & ' ast MacroDef , _id: NodeId ) -> Self :: Result {
304
301
Self :: Result :: output( )
305
302
}
@@ -349,6 +346,11 @@ macro_rules! make_ast_visitor {
349
346
make_visit!{ P !( Local ) ; visit_local, walk_local}
350
347
make_visit!{ P !( Pat ) ; visit_pat, walk_pat}
351
348
make_visit!{ P !( Ty ) ; visit_ty, walk_ty}
349
+
350
+
351
+ fn visit_variant_discr( & mut self , discr: ref_t!( AnonConst ) ) -> result!( ) {
352
+ self . visit_anon_const( discr)
353
+ }
352
354
}
353
355
354
356
pub fn walk_angle_bracketed_parameter_data<$( $lt, ) ? V : $trait$( <$lt>) ?>(
You can’t perform that action at this time.
0 commit comments