@@ -379,11 +379,12 @@ pub fn walk_item<'a, V: Visitor<'a>>(visitor: &mut V, item: &'a Item) -> V::Resu
379379 }
380380 ItemKind :: MacCall ( mac) => try_visit ! ( visitor. visit_mac_call( mac) ) ,
381381 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 } ) => {
383383 if let Some ( qself) = qself {
384384 try_visit ! ( visitor. visit_ty( & qself. ty) ) ;
385385 }
386386 try_visit ! ( visitor. visit_path( path, * id) ) ;
387+ visit_opt ! ( visitor, visit_ident, * rename) ;
387388 visit_opt ! ( visitor, visit_block, body) ;
388389 }
389390 }
@@ -753,11 +754,12 @@ pub fn walk_assoc_item<'a, V: Visitor<'a>>(
753754 AssocItemKind :: MacCall ( mac) => {
754755 try_visit ! ( visitor. visit_mac_call( mac) ) ;
755756 }
756- AssocItemKind :: Delegation ( box Delegation { id, qself, path, body } ) => {
757+ AssocItemKind :: Delegation ( box Delegation { id, qself, path, rename , body } ) => {
757758 if let Some ( qself) = qself {
758759 visitor. visit_ty ( & qself. ty ) ;
759760 }
760761 try_visit ! ( visitor. visit_path( path, * id) ) ;
762+ visit_opt ! ( visitor, visit_ident, * rename) ;
761763 visit_opt ! ( visitor, visit_block, body) ;
762764 }
763765 }
0 commit comments