@@ -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 }
@@ -756,11 +757,12 @@ pub fn walk_assoc_item<'a, V: Visitor<'a>>(
756757 AssocItemKind :: MacCall ( mac) => {
757758 try_visit ! ( visitor. visit_mac_call( mac) ) ;
758759 }
759- AssocItemKind :: Delegation ( box Delegation { id, qself, path, body } ) => {
760+ AssocItemKind :: Delegation ( box Delegation { id, qself, path, rename , body } ) => {
760761 if let Some ( qself) = qself {
761762 try_visit ! ( visitor. visit_ty( & qself. ty) ) ;
762763 }
763764 try_visit ! ( visitor. visit_path( path, * id) ) ;
765+ visit_opt ! ( visitor, visit_ident, * rename) ;
764766 visit_opt ! ( visitor, visit_block, body) ;
765767 }
766768 }
0 commit comments