diff options
Diffstat (limited to 'crates/ra_hir_def')
-rw-r--r-- | crates/ra_hir_def/src/body/lower.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/crates/ra_hir_def/src/body/lower.rs b/crates/ra_hir_def/src/body/lower.rs index 8338414fa..b02de5d67 100644 --- a/crates/ra_hir_def/src/body/lower.rs +++ b/crates/ra_hir_def/src/body/lower.rs | |||
@@ -492,7 +492,6 @@ impl ExprCollector<'_> { | |||
492 | ast::Stmt::ExprStmt(stmt) => { | 492 | ast::Stmt::ExprStmt(stmt) => { |
493 | Some(Statement::Expr(self.collect_expr_opt(stmt.expr()))) | 493 | Some(Statement::Expr(self.collect_expr_opt(stmt.expr()))) |
494 | } | 494 | } |
495 | ast::Stmt::ModuleItem(_) => None, | ||
496 | }) | 495 | }) |
497 | .collect(); | 496 | .collect(); |
498 | let tail = block.expr().map(|e| self.collect_expr(e)); | 497 | let tail = block.expr().map(|e| self.collect_expr(e)); |