@@ -379,11 +379,12 @@ pub fn walk_item<'a, V: Visitor<'a>>(visitor: &mut V, item: &'a Item) -> V::Resu
379
379
}
380
380
ItemKind :: MacCall ( mac) => try_visit ! ( visitor. visit_mac_call( mac) ) ,
381
381
ItemKind :: MacroDef ( ts) => try_visit ! ( visitor. visit_mac_def( ts, item. id) ) ,
382
- ItemKind :: Delegation ( box Delegation { id, qself, path, body } ) => {
382
+ ItemKind :: Delegation ( box Delegation { id, qself, path, rename , body } ) => {
383
383
if let Some ( qself) = qself {
384
384
try_visit ! ( visitor. visit_ty( & qself. ty) ) ;
385
385
}
386
386
try_visit ! ( visitor. visit_path( path, * id) ) ;
387
+ visit_opt ! ( visitor, visit_ident, * rename) ;
387
388
visit_opt ! ( visitor, visit_block, body) ;
388
389
}
389
390
}
@@ -753,11 +754,12 @@ pub fn walk_assoc_item<'a, V: Visitor<'a>>(
753
754
AssocItemKind :: MacCall ( mac) => {
754
755
try_visit ! ( visitor. visit_mac_call( mac) ) ;
755
756
}
756
- AssocItemKind :: Delegation ( box Delegation { id, qself, path, body } ) => {
757
+ AssocItemKind :: Delegation ( box Delegation { id, qself, path, rename , body } ) => {
757
758
if let Some ( qself) = qself {
758
759
visitor. visit_ty ( & qself. ty ) ;
759
760
}
760
761
try_visit ! ( visitor. visit_path( path, * id) ) ;
762
+ visit_opt ! ( visitor, visit_ident, * rename) ;
761
763
visit_opt ! ( visitor, visit_block, body) ;
762
764
}
763
765
}
0 commit comments