File tree 1 file changed +2
-5
lines changed
compiler/rustc_passes/src
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -278,10 +278,6 @@ fn mark_local_terminating_scopes<'tcx>(expr: &'tcx hir::Expr<'tcx>) -> FxHashSet
278
278
}
279
279
}
280
280
impl < ' a , ' b > Visitor < ' a > for LocalAccessResolutionVisitor < ' b > {
281
- type Map = intravisit:: ErasedMap < ' a > ;
282
- fn nested_visit_map ( & mut self ) -> NestedVisitorMap < Self :: Map > {
283
- NestedVisitorMap :: None
284
- }
285
281
fn visit_expr ( & mut self , expr : & ' a Expr < ' a > ) {
286
282
match expr. kind {
287
283
hir:: ExprKind :: AddrOf ( ..)
@@ -290,7 +286,8 @@ fn mark_local_terminating_scopes<'tcx>(expr: &'tcx hir::Expr<'tcx>) -> FxHashSet
290
286
| hir:: ExprKind :: Index ( ..)
291
287
| hir:: ExprKind :: Path ( ..) => self . probe ( expr) ,
292
288
293
- // We do not probe into other function bodies or blocks.
289
+ // We do not probe into other function bodies or blocks,
290
+ // neither `if`s and `match`es because they will be covered in deeper visits
294
291
hir:: ExprKind :: If ( ..)
295
292
| hir:: ExprKind :: Match ( ..)
296
293
| hir:: ExprKind :: Block ( ..)
You can’t perform that action at this time.
0 commit comments