From 4ca51cfbcfe75b27c21bc269780992f55b4c6d84 Mon Sep 17 00:00:00 2001 From: gfreezy Date: Tue, 26 Mar 2019 01:02:06 +0800 Subject: intelligently add parens when inlining local varaibles --- crates/ra_hir/src/expr.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'crates/ra_hir') 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 { ast::ExprKind::Label(_e) => self.alloc_expr(Expr::Missing, syntax_ptr), ast::ExprKind::IndexExpr(_e) => self.alloc_expr(Expr::Missing, syntax_ptr), ast::ExprKind::RangeExpr(_e) => self.alloc_expr(Expr::Missing, syntax_ptr), + ast::ExprKind::MacroCall(_e) => self.alloc_expr(Expr::Missing, syntax_ptr), } } -- cgit v1.2.3