File tree Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -364,6 +364,15 @@ macro_rules! make_ast_visitor {
364
364
try_v!( visit_span!( vis, span) ) ;
365
365
return_result!( V )
366
366
}
367
+
368
+ pub fn walk_label<$( $lt, ) ? V : $trait$( <$lt>) ?>(
369
+ vis: & mut V ,
370
+ label: ref_t!( Label )
371
+ ) -> result!( V ) {
372
+ let Label { ident } = label;
373
+ try_v!( vis. visit_ident( ident) ) ;
374
+ return_result!( V )
375
+ }
367
376
}
368
377
}
369
378
@@ -509,13 +518,6 @@ pub mod visit {
509
518
V :: Result :: output ( )
510
519
}
511
520
512
- pub fn walk_label < ' a , V : Visitor < ' a > > (
513
- visitor : & mut V ,
514
- Label { ident } : & ' a Label ,
515
- ) -> V :: Result {
516
- visitor. visit_ident ( ident)
517
- }
518
-
519
521
pub fn walk_lifetime < ' a , V : Visitor < ' a > > ( visitor : & mut V , lifetime : & ' a Lifetime ) -> V :: Result {
520
522
let Lifetime { id : _, ident } = lifetime;
521
523
visitor. visit_ident ( ident)
@@ -2140,10 +2142,6 @@ pub mod mut_visit {
2140
2142
smallvec ! [ param]
2141
2143
}
2142
2144
2143
- fn walk_label < T : MutVisitor > ( vis : & mut T , Label { ident } : & mut Label ) {
2144
- vis. visit_ident ( ident) ;
2145
- }
2146
-
2147
2145
fn walk_lifetime < T : MutVisitor > ( vis : & mut T , Lifetime { id, ident } : & mut Lifetime ) {
2148
2146
vis. visit_id ( id) ;
2149
2147
vis. visit_ident ( ident) ;
You can’t perform that action at this time.
0 commit comments