File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1364,8 +1364,9 @@ impl<'a> LoweringContext<'a> {
1364
1364
}
1365
1365
1366
1366
fn visit_ty ( & mut self , t : & ' v hir:: Ty ) {
1367
+ match t. node {
1367
1368
// Don't collect elided lifetimes used inside of `fn()` syntax
1368
- if let & hir:: Ty_ :: TyBareFn ( _) = & t . node {
1369
+ hir:: Ty_ :: TyBareFn ( _) => {
1369
1370
let old_collect_elided_lifetimes = self . collect_elided_lifetimes ;
1370
1371
self . collect_elided_lifetimes = false ;
1371
1372
@@ -1376,8 +1377,8 @@ impl<'a> LoweringContext<'a> {
1376
1377
self . currently_bound_lifetimes . truncate ( old_len) ;
1377
1378
1378
1379
self . collect_elided_lifetimes = old_collect_elided_lifetimes;
1379
- } else {
1380
- hir:: intravisit:: walk_ty ( self , t) ;
1380
+ } ,
1381
+ _ => hir:: intravisit:: walk_ty ( self , t) ,
1381
1382
}
1382
1383
}
1383
1384
You can’t perform that action at this time.
0 commit comments