@@ -375,11 +375,11 @@ pub fn walk_item<'a, V: Visitor<'a>>(visitor: &mut V, item: &'a Item) {
375
375
}
376
376
ItemKind :: MacCall ( mac) => visitor. visit_mac_call ( mac) ,
377
377
ItemKind :: MacroDef ( ts) => visitor. visit_mac_def ( ts, item. id ) ,
378
- ItemKind :: Delegation ( box Delegation { id : _ , qself, path, body } ) => {
378
+ ItemKind :: Delegation ( box Delegation { id, qself, path, body } ) => {
379
379
if let Some ( qself) = qself {
380
380
visitor. visit_ty ( & qself. ty ) ;
381
381
}
382
- walk_path ( visitor, path ) ;
382
+ visitor. visit_path ( path , * id ) ;
383
383
if let Some ( body) = body {
384
384
visitor. visit_block ( body) ;
385
385
}
@@ -502,7 +502,7 @@ where
502
502
}
503
503
GenericArgs :: Parenthesized ( data) => {
504
504
walk_list ! ( visitor, visit_ty, & data. inputs) ;
505
- walk_fn_ret_ty ( visitor, & data. output ) ;
505
+ visitor. visit_fn_ret_ty ( & data. output ) ;
506
506
}
507
507
}
508
508
}
@@ -713,11 +713,11 @@ pub fn walk_assoc_item<'a, V: Visitor<'a>>(visitor: &mut V, item: &'a AssocItem,
713
713
AssocItemKind :: MacCall ( mac) => {
714
714
visitor. visit_mac_call ( mac) ;
715
715
}
716
- AssocItemKind :: Delegation ( box Delegation { id : _ , qself, path, body } ) => {
716
+ AssocItemKind :: Delegation ( box Delegation { id, qself, path, body } ) => {
717
717
if let Some ( qself) = qself {
718
718
visitor. visit_ty ( & qself. ty ) ;
719
719
}
720
- walk_path ( visitor, path ) ;
720
+ visitor. visit_path ( path , * id ) ;
721
721
if let Some ( body) = body {
722
722
visitor. visit_block ( body) ;
723
723
}
0 commit comments