@@ -81,7 +81,6 @@ impl<'tcx, T: LateLintPass<'tcx>> LateContextAndPass<'tcx, T> {
81
81
fn process_mod ( & mut self , m : & ' tcx hir:: Mod < ' tcx > , s : Span , n : hir:: HirId ) {
82
82
lint_callback ! ( self , check_mod, m, s, n) ;
83
83
hir_visit:: walk_mod ( self , m, n) ;
84
- lint_callback ! ( self , check_mod_post, m, s, n) ;
85
84
}
86
85
}
87
86
@@ -118,7 +117,6 @@ impl<'tcx, T: LateLintPass<'tcx>> hir_visit::Visitor<'tcx> for LateContextAndPas
118
117
119
118
fn visit_param ( & mut self , param : & ' tcx hir:: Param < ' tcx > ) {
120
119
self . with_lint_attrs ( param. hir_id , |cx| {
121
- lint_callback ! ( cx, check_param, param) ;
122
120
hir_visit:: walk_param ( cx, param) ;
123
121
} ) ;
124
122
}
@@ -151,7 +149,6 @@ impl<'tcx, T: LateLintPass<'tcx>> hir_visit::Visitor<'tcx> for LateContextAndPas
151
149
cx. with_param_env ( it. hir_id ( ) , |cx| {
152
150
lint_callback ! ( cx, check_foreign_item, it) ;
153
151
hir_visit:: walk_foreign_item ( cx, it) ;
154
- lint_callback ! ( cx, check_foreign_item_post, it) ;
155
152
} ) ;
156
153
} )
157
154
}
@@ -193,7 +190,6 @@ impl<'tcx, T: LateLintPass<'tcx>> hir_visit::Visitor<'tcx> for LateContextAndPas
193
190
let body = self . context . tcx . hir ( ) . body ( body_id) ;
194
191
lint_callback ! ( self , check_fn, fk, decl, body, span, id) ;
195
192
hir_visit:: walk_fn ( self , fk, decl, body_id, span, id) ;
196
- lint_callback ! ( self , check_fn_post, fk, decl, body, span, id) ;
197
193
self . context . enclosing_body = old_enclosing_body;
198
194
self . context . cached_typeck_results . set ( old_cached_typeck_results) ;
199
195
}
@@ -208,7 +204,6 @@ impl<'tcx, T: LateLintPass<'tcx>> hir_visit::Visitor<'tcx> for LateContextAndPas
208
204
) {
209
205
lint_callback ! ( self , check_struct_def, s) ;
210
206
hir_visit:: walk_struct_def ( self , s) ;
211
- lint_callback ! ( self , check_struct_def_post, s) ;
212
207
}
213
208
214
209
fn visit_field_def ( & mut self , s : & ' tcx hir:: FieldDef < ' tcx > ) {
@@ -227,7 +222,6 @@ impl<'tcx, T: LateLintPass<'tcx>> hir_visit::Visitor<'tcx> for LateContextAndPas
227
222
self . with_lint_attrs ( v. id , |cx| {
228
223
lint_callback ! ( cx, check_variant, v) ;
229
224
hir_visit:: walk_variant ( cx, v, g, item_id) ;
230
- lint_callback ! ( cx, check_variant_post, v) ;
231
225
} )
232
226
}
233
227
@@ -237,14 +231,9 @@ impl<'tcx, T: LateLintPass<'tcx>> hir_visit::Visitor<'tcx> for LateContextAndPas
237
231
}
238
232
239
233
fn visit_infer ( & mut self , inf : & ' tcx hir:: InferArg ) {
240
- lint_callback ! ( self , check_infer, inf) ;
241
234
hir_visit:: walk_inf ( self , inf) ;
242
235
}
243
236
244
- fn visit_name ( & mut self , sp : Span , name : Symbol ) {
245
- lint_callback ! ( self , check_name, sp, name) ;
246
- }
247
-
248
237
fn visit_mod ( & mut self , m : & ' tcx hir:: Mod < ' tcx > , s : Span , n : hir:: HirId ) {
249
238
if !self . context . only_module {
250
239
self . process_mod ( m, s, n) ;
@@ -280,7 +269,6 @@ impl<'tcx, T: LateLintPass<'tcx>> hir_visit::Visitor<'tcx> for LateContextAndPas
280
269
}
281
270
282
271
fn visit_where_predicate ( & mut self , p : & ' tcx hir:: WherePredicate < ' tcx > ) {
283
- lint_callback ! ( self , check_where_predicate, p) ;
284
272
hir_visit:: walk_where_predicate ( self , p) ;
285
273
}
286
274
@@ -300,7 +288,6 @@ impl<'tcx, T: LateLintPass<'tcx>> hir_visit::Visitor<'tcx> for LateContextAndPas
300
288
cx. with_param_env ( trait_item. hir_id ( ) , |cx| {
301
289
lint_callback ! ( cx, check_trait_item, trait_item) ;
302
290
hir_visit:: walk_trait_item ( cx, trait_item) ;
303
- lint_callback ! ( cx, check_trait_item_post, trait_item) ;
304
291
} ) ;
305
292
} ) ;
306
293
self . context . generics = generics;
@@ -320,7 +307,6 @@ impl<'tcx, T: LateLintPass<'tcx>> hir_visit::Visitor<'tcx> for LateContextAndPas
320
307
}
321
308
322
309
fn visit_lifetime ( & mut self , lt : & ' tcx hir:: Lifetime ) {
323
- lint_callback ! ( self , check_lifetime, lt) ;
324
310
hir_visit:: walk_lifetime ( self , lt) ;
325
311
}
326
312
0 commit comments