@@ -382,11 +382,12 @@ pub fn walk_item<'a, V: Visitor<'a>>(visitor: &mut V, item: &'a Item) -> V::Resu
382
382
}
383
383
ItemKind :: MacCall ( mac) => try_visit ! ( visitor. visit_mac_call( mac) ) ,
384
384
ItemKind :: MacroDef ( ts) => try_visit ! ( visitor. visit_mac_def( ts, item. id) ) ,
385
- ItemKind :: Delegation ( box Delegation { id, qself, path, body } ) => {
385
+ ItemKind :: Delegation ( box Delegation { id, qself, path, rename , body } ) => {
386
386
if let Some ( qself) = qself {
387
387
try_visit ! ( visitor. visit_ty( & qself. ty) ) ;
388
388
}
389
389
try_visit ! ( visitor. visit_path( path, * id) ) ;
390
+ visit_opt ! ( visitor, visit_ident, * rename) ;
390
391
visit_opt ! ( visitor, visit_block, body) ;
391
392
}
392
393
}
@@ -782,11 +783,12 @@ pub fn walk_assoc_item<'a, V: Visitor<'a>>(
782
783
AssocItemKind :: MacCall ( mac) => {
783
784
try_visit ! ( visitor. visit_mac_call( mac) ) ;
784
785
}
785
- AssocItemKind :: Delegation ( box Delegation { id, qself, path, body } ) => {
786
+ AssocItemKind :: Delegation ( box Delegation { id, qself, path, rename , body } ) => {
786
787
if let Some ( qself) = qself {
787
788
try_visit ! ( visitor. visit_ty( & qself. ty) ) ;
788
789
}
789
790
try_visit ! ( visitor. visit_path( path, * id) ) ;
791
+ visit_opt ! ( visitor, visit_ident, * rename) ;
790
792
visit_opt ! ( visitor, visit_block, body) ;
791
793
}
792
794
}
0 commit comments