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 @@ -1320,8 +1320,9 @@ impl<'a> LoweringContext<'a> {
1320
1320
}
1321
1321
1322
1322
fn visit_ty ( & mut self , t : & ' v hir:: Ty ) {
1323
+ match t. node {
1323
1324
// Don't collect elided lifetimes used inside of `fn()` syntax
1324
- if let & hir:: Ty_ :: TyBareFn ( _) = & t . node {
1325
+ hir:: Ty_ :: TyBareFn ( _) => {
1325
1326
let old_collect_elided_lifetimes = self . collect_elided_lifetimes ;
1326
1327
self . collect_elided_lifetimes = false ;
1327
1328
@@ -1332,8 +1333,8 @@ impl<'a> LoweringContext<'a> {
1332
1333
self . currently_bound_lifetimes . truncate ( old_len) ;
1333
1334
1334
1335
self . collect_elided_lifetimes = old_collect_elided_lifetimes;
1335
- } else {
1336
- hir:: intravisit:: walk_ty ( self , t) ;
1336
+ } ,
1337
+ _ => hir:: intravisit:: walk_ty ( self , t) ,
1337
1338
}
1338
1339
}
1339
1340
You can’t perform that action at this time.
0 commit comments