diff --git a/compiler/rustc_ast/src/mut_visit.rs b/compiler/rustc_ast/src/mut_visit.rs index 043e3f1190e..3c08e6d6ca6 100644 --- a/compiler/rustc_ast/src/mut_visit.rs +++ b/compiler/rustc_ast/src/mut_visit.rs @@ -35,7 +35,7 @@ fn expect_one(self, err: &'static str) -> A::Item { } } -pub trait NoopVisitItemKind { +pub trait WalkItemKind { fn walk( &mut self, ctxt: Option, @@ -1090,7 +1090,7 @@ pub fn walk_block(vis: &mut T, block: &mut P) { } pub fn walk_item_kind( - kind: &mut impl NoopVisitItemKind, + kind: &mut impl WalkItemKind, ident: Ident, span: Span, id: NodeId, @@ -1099,7 +1099,7 @@ pub fn walk_item_kind( kind.walk(None, ident, span, id, vis) } -impl NoopVisitItemKind for ItemKind { +impl WalkItemKind for ItemKind { fn walk( &mut self, ctxt: Option, @@ -1219,7 +1219,7 @@ fn walk( } } -impl NoopVisitItemKind for AssocItemKind { +impl WalkItemKind for AssocItemKind { fn walk( &mut self, ctxt: Option, @@ -1320,7 +1320,7 @@ pub fn walk_crate(vis: &mut T, krate: &mut Crate) { } /// Mutates one item, returning the item again. -pub fn walk_flat_map_item( +pub fn walk_flat_map_item( visitor: &mut impl MutVisitor, mut item: P>, ctxt: Option, @@ -1336,7 +1336,7 @@ pub fn walk_flat_map_item( smallvec![item] } -impl NoopVisitItemKind for ForeignItemKind { +impl WalkItemKind for ForeignItemKind { fn walk( &mut self, ctxt: Option,