@@ -83,8 +83,8 @@ declare_clippy_lint! {
8383
8484declare_lint_pass ! ( PatternTypeMismatch => [ PATTERN_TYPE_MISMATCH ] ) ;
8585
86- impl < ' a , ' tcx > LateLintPass < ' a , ' tcx > for PatternTypeMismatch {
87- fn check_stmt ( & mut self , cx : & LateContext < ' a , ' tcx > , stmt : & ' tcx Stmt < ' _ > ) {
86+ impl < ' tcx > LateLintPass < ' tcx > for PatternTypeMismatch {
87+ fn check_stmt ( & mut self , cx : & LateContext < ' tcx > , stmt : & ' tcx Stmt < ' _ > ) {
8888 if let StmtKind :: Local ( ref local) = stmt. kind {
8989 if let Some ( init) = & local. init {
9090 if let Some ( init_ty) = cx. tables ( ) . node_type_opt ( init. hir_id ) {
@@ -102,7 +102,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for PatternTypeMismatch {
102102 }
103103 }
104104
105- fn check_expr ( & mut self , cx : & LateContext < ' a , ' tcx > , expr : & ' tcx Expr < ' _ > ) {
105+ fn check_expr ( & mut self , cx : & LateContext < ' tcx > , expr : & ' tcx Expr < ' _ > ) {
106106 if let ExprKind :: Match ( ref expr, arms, source) = expr. kind {
107107 match source {
108108 MatchSource :: Normal | MatchSource :: IfLetDesugar { .. } | MatchSource :: WhileLetDesugar => {
@@ -125,7 +125,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for PatternTypeMismatch {
125125
126126 fn check_fn (
127127 & mut self ,
128- cx : & LateContext < ' a , ' tcx > ,
128+ cx : & LateContext < ' tcx > ,
129129 _: intravisit:: FnKind < ' tcx > ,
130130 _: & ' tcx FnDecl < ' _ > ,
131131 body : & ' tcx Body < ' _ > ,
@@ -146,8 +146,8 @@ enum DerefPossible {
146146 Impossible ,
147147}
148148
149- fn apply_lint < ' a , ' tcx > (
150- cx : & LateContext < ' a , ' tcx > ,
149+ fn apply_lint < ' tcx > (
150+ cx : & LateContext < ' tcx > ,
151151 pat : & Pat < ' _ > ,
152152 expr_ty : Ty < ' tcx > ,
153153 deref_possible : DerefPossible ,
@@ -185,8 +185,8 @@ enum Level {
185185}
186186
187187#[ allow( rustc:: usage_of_ty_tykind) ]
188- fn find_first_mismatch < ' a , ' tcx > (
189- cx : & LateContext < ' a , ' tcx > ,
188+ fn find_first_mismatch < ' tcx > (
189+ cx : & LateContext < ' tcx > ,
190190 pat : & Pat < ' _ > ,
191191 ty : Ty < ' tcx > ,
192192 level : Level ,
@@ -259,8 +259,8 @@ fn get_variant<'a>(adt_def: &'a AdtDef, qpath: &QPath<'_>) -> Option<&'a Variant
259259 None
260260}
261261
262- fn find_first_mismatch_in_tuple < ' a , ' tcx , I > (
263- cx : & LateContext < ' a , ' tcx > ,
262+ fn find_first_mismatch_in_tuple < ' tcx , I > (
263+ cx : & LateContext < ' tcx > ,
264264 pats : & [ & Pat < ' _ > ] ,
265265 ty_iter_src : I ,
266266) -> Option < ( Span , Mutability , Level ) >
@@ -284,8 +284,8 @@ where
284284 None
285285}
286286
287- fn find_first_mismatch_in_struct < ' a , ' tcx > (
288- cx : & LateContext < ' a , ' tcx > ,
287+ fn find_first_mismatch_in_struct < ' tcx > (
288+ cx : & LateContext < ' tcx > ,
289289 field_pats : & [ FieldPat < ' _ > ] ,
290290 field_defs : & [ FieldDef ] ,
291291 substs_ref : SubstsRef < ' tcx > ,
0 commit comments