diff options
Diffstat (limited to 'crates/ra_hir/src/expr/lower.rs')
-rw-r--r-- | crates/ra_hir/src/expr/lower.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/ra_hir/src/expr/lower.rs b/crates/ra_hir/src/expr/lower.rs index 8bd041ff0..2be6f5421 100644 --- a/crates/ra_hir/src/expr/lower.rs +++ b/crates/ra_hir/src/expr/lower.rs | |||
@@ -389,6 +389,10 @@ where | |||
389 | let exprs = e.exprs().map(|expr| self.collect_expr(expr)).collect(); | 389 | let exprs = e.exprs().map(|expr| self.collect_expr(expr)).collect(); |
390 | self.alloc_expr(Expr::Tuple { exprs }, syntax_ptr) | 390 | self.alloc_expr(Expr::Tuple { exprs }, syntax_ptr) |
391 | } | 391 | } |
392 | ast::Expr::BoxExpr(e) => { | ||
393 | let expr = self.collect_expr_opt(e.expr()); | ||
394 | self.alloc_expr(Expr::Box { expr }, syntax_ptr) | ||
395 | } | ||
392 | 396 | ||
393 | ast::Expr::ArrayExpr(e) => { | 397 | ast::Expr::ArrayExpr(e) => { |
394 | let kind = e.kind(); | 398 | let kind = e.kind(); |