@@ -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
}
@@ -756,11 +757,12 @@ pub fn walk_assoc_item<'a, V: Visitor<'a>>(
756
757
AssocItemKind :: MacCall ( mac) => {
757
758
try_visit ! ( visitor. visit_mac_call( mac) ) ;
758
759
}
759
- AssocItemKind :: Delegation ( box Delegation { id, qself, path, body } ) => {
760
+ AssocItemKind :: Delegation ( box Delegation { id, qself, path, rename , body } ) => {
760
761
if let Some ( qself) = qself {
761
762
try_visit ! ( visitor. visit_ty( & qself. ty) ) ;
762
763
}
763
764
try_visit ! ( visitor. visit_path( path, * id) ) ;
765
+ visit_opt ! ( visitor, visit_ident, * rename) ;
764
766
visit_opt ! ( visitor, visit_block, body) ;
765
767
}
766
768
}
0 commit comments