Skip to content

Commit 0534576

Browse files
committed
Don't enter duplicate scope
1 parent 001ef61 commit 0534576

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

compiler/rustc_passes/src/region.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ fn resolve_stmt<'tcx>(visitor: &mut RegionResolutionVisitor<'tcx>, stmt: &'tcx h
196196
visitor.terminating_scopes.insert(stmt_id);
197197

198198
let prev_parent = visitor.cx.parent;
199-
visitor.enter_node_scope_with_dtor(stmt_id);
200199

201200
intravisit::walk_stmt(visitor, stmt);
202201

0 commit comments

Comments
 (0)