@@ -314,9 +314,9 @@ impl_lint_pass!(Types => [BOX_COLLECTION, VEC_BOX, OPTION_OPTION, LINKEDLIST, BO
314314impl < ' tcx > LateLintPass < ' tcx > for Types {
315315 fn check_fn (
316316 & mut self ,
317- cx : & LateContext < ' _ > ,
317+ cx : & LateContext < ' tcx > ,
318318 fn_kind : FnKind < ' _ > ,
319- decl : & FnDecl < ' _ > ,
319+ decl : & FnDecl < ' tcx > ,
320320 _: & Body < ' _ > ,
321321 _: Span ,
322322 def_id : LocalDefId ,
@@ -346,7 +346,7 @@ impl<'tcx> LateLintPass<'tcx> for Types {
346346 ) ;
347347 }
348348
349- fn check_item ( & mut self , cx : & LateContext < ' tcx > , item : & ' tcx Item < ' _ > ) {
349+ fn check_item ( & mut self , cx : & LateContext < ' tcx > , item : & ' tcx Item < ' tcx > ) {
350350 let is_exported = cx. effective_visibilities . is_exported ( item. owner_id . def_id ) ;
351351
352352 match item. kind {
@@ -363,7 +363,7 @@ impl<'tcx> LateLintPass<'tcx> for Types {
363363 }
364364 }
365365
366- fn check_impl_item ( & mut self , cx : & LateContext < ' tcx > , item : & ' tcx ImplItem < ' _ > ) {
366+ fn check_impl_item ( & mut self , cx : & LateContext < ' tcx > , item : & ' tcx ImplItem < ' tcx > ) {
367367 match item. kind {
368368 ImplItemKind :: Const ( ty, _) => {
369369 let is_in_trait_impl = if let Some ( hir:: Node :: Item ( item) ) = cx
@@ -391,7 +391,7 @@ impl<'tcx> LateLintPass<'tcx> for Types {
391391 }
392392 }
393393
394- fn check_field_def ( & mut self , cx : & LateContext < ' _ > , field : & hir:: FieldDef < ' _ > ) {
394+ fn check_field_def ( & mut self , cx : & LateContext < ' tcx > , field : & hir:: FieldDef < ' tcx > ) {
395395 let is_exported = cx. effective_visibilities . is_exported ( field. def_id ) ;
396396
397397 self . check_ty (
@@ -404,7 +404,7 @@ impl<'tcx> LateLintPass<'tcx> for Types {
404404 ) ;
405405 }
406406
407- fn check_trait_item ( & mut self , cx : & LateContext < ' tcx > , item : & TraitItem < ' _ > ) {
407+ fn check_trait_item ( & mut self , cx : & LateContext < ' tcx > , item : & TraitItem < ' tcx > ) {
408408 let is_exported = cx. effective_visibilities . is_exported ( item. owner_id . def_id ) ;
409409
410410 let context = CheckTyContext {
@@ -421,7 +421,7 @@ impl<'tcx> LateLintPass<'tcx> for Types {
421421 }
422422 }
423423
424- fn check_local ( & mut self , cx : & LateContext < ' _ > , local : & Local < ' _ > ) {
424+ fn check_local ( & mut self , cx : & LateContext < ' tcx > , local : & Local < ' tcx > ) {
425425 if let Some ( ty) = local. ty {
426426 self . check_ty (
427427 cx,
@@ -444,7 +444,7 @@ impl Types {
444444 }
445445 }
446446
447- fn check_fn_decl ( & mut self , cx : & LateContext < ' _ > , decl : & FnDecl < ' _ > , context : CheckTyContext ) {
447+ fn check_fn_decl < ' tcx > ( & mut self , cx : & LateContext < ' tcx > , decl : & FnDecl < ' tcx > , context : CheckTyContext ) {
448448 // Ignore functions in trait implementations as they are usually forced by the trait definition.
449449 //
450450 // FIXME: ideally we would like to warn *if the complicated type can be simplified*, but it's hard
@@ -466,7 +466,7 @@ impl Types {
466466 /// lint found.
467467 ///
468468 /// The parameter `is_local` distinguishes the context of the type.
469- fn check_ty ( & mut self , cx : & LateContext < ' _ > , hir_ty : & hir:: Ty < ' _ > , mut context : CheckTyContext ) {
469+ fn check_ty < ' tcx > ( & mut self , cx : & LateContext < ' tcx > , hir_ty : & hir:: Ty < ' tcx > , mut context : CheckTyContext ) {
470470 if hir_ty. span . from_expansion ( ) {
471471 return ;
472472 }
0 commit comments