diff options
author | Aleksey Kladov <[email protected]> | 2020-04-30 21:41:14 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-04-30 21:41:14 +0100 |
commit | 292ba6a1f81fee4170c3081f74499fe8c3ddedd4 (patch) | |
tree | b811687045b42a2b7af226c89f175a072e1ff6ec /crates/ra_hir_def | |
parent | 15cfa9a808be820ceafc2e957ea8532e8ec68f00 (diff) |
Remove dead code, which elaborately pretends to be alive
Diffstat (limited to 'crates/ra_hir_def')
-rw-r--r-- | crates/ra_hir_def/src/body/lower.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/crates/ra_hir_def/src/body/lower.rs b/crates/ra_hir_def/src/body/lower.rs index 571603854..f467ed3fe 100644 --- a/crates/ra_hir_def/src/body/lower.rs +++ b/crates/ra_hir_def/src/body/lower.rs | |||
@@ -182,10 +182,6 @@ impl ExprCollector<'_> { | |||
182 | 182 | ||
183 | self.alloc_expr(Expr::If { condition, then_branch, else_branch }, syntax_ptr) | 183 | self.alloc_expr(Expr::If { condition, then_branch, else_branch }, syntax_ptr) |
184 | } | 184 | } |
185 | ast::Expr::TryBlockExpr(e) => { | ||
186 | let body = self.collect_block_opt(e.body()); | ||
187 | self.alloc_expr(Expr::TryBlock { body }, syntax_ptr) | ||
188 | } | ||
189 | ast::Expr::BlockExpr(e) => self.collect_block(e), | 185 | ast::Expr::BlockExpr(e) => self.collect_block(e), |
190 | ast::Expr::LoopExpr(e) => { | 186 | ast::Expr::LoopExpr(e) => { |
191 | let body = self.collect_block_opt(e.loop_body()); | 187 | let body = self.collect_block_opt(e.loop_body()); |