@@ -64,8 +64,8 @@ impl fmt::Display for BreakContextKind {
6464}
6565
6666#[ derive( Clone ) ]
67- struct CheckLoopVisitor < ' a , ' tcx > {
68- sess : & ' a Session ,
67+ struct CheckLoopVisitor < ' tcx > {
68+ sess : & ' tcx Session ,
6969 tcx : TyCtxt < ' tcx > ,
7070 // Keep track of a stack of contexts, so that suggestions
7171 // are not made for contexts where it would be incorrect,
@@ -90,7 +90,7 @@ pub(crate) fn provide(providers: &mut Providers) {
9090 * providers = Providers { check_mod_loops, ..* providers } ;
9191}
9292
93- impl < ' a , ' hir > Visitor < ' hir > for CheckLoopVisitor < ' a , ' hir > {
93+ impl < ' hir > Visitor < ' hir > for CheckLoopVisitor < ' hir > {
9494 type NestedFilter = nested_filter:: OnlyBodies ;
9595
9696 fn nested_visit_map ( & mut self ) -> Self :: Map {
@@ -129,7 +129,7 @@ impl<'a, 'hir> Visitor<'hir> for CheckLoopVisitor<'a, 'hir> {
129129 hir:: ExprKind :: If ( cond, then, else_opt) => {
130130 self . visit_expr ( cond) ;
131131
132- let get_block = |ck_loop : & CheckLoopVisitor < ' a , ' hir > ,
132+ let get_block = |ck_loop : & CheckLoopVisitor < ' hir > ,
133133 expr : & hir:: Expr < ' hir > |
134134 -> Option < & hir:: Block < ' hir > > {
135135 if let hir:: ExprKind :: Block ( b, None ) = expr. kind
@@ -306,10 +306,10 @@ impl<'a, 'hir> Visitor<'hir> for CheckLoopVisitor<'a, 'hir> {
306306 }
307307}
308308
309- impl < ' a , ' hir > CheckLoopVisitor < ' a , ' hir > {
309+ impl < ' hir > CheckLoopVisitor < ' hir > {
310310 fn with_context < F > ( & mut self , cx : Context , f : F )
311311 where
312- F : FnOnce ( & mut CheckLoopVisitor < ' a , ' hir > ) ,
312+ F : FnOnce ( & mut CheckLoopVisitor < ' hir > ) ,
313313 {
314314 self . cx_stack . push ( cx) ;
315315 f ( self ) ;
0 commit comments