@@ -212,72 +212,72 @@ impl MutVisitor for CfgEval<'_> {
212
212
#[ instrument( level = "trace" , skip( self ) ) ]
213
213
fn visit_expr ( & mut self , expr : & mut P < ast:: Expr > ) {
214
214
self . 0 . configure_expr ( expr, false ) ;
215
- mut_visit:: noop_visit_expr ( expr, self ) ;
215
+ mut_visit:: walk_expr ( expr, self ) ;
216
216
}
217
217
218
218
#[ instrument( level = "trace" , skip( self ) ) ]
219
219
fn visit_method_receiver_expr ( & mut self , expr : & mut P < ast:: Expr > ) {
220
220
self . 0 . configure_expr ( expr, true ) ;
221
- mut_visit:: noop_visit_expr ( expr, self ) ;
221
+ mut_visit:: walk_expr ( expr, self ) ;
222
222
}
223
223
224
224
fn filter_map_expr ( & mut self , expr : P < ast:: Expr > ) -> Option < P < ast:: Expr > > {
225
225
let mut expr = configure ! ( self , expr) ;
226
- mut_visit:: noop_visit_expr ( & mut expr, self ) ;
226
+ mut_visit:: walk_expr ( & mut expr, self ) ;
227
227
Some ( expr)
228
228
}
229
229
230
230
fn flat_map_generic_param (
231
231
& mut self ,
232
232
param : ast:: GenericParam ,
233
233
) -> SmallVec < [ ast:: GenericParam ; 1 ] > {
234
- mut_visit:: noop_flat_map_generic_param ( configure ! ( self , param) , self )
234
+ mut_visit:: walk_flat_map_generic_param ( configure ! ( self , param) , self )
235
235
}
236
236
237
237
fn flat_map_stmt ( & mut self , stmt : ast:: Stmt ) -> SmallVec < [ ast:: Stmt ; 1 ] > {
238
- mut_visit:: noop_flat_map_stmt ( configure ! ( self , stmt) , self )
238
+ mut_visit:: walk_flat_map_stmt ( configure ! ( self , stmt) , self )
239
239
}
240
240
241
241
fn flat_map_item ( & mut self , item : P < ast:: Item > ) -> SmallVec < [ P < ast:: Item > ; 1 ] > {
242
- mut_visit:: noop_flat_map_item ( configure ! ( self , item) , None , self )
242
+ mut_visit:: walk_flat_map_item ( configure ! ( self , item) , None , self )
243
243
}
244
244
245
245
fn flat_map_assoc_item (
246
246
& mut self ,
247
247
item : P < ast:: AssocItem > ,
248
248
ctxt : AssocCtxt ,
249
249
) -> SmallVec < [ P < ast:: AssocItem > ; 1 ] > {
250
- mut_visit:: noop_flat_map_item ( configure ! ( self , item) , Some ( ctxt) , self )
250
+ mut_visit:: walk_flat_map_item ( configure ! ( self , item) , Some ( ctxt) , self )
251
251
}
252
252
253
253
fn flat_map_foreign_item (
254
254
& mut self ,
255
255
foreign_item : P < ast:: ForeignItem > ,
256
256
) -> SmallVec < [ P < ast:: ForeignItem > ; 1 ] > {
257
- mut_visit:: noop_flat_map_item ( configure ! ( self , foreign_item) , None , self )
257
+ mut_visit:: walk_flat_map_item ( configure ! ( self , foreign_item) , None , self )
258
258
}
259
259
260
260
fn flat_map_arm ( & mut self , arm : ast:: Arm ) -> SmallVec < [ ast:: Arm ; 1 ] > {
261
- mut_visit:: noop_flat_map_arm ( configure ! ( self , arm) , self )
261
+ mut_visit:: walk_flat_map_arm ( configure ! ( self , arm) , self )
262
262
}
263
263
264
264
fn flat_map_expr_field ( & mut self , field : ast:: ExprField ) -> SmallVec < [ ast:: ExprField ; 1 ] > {
265
- mut_visit:: noop_flat_map_expr_field ( configure ! ( self , field) , self )
265
+ mut_visit:: walk_flat_map_expr_field ( configure ! ( self , field) , self )
266
266
}
267
267
268
268
fn flat_map_pat_field ( & mut self , fp : ast:: PatField ) -> SmallVec < [ ast:: PatField ; 1 ] > {
269
- mut_visit:: noop_flat_map_pat_field ( configure ! ( self , fp) , self )
269
+ mut_visit:: walk_flat_map_pat_field ( configure ! ( self , fp) , self )
270
270
}
271
271
272
272
fn flat_map_param ( & mut self , p : ast:: Param ) -> SmallVec < [ ast:: Param ; 1 ] > {
273
- mut_visit:: noop_flat_map_param ( configure ! ( self , p) , self )
273
+ mut_visit:: walk_flat_map_param ( configure ! ( self , p) , self )
274
274
}
275
275
276
276
fn flat_map_field_def ( & mut self , sf : ast:: FieldDef ) -> SmallVec < [ ast:: FieldDef ; 1 ] > {
277
- mut_visit:: noop_flat_map_field_def ( configure ! ( self , sf) , self )
277
+ mut_visit:: walk_flat_map_field_def ( configure ! ( self , sf) , self )
278
278
}
279
279
280
280
fn flat_map_variant ( & mut self , variant : ast:: Variant ) -> SmallVec < [ ast:: Variant ; 1 ] > {
281
- mut_visit:: noop_flat_map_variant ( configure ! ( self , variant) , self )
281
+ mut_visit:: walk_flat_map_variant ( configure ! ( self , variant) , self )
282
282
}
283
283
}
0 commit comments