@@ -35,7 +35,7 @@ impl<A: Array> ExpectOne<A> for SmallVec<A> {
35
35
}
36
36
}
37
37
38
- pub trait NoopVisitItemKind {
38
+ pub trait WalkItemKind {
39
39
fn walk (
40
40
& mut self ,
41
41
ctxt : Option < AssocCtxt > ,
@@ -1090,7 +1090,7 @@ pub fn walk_block<T: MutVisitor>(vis: &mut T, block: &mut P<Block>) {
1090
1090
}
1091
1091
1092
1092
pub fn walk_item_kind (
1093
- kind : & mut impl NoopVisitItemKind ,
1093
+ kind : & mut impl WalkItemKind ,
1094
1094
ident : Ident ,
1095
1095
span : Span ,
1096
1096
id : NodeId ,
@@ -1099,7 +1099,7 @@ pub fn walk_item_kind(
1099
1099
kind. walk ( None , ident, span, id, vis)
1100
1100
}
1101
1101
1102
- impl NoopVisitItemKind for ItemKind {
1102
+ impl WalkItemKind for ItemKind {
1103
1103
fn walk (
1104
1104
& mut self ,
1105
1105
ctxt : Option < AssocCtxt > ,
@@ -1219,7 +1219,7 @@ impl NoopVisitItemKind for ItemKind {
1219
1219
}
1220
1220
}
1221
1221
1222
- impl NoopVisitItemKind for AssocItemKind {
1222
+ impl WalkItemKind for AssocItemKind {
1223
1223
fn walk (
1224
1224
& mut self ,
1225
1225
ctxt : Option < AssocCtxt > ,
@@ -1320,7 +1320,7 @@ pub fn walk_crate<T: MutVisitor>(vis: &mut T, krate: &mut Crate) {
1320
1320
}
1321
1321
1322
1322
/// Mutates one item, returning the item again.
1323
- pub fn walk_flat_map_item < K : NoopVisitItemKind > (
1323
+ pub fn walk_flat_map_item < K : WalkItemKind > (
1324
1324
visitor : & mut impl MutVisitor ,
1325
1325
mut item : P < Item < K > > ,
1326
1326
ctxt : Option < AssocCtxt > ,
@@ -1336,7 +1336,7 @@ pub fn walk_flat_map_item<K: NoopVisitItemKind>(
1336
1336
smallvec ! [ item]
1337
1337
}
1338
1338
1339
- impl NoopVisitItemKind for ForeignItemKind {
1339
+ impl WalkItemKind for ForeignItemKind {
1340
1340
fn walk (
1341
1341
& mut self ,
1342
1342
ctxt : Option < AssocCtxt > ,
0 commit comments