Skip to content

Commit 52d9590

Browse files
committed
region.rs: remove unused variant from InnermostEnclosingExpr.
1 parent 40b8428 commit 52d9590

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Diff for: src/librustc/middle/region.rs

-3
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,6 @@ impl DeclaringStatementContext {
198198
enum InnermostEnclosingExpr {
199199
None,
200200
Some(ast::NodeId),
201-
DestructionScope(ast::NodeId),
202201
Statement(DeclaringStatementContext),
203202
}
204203

@@ -212,8 +211,6 @@ impl InnermostEnclosingExpr {
212211
s.to_code_extent(),
213212
InnermostEnclosingExpr::Some(parent_id) =>
214213
CodeExtent::from_node_id(parent_id),
215-
InnermostEnclosingExpr::DestructionScope(parent_id) =>
216-
CodeExtent::DestructionScope(parent_id),
217214
};
218215
Some(extent)
219216
}

0 commit comments

Comments
 (0)