aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/expr.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir/src/expr.rs')
-rw-r--r--crates/ra_hir/src/expr.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/crates/ra_hir/src/expr.rs b/crates/ra_hir/src/expr.rs
index 698fa671b..b1bec2a68 100644
--- a/crates/ra_hir/src/expr.rs
+++ b/crates/ra_hir/src/expr.rs
@@ -237,6 +237,9 @@ pub enum Expr {
237 expr: ExprId, 237 expr: ExprId,
238 mutability: Mutability, 238 mutability: Mutability,
239 }, 239 },
240 Box {
241 expr: ExprId,
242 },
240 UnaryOp { 243 UnaryOp {
241 expr: ExprId, 244 expr: ExprId,
242 op: UnaryOp, 245 op: UnaryOp,
@@ -413,7 +416,8 @@ impl Expr {
413 | Expr::Try { expr } 416 | Expr::Try { expr }
414 | Expr::Cast { expr, .. } 417 | Expr::Cast { expr, .. }
415 | Expr::Ref { expr, .. } 418 | Expr::Ref { expr, .. }
416 | Expr::UnaryOp { expr, .. } => { 419 | Expr::UnaryOp { expr, .. }
420 | Expr::Box { expr } => {
417 f(*expr); 421 f(*expr);
418 } 422 }
419 Expr::Tuple { exprs } => { 423 Expr::Tuple { exprs } => {