@@ -382,11 +382,12 @@ pub fn walk_item<'a, V: Visitor<'a>>(visitor: &mut V, item: &'a Item) -> V::Resu
382382 }
383383 ItemKind :: MacCall ( mac) => try_visit ! ( visitor. visit_mac_call( mac) ) ,
384384 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 } ) => {
386386 if let Some ( qself) = qself {
387387 try_visit ! ( visitor. visit_ty( & qself. ty) ) ;
388388 }
389389 try_visit ! ( visitor. visit_path( path, * id) ) ;
390+ visit_opt ! ( visitor, visit_ident, * rename) ;
390391 visit_opt ! ( visitor, visit_block, body) ;
391392 }
392393 }
@@ -782,11 +783,12 @@ pub fn walk_assoc_item<'a, V: Visitor<'a>>(
782783 AssocItemKind :: MacCall ( mac) => {
783784 try_visit ! ( visitor. visit_mac_call( mac) ) ;
784785 }
785- AssocItemKind :: Delegation ( box Delegation { id, qself, path, body } ) => {
786+ AssocItemKind :: Delegation ( box Delegation { id, qself, path, rename , body } ) => {
786787 if let Some ( qself) = qself {
787788 try_visit ! ( visitor. visit_ty( & qself. ty) ) ;
788789 }
789790 try_visit ! ( visitor. visit_path( path, * id) ) ;
791+ visit_opt ! ( visitor, visit_ident, * rename) ;
790792 visit_opt ! ( visitor, visit_block, body) ;
791793 }
792794 }
0 commit comments