@@ -1149,7 +1149,7 @@ impl InvocationCollectorNode for P<ast::Item> {
11491149 fragment. make_items ( )
11501150 }
11511151 fn walk_map < V : MutVisitor > ( self , visitor : & mut V ) -> Self :: OutputTy {
1152- walk_item ( self , None , visitor )
1152+ walk_item ( visitor , self , None )
11531153 }
11541154 fn is_mac_call ( & self ) -> bool {
11551155 matches ! ( self . kind, ItemKind :: MacCall ( ..) )
@@ -1293,7 +1293,7 @@ impl InvocationCollectorNode for AstNodeWrapper<P<ast::AssocItem>, TraitItemTag>
12931293 fragment. make_trait_items ( )
12941294 }
12951295 fn walk_map < V : MutVisitor > ( self , visitor : & mut V ) -> Self :: OutputTy {
1296- walk_item ( self . wrapped , Some ( AssocCtxt :: Trait ) , visitor )
1296+ walk_item ( visitor , self . wrapped , Some ( AssocCtxt :: Trait ) )
12971297 }
12981298 fn is_mac_call ( & self ) -> bool {
12991299 matches ! ( self . wrapped. kind, AssocItemKind :: MacCall ( ..) )
@@ -1334,7 +1334,7 @@ impl InvocationCollectorNode for AstNodeWrapper<P<ast::AssocItem>, ImplItemTag>
13341334 fragment. make_impl_items ( )
13351335 }
13361336 fn walk_map < V : MutVisitor > ( self , visitor : & mut V ) -> Self :: OutputTy {
1337- walk_item ( self . wrapped , Some ( AssocCtxt :: Impl ) , visitor )
1337+ walk_item ( visitor , self . wrapped , Some ( AssocCtxt :: Impl ) )
13381338 }
13391339 fn is_mac_call ( & self ) -> bool {
13401340 matches ! ( self . wrapped. kind, AssocItemKind :: MacCall ( ..) )
@@ -1372,7 +1372,7 @@ impl InvocationCollectorNode for P<ast::ForeignItem> {
13721372 fragment. make_foreign_items ( )
13731373 }
13741374 fn walk_map < V : MutVisitor > ( self , visitor : & mut V ) -> Self :: OutputTy {
1375- walk_item ( self , None , visitor )
1375+ walk_item ( visitor , self , None )
13761376 }
13771377 fn is_mac_call ( & self ) -> bool {
13781378 matches ! ( self . kind, ForeignItemKind :: MacCall ( ..) )
@@ -1395,7 +1395,7 @@ impl InvocationCollectorNode for ast::Variant {
13951395 fragment. make_variants ( )
13961396 }
13971397 fn walk_map < V : MutVisitor > ( self , visitor : & mut V ) -> Self :: OutputTy {
1398- walk_variant ( self , visitor )
1398+ walk_variant ( visitor , self )
13991399 }
14001400}
14011401
@@ -1408,7 +1408,7 @@ impl InvocationCollectorNode for ast::FieldDef {
14081408 fragment. make_field_defs ( )
14091409 }
14101410 fn walk_map < V : MutVisitor > ( self , visitor : & mut V ) -> Self :: OutputTy {
1411- walk_field_def ( self , visitor )
1411+ walk_field_def ( visitor , self )
14121412 }
14131413}
14141414
@@ -1421,7 +1421,7 @@ impl InvocationCollectorNode for ast::PatField {
14211421 fragment. make_pat_fields ( )
14221422 }
14231423 fn walk_map < V : MutVisitor > ( self , visitor : & mut V ) -> Self :: OutputTy {
1424- walk_pat_field ( self , visitor )
1424+ walk_pat_field ( visitor , self )
14251425 }
14261426}
14271427
@@ -1434,7 +1434,7 @@ impl InvocationCollectorNode for ast::ExprField {
14341434 fragment. make_expr_fields ( )
14351435 }
14361436 fn walk_map < V : MutVisitor > ( self , visitor : & mut V ) -> Self :: OutputTy {
1437- walk_expr_field ( self , visitor )
1437+ walk_expr_field ( visitor , self )
14381438 }
14391439}
14401440
@@ -1447,7 +1447,7 @@ impl InvocationCollectorNode for ast::Param {
14471447 fragment. make_params ( )
14481448 }
14491449 fn walk_map < V : MutVisitor > ( self , visitor : & mut V ) -> Self :: OutputTy {
1450- walk_param ( self , visitor )
1450+ walk_param ( visitor , self )
14511451 }
14521452}
14531453
@@ -1460,7 +1460,7 @@ impl InvocationCollectorNode for ast::GenericParam {
14601460 fragment. make_generic_params ( )
14611461 }
14621462 fn walk_map < V : MutVisitor > ( self , visitor : & mut V ) -> Self :: OutputTy {
1463- walk_generic_param ( self , visitor )
1463+ walk_generic_param ( visitor , self )
14641464 }
14651465}
14661466
@@ -1473,7 +1473,7 @@ impl InvocationCollectorNode for ast::Arm {
14731473 fragment. make_arms ( )
14741474 }
14751475 fn walk_map < V : MutVisitor > ( self , visitor : & mut V ) -> Self :: OutputTy {
1476- walk_arm ( self , visitor )
1476+ walk_arm ( visitor , self )
14771477 }
14781478}
14791479
@@ -1487,7 +1487,7 @@ impl InvocationCollectorNode for ast::Stmt {
14871487 fragment. make_stmts ( )
14881488 }
14891489 fn walk_map < V : MutVisitor > ( self , visitor : & mut V ) -> Self :: OutputTy {
1490- walk_stmt ( self , visitor )
1490+ walk_stmt ( visitor , self )
14911491 }
14921492 fn is_mac_call ( & self ) -> bool {
14931493 match & self . kind {
@@ -1561,7 +1561,7 @@ impl InvocationCollectorNode for ast::Crate {
15611561 fragment. make_crate ( )
15621562 }
15631563 fn walk < V : MutVisitor > ( & mut self , visitor : & mut V ) {
1564- walk_crate ( self , visitor )
1564+ walk_crate ( visitor , self )
15651565 }
15661566 fn expand_cfg_false (
15671567 & mut self ,
@@ -1587,7 +1587,7 @@ impl InvocationCollectorNode for P<ast::Ty> {
15871587 fragment. make_ty ( )
15881588 }
15891589 fn walk < V : MutVisitor > ( & mut self , visitor : & mut V ) {
1590- walk_ty ( self , visitor )
1590+ walk_ty ( visitor , self )
15911591 }
15921592 fn is_mac_call ( & self ) -> bool {
15931593 matches ! ( self . kind, ast:: TyKind :: MacCall ( ..) )
@@ -1611,7 +1611,7 @@ impl InvocationCollectorNode for P<ast::Pat> {
16111611 fragment. make_pat ( )
16121612 }
16131613 fn walk < V : MutVisitor > ( & mut self , visitor : & mut V ) {
1614- walk_pat ( self , visitor )
1614+ walk_pat ( visitor , self )
16151615 }
16161616 fn is_mac_call ( & self ) -> bool {
16171617 matches ! ( self . kind, PatKind :: MacCall ( ..) )
@@ -1639,7 +1639,7 @@ impl InvocationCollectorNode for P<ast::Expr> {
16391639 "an expression"
16401640 }
16411641 fn walk < V : MutVisitor > ( & mut self , visitor : & mut V ) {
1642- walk_expr ( self , visitor )
1642+ walk_expr ( visitor , self )
16431643 }
16441644 fn is_mac_call ( & self ) -> bool {
16451645 matches ! ( self . kind, ExprKind :: MacCall ( ..) )
@@ -1665,7 +1665,7 @@ impl InvocationCollectorNode for AstNodeWrapper<P<ast::Expr>, OptExprTag> {
16651665 fragment. make_opt_expr ( )
16661666 }
16671667 fn walk_map < V : MutVisitor > ( mut self , visitor : & mut V ) -> Self :: OutputTy {
1668- walk_expr ( & mut self . wrapped , visitor ) ;
1668+ walk_expr ( visitor , & mut self . wrapped ) ;
16691669 Some ( self . wrapped )
16701670 }
16711671 fn is_mac_call ( & self ) -> bool {
@@ -1705,7 +1705,7 @@ impl InvocationCollectorNode for AstNodeWrapper<P<ast::Expr>, MethodReceiverTag>
17051705 AstNodeWrapper :: new ( fragment. make_method_receiver_expr ( ) , MethodReceiverTag )
17061706 }
17071707 fn walk < V : MutVisitor > ( & mut self , visitor : & mut V ) {
1708- mut_visit:: walk_expr ( & mut self . wrapped , visitor )
1708+ mut_visit:: walk_expr ( visitor , & mut self . wrapped )
17091709 }
17101710 fn is_mac_call ( & self ) -> bool {
17111711 matches ! ( self . wrapped. kind, ast:: ExprKind :: MacCall ( ..) )
@@ -2147,11 +2147,11 @@ impl<'a, 'b> MutVisitor for InvocationCollector<'a, 'b> {
21472147 self . cx . current_expansion . is_trailing_mac = true ;
21482148 // Don't use `assign_id` for this statement - it may get removed
21492149 // entirely due to a `#[cfg]` on the contained expression
2150- let res = walk_stmt ( node , self ) ;
2150+ let res = walk_stmt ( self , node ) ;
21512151 self . cx . current_expansion . is_trailing_mac = false ;
21522152 res
21532153 }
2154- _ => walk_stmt ( node , self ) ,
2154+ _ => walk_stmt ( self , node ) ,
21552155 } ;
21562156 }
21572157
@@ -2195,7 +2195,7 @@ impl<'a, 'b> MutVisitor for InvocationCollector<'a, 'b> {
21952195 & mut self . cx . current_expansion . dir_ownership ,
21962196 DirOwnership :: UnownedViaBlock ,
21972197 ) ;
2198- walk_block ( node , self ) ;
2198+ walk_block ( self , node ) ;
21992199 self . cx . current_expansion . dir_ownership = orig_dir_ownership;
22002200 }
22012201
0 commit comments