@@ -1149,7 +1149,7 @@ impl InvocationCollectorNode for P<ast::Item> {
1149
1149
fragment. make_items ( )
1150
1150
}
1151
1151
fn walk_flat_map < V : MutVisitor > ( self , visitor : & mut V ) -> Self :: OutputTy {
1152
- walk_flat_map_item ( self , None , visitor )
1152
+ walk_flat_map_item ( visitor , self , None )
1153
1153
}
1154
1154
fn is_mac_call ( & self ) -> bool {
1155
1155
matches ! ( self . kind, ItemKind :: MacCall ( ..) )
@@ -1293,7 +1293,7 @@ impl InvocationCollectorNode for AstNodeWrapper<P<ast::AssocItem>, TraitItemTag>
1293
1293
fragment. make_trait_items ( )
1294
1294
}
1295
1295
fn walk_flat_map < V : MutVisitor > ( self , visitor : & mut V ) -> Self :: OutputTy {
1296
- walk_flat_map_item ( self . wrapped , Some ( AssocCtxt :: Trait ) , visitor )
1296
+ walk_flat_map_item ( visitor , self . wrapped , Some ( AssocCtxt :: Trait ) )
1297
1297
}
1298
1298
fn is_mac_call ( & self ) -> bool {
1299
1299
matches ! ( self . wrapped. kind, AssocItemKind :: MacCall ( ..) )
@@ -1334,7 +1334,7 @@ impl InvocationCollectorNode for AstNodeWrapper<P<ast::AssocItem>, ImplItemTag>
1334
1334
fragment. make_impl_items ( )
1335
1335
}
1336
1336
fn walk_flat_map < V : MutVisitor > ( self , visitor : & mut V ) -> Self :: OutputTy {
1337
- walk_flat_map_item ( self . wrapped , Some ( AssocCtxt :: Impl ) , visitor )
1337
+ walk_flat_map_item ( visitor , self . wrapped , Some ( AssocCtxt :: Impl ) )
1338
1338
}
1339
1339
fn is_mac_call ( & self ) -> bool {
1340
1340
matches ! ( self . wrapped. kind, AssocItemKind :: MacCall ( ..) )
@@ -1372,7 +1372,7 @@ impl InvocationCollectorNode for P<ast::ForeignItem> {
1372
1372
fragment. make_foreign_items ( )
1373
1373
}
1374
1374
fn walk_flat_map < V : MutVisitor > ( self , visitor : & mut V ) -> Self :: OutputTy {
1375
- walk_flat_map_item ( self , None , visitor )
1375
+ walk_flat_map_item ( visitor , self , None )
1376
1376
}
1377
1377
fn is_mac_call ( & self ) -> bool {
1378
1378
matches ! ( self . kind, ForeignItemKind :: MacCall ( ..) )
@@ -1395,7 +1395,7 @@ impl InvocationCollectorNode for ast::Variant {
1395
1395
fragment. make_variants ( )
1396
1396
}
1397
1397
fn walk_flat_map < V : MutVisitor > ( self , visitor : & mut V ) -> Self :: OutputTy {
1398
- walk_flat_map_variant ( self , visitor )
1398
+ walk_flat_map_variant ( visitor , self )
1399
1399
}
1400
1400
}
1401
1401
@@ -1408,7 +1408,7 @@ impl InvocationCollectorNode for ast::FieldDef {
1408
1408
fragment. make_field_defs ( )
1409
1409
}
1410
1410
fn walk_flat_map < V : MutVisitor > ( self , visitor : & mut V ) -> Self :: OutputTy {
1411
- walk_flat_map_field_def ( self , visitor )
1411
+ walk_flat_map_field_def ( visitor , self )
1412
1412
}
1413
1413
}
1414
1414
@@ -1421,7 +1421,7 @@ impl InvocationCollectorNode for ast::PatField {
1421
1421
fragment. make_pat_fields ( )
1422
1422
}
1423
1423
fn walk_flat_map < V : MutVisitor > ( self , visitor : & mut V ) -> Self :: OutputTy {
1424
- walk_flat_map_pat_field ( self , visitor )
1424
+ walk_flat_map_pat_field ( visitor , self )
1425
1425
}
1426
1426
}
1427
1427
@@ -1434,7 +1434,7 @@ impl InvocationCollectorNode for ast::ExprField {
1434
1434
fragment. make_expr_fields ( )
1435
1435
}
1436
1436
fn walk_flat_map < V : MutVisitor > ( self , visitor : & mut V ) -> Self :: OutputTy {
1437
- walk_flat_map_expr_field ( self , visitor )
1437
+ walk_flat_map_expr_field ( visitor , self )
1438
1438
}
1439
1439
}
1440
1440
@@ -1447,7 +1447,7 @@ impl InvocationCollectorNode for ast::Param {
1447
1447
fragment. make_params ( )
1448
1448
}
1449
1449
fn walk_flat_map < V : MutVisitor > ( self , visitor : & mut V ) -> Self :: OutputTy {
1450
- walk_flat_map_param ( self , visitor )
1450
+ walk_flat_map_param ( visitor , self )
1451
1451
}
1452
1452
}
1453
1453
@@ -1460,7 +1460,7 @@ impl InvocationCollectorNode for ast::GenericParam {
1460
1460
fragment. make_generic_params ( )
1461
1461
}
1462
1462
fn walk_flat_map < V : MutVisitor > ( self , visitor : & mut V ) -> Self :: OutputTy {
1463
- walk_flat_map_generic_param ( self , visitor )
1463
+ walk_flat_map_generic_param ( visitor , self )
1464
1464
}
1465
1465
}
1466
1466
@@ -1473,7 +1473,7 @@ impl InvocationCollectorNode for ast::Arm {
1473
1473
fragment. make_arms ( )
1474
1474
}
1475
1475
fn walk_flat_map < V : MutVisitor > ( self , visitor : & mut V ) -> Self :: OutputTy {
1476
- walk_flat_map_arm ( self , visitor )
1476
+ walk_flat_map_arm ( visitor , self )
1477
1477
}
1478
1478
}
1479
1479
@@ -1487,7 +1487,7 @@ impl InvocationCollectorNode for ast::Stmt {
1487
1487
fragment. make_stmts ( )
1488
1488
}
1489
1489
fn walk_flat_map < V : MutVisitor > ( self , visitor : & mut V ) -> Self :: OutputTy {
1490
- walk_flat_map_stmt ( self , visitor )
1490
+ walk_flat_map_stmt ( visitor , self )
1491
1491
}
1492
1492
fn is_mac_call ( & self ) -> bool {
1493
1493
match & self . kind {
@@ -1561,7 +1561,7 @@ impl InvocationCollectorNode for ast::Crate {
1561
1561
fragment. make_crate ( )
1562
1562
}
1563
1563
fn walk < V : MutVisitor > ( & mut self , visitor : & mut V ) {
1564
- walk_crate ( self , visitor )
1564
+ walk_crate ( visitor , self )
1565
1565
}
1566
1566
fn expand_cfg_false (
1567
1567
& mut self ,
@@ -1587,7 +1587,7 @@ impl InvocationCollectorNode for P<ast::Ty> {
1587
1587
fragment. make_ty ( )
1588
1588
}
1589
1589
fn walk < V : MutVisitor > ( & mut self , visitor : & mut V ) {
1590
- walk_ty ( self , visitor )
1590
+ walk_ty ( visitor , self )
1591
1591
}
1592
1592
fn is_mac_call ( & self ) -> bool {
1593
1593
matches ! ( self . kind, ast:: TyKind :: MacCall ( ..) )
@@ -1611,7 +1611,7 @@ impl InvocationCollectorNode for P<ast::Pat> {
1611
1611
fragment. make_pat ( )
1612
1612
}
1613
1613
fn walk < V : MutVisitor > ( & mut self , visitor : & mut V ) {
1614
- walk_pat ( self , visitor )
1614
+ walk_pat ( visitor , self )
1615
1615
}
1616
1616
fn is_mac_call ( & self ) -> bool {
1617
1617
matches ! ( self . kind, PatKind :: MacCall ( ..) )
@@ -1639,7 +1639,7 @@ impl InvocationCollectorNode for P<ast::Expr> {
1639
1639
"an expression"
1640
1640
}
1641
1641
fn walk < V : MutVisitor > ( & mut self , visitor : & mut V ) {
1642
- walk_expr ( self , visitor )
1642
+ walk_expr ( visitor , self )
1643
1643
}
1644
1644
fn is_mac_call ( & self ) -> bool {
1645
1645
matches ! ( self . kind, ExprKind :: MacCall ( ..) )
@@ -1665,7 +1665,7 @@ impl InvocationCollectorNode for AstNodeWrapper<P<ast::Expr>, OptExprTag> {
1665
1665
fragment. make_opt_expr ( )
1666
1666
}
1667
1667
fn walk_flat_map < V : MutVisitor > ( mut self , visitor : & mut V ) -> Self :: OutputTy {
1668
- walk_expr ( & mut self . wrapped , visitor ) ;
1668
+ walk_expr ( visitor , & mut self . wrapped ) ;
1669
1669
Some ( self . wrapped )
1670
1670
}
1671
1671
fn is_mac_call ( & self ) -> bool {
@@ -1705,7 +1705,7 @@ impl InvocationCollectorNode for AstNodeWrapper<P<ast::Expr>, MethodReceiverTag>
1705
1705
AstNodeWrapper :: new ( fragment. make_method_receiver_expr ( ) , MethodReceiverTag )
1706
1706
}
1707
1707
fn walk < V : MutVisitor > ( & mut self , visitor : & mut V ) {
1708
- walk_expr ( & mut self . wrapped , visitor )
1708
+ walk_expr ( visitor , & mut self . wrapped )
1709
1709
}
1710
1710
fn is_mac_call ( & self ) -> bool {
1711
1711
matches ! ( self . wrapped. kind, ast:: ExprKind :: MacCall ( ..) )
@@ -2147,11 +2147,11 @@ impl<'a, 'b> MutVisitor for InvocationCollector<'a, 'b> {
2147
2147
self . cx . current_expansion . is_trailing_mac = true ;
2148
2148
// Don't use `assign_id` for this statement - it may get removed
2149
2149
// entirely due to a `#[cfg]` on the contained expression
2150
- let res = walk_flat_map_stmt ( node , self ) ;
2150
+ let res = walk_flat_map_stmt ( self , node ) ;
2151
2151
self . cx . current_expansion . is_trailing_mac = false ;
2152
2152
res
2153
2153
}
2154
- _ => walk_flat_map_stmt ( node , self ) ,
2154
+ _ => walk_flat_map_stmt ( self , node ) ,
2155
2155
} ;
2156
2156
}
2157
2157
@@ -2195,7 +2195,7 @@ impl<'a, 'b> MutVisitor for InvocationCollector<'a, 'b> {
2195
2195
& mut self . cx . current_expansion . dir_ownership ,
2196
2196
DirOwnership :: UnownedViaBlock ,
2197
2197
) ;
2198
- walk_block ( node , self ) ;
2198
+ walk_block ( self , node ) ;
2199
2199
self . cx . current_expansion . dir_ownership = orig_dir_ownership;
2200
2200
}
2201
2201
0 commit comments