aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir
diff options
context:
space:
mode:
authorgfreezy <[email protected]>2019-03-25 17:02:06 +0000
committergfreezy <[email protected]>2019-04-01 15:53:47 +0100
commit4ca51cfbcfe75b27c21bc269780992f55b4c6d84 (patch)
tree371c29b6c8537ba5e0c1062859e6da8c7dd777cc /crates/ra_hir
parent56f3524c693eed6a849f27139b6c8f32986ca4b8 (diff)
intelligently add parens when inlining local varaibles
Diffstat (limited to 'crates/ra_hir')
-rw-r--r--crates/ra_hir/src/expr.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/ra_hir/src/expr.rs b/crates/ra_hir/src/expr.rs
index 2ff4139f9..946c9faf2 100644
--- a/crates/ra_hir/src/expr.rs
+++ b/crates/ra_hir/src/expr.rs
@@ -760,6 +760,7 @@ impl ExprCollector {
760 ast::ExprKind::Label(_e) => self.alloc_expr(Expr::Missing, syntax_ptr), 760 ast::ExprKind::Label(_e) => self.alloc_expr(Expr::Missing, syntax_ptr),
761 ast::ExprKind::IndexExpr(_e) => self.alloc_expr(Expr::Missing, syntax_ptr), 761 ast::ExprKind::IndexExpr(_e) => self.alloc_expr(Expr::Missing, syntax_ptr),
762 ast::ExprKind::RangeExpr(_e) => self.alloc_expr(Expr::Missing, syntax_ptr), 762 ast::ExprKind::RangeExpr(_e) => self.alloc_expr(Expr::Missing, syntax_ptr),
763 ast::ExprKind::MacroCall(_e) => self.alloc_expr(Expr::Missing, syntax_ptr),
763 } 764 }
764 } 765 }
765 766