@@ -81,7 +81,6 @@ impl<'tcx, T: LateLintPass<'tcx>> LateContextAndPass<'tcx, T> {
8181    fn  process_mod ( & mut  self ,  m :  & ' tcx  hir:: Mod < ' tcx > ,  s :  Span ,  n :  hir:: HirId )  { 
8282        lint_callback ! ( self ,  check_mod,  m,  s,  n) ; 
8383        hir_visit:: walk_mod ( self ,  m,  n) ; 
84-         lint_callback ! ( self ,  check_mod_post,  m,  s,  n) ; 
8584    } 
8685} 
8786
@@ -118,7 +117,6 @@ impl<'tcx, T: LateLintPass<'tcx>> hir_visit::Visitor<'tcx> for LateContextAndPas
118117
119118    fn  visit_param ( & mut  self ,  param :  & ' tcx  hir:: Param < ' tcx > )  { 
120119        self . with_lint_attrs ( param. hir_id ,  |cx| { 
121-             lint_callback ! ( cx,  check_param,  param) ; 
122120            hir_visit:: walk_param ( cx,  param) ; 
123121        } ) ; 
124122    } 
@@ -151,7 +149,6 @@ impl<'tcx, T: LateLintPass<'tcx>> hir_visit::Visitor<'tcx> for LateContextAndPas
151149            cx. with_param_env ( it. hir_id ( ) ,  |cx| { 
152150                lint_callback ! ( cx,  check_foreign_item,  it) ; 
153151                hir_visit:: walk_foreign_item ( cx,  it) ; 
154-                 lint_callback ! ( cx,  check_foreign_item_post,  it) ; 
155152            } ) ; 
156153        } ) 
157154    } 
@@ -193,7 +190,6 @@ impl<'tcx, T: LateLintPass<'tcx>> hir_visit::Visitor<'tcx> for LateContextAndPas
193190        let  body = self . context . tcx . hir ( ) . body ( body_id) ; 
194191        lint_callback ! ( self ,  check_fn,  fk,  decl,  body,  span,  id) ; 
195192        hir_visit:: walk_fn ( self ,  fk,  decl,  body_id,  span,  id) ; 
196-         lint_callback ! ( self ,  check_fn_post,  fk,  decl,  body,  span,  id) ; 
197193        self . context . enclosing_body  = old_enclosing_body; 
198194        self . context . cached_typeck_results . set ( old_cached_typeck_results) ; 
199195    } 
@@ -208,7 +204,6 @@ impl<'tcx, T: LateLintPass<'tcx>> hir_visit::Visitor<'tcx> for LateContextAndPas
208204    )  { 
209205        lint_callback ! ( self ,  check_struct_def,  s) ; 
210206        hir_visit:: walk_struct_def ( self ,  s) ; 
211-         lint_callback ! ( self ,  check_struct_def_post,  s) ; 
212207    } 
213208
214209    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
227222        self . with_lint_attrs ( v. id ,  |cx| { 
228223            lint_callback ! ( cx,  check_variant,  v) ; 
229224            hir_visit:: walk_variant ( cx,  v,  g,  item_id) ; 
230-             lint_callback ! ( cx,  check_variant_post,  v) ; 
231225        } ) 
232226    } 
233227
@@ -237,14 +231,9 @@ impl<'tcx, T: LateLintPass<'tcx>> hir_visit::Visitor<'tcx> for LateContextAndPas
237231    } 
238232
239233    fn  visit_infer ( & mut  self ,  inf :  & ' tcx  hir:: InferArg )  { 
240-         lint_callback ! ( self ,  check_infer,  inf) ; 
241234        hir_visit:: walk_inf ( self ,  inf) ; 
242235    } 
243236
244-     fn  visit_name ( & mut  self ,  sp :  Span ,  name :  Symbol )  { 
245-         lint_callback ! ( self ,  check_name,  sp,  name) ; 
246-     } 
247- 
248237    fn  visit_mod ( & mut  self ,  m :  & ' tcx  hir:: Mod < ' tcx > ,  s :  Span ,  n :  hir:: HirId )  { 
249238        if  !self . context . only_module  { 
250239            self . process_mod ( m,  s,  n) ; 
@@ -280,7 +269,6 @@ impl<'tcx, T: LateLintPass<'tcx>> hir_visit::Visitor<'tcx> for LateContextAndPas
280269    } 
281270
282271    fn  visit_where_predicate ( & mut  self ,  p :  & ' tcx  hir:: WherePredicate < ' tcx > )  { 
283-         lint_callback ! ( self ,  check_where_predicate,  p) ; 
284272        hir_visit:: walk_where_predicate ( self ,  p) ; 
285273    } 
286274
@@ -300,7 +288,6 @@ impl<'tcx, T: LateLintPass<'tcx>> hir_visit::Visitor<'tcx> for LateContextAndPas
300288            cx. with_param_env ( trait_item. hir_id ( ) ,  |cx| { 
301289                lint_callback ! ( cx,  check_trait_item,  trait_item) ; 
302290                hir_visit:: walk_trait_item ( cx,  trait_item) ; 
303-                 lint_callback ! ( cx,  check_trait_item_post,  trait_item) ; 
304291            } ) ; 
305292        } ) ; 
306293        self . context . generics  = generics; 
@@ -320,7 +307,6 @@ impl<'tcx, T: LateLintPass<'tcx>> hir_visit::Visitor<'tcx> for LateContextAndPas
320307    } 
321308
322309    fn  visit_lifetime ( & mut  self ,  lt :  & ' tcx  hir:: Lifetime )  { 
323-         lint_callback ! ( self ,  check_lifetime,  lt) ; 
324310        hir_visit:: walk_lifetime ( self ,  lt) ; 
325311    } 
326312
0 commit comments