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