aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/expr.rs
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2019-04-01 22:05:10 +0100
committerbors[bot] <bors[bot]@users.noreply.github.com>2019-04-01 22:05:10 +0100
commit9282c6d3d03ac236a6d33b6f0a6ac076d0b11725 (patch)
tree371c29b6c8537ba5e0c1062859e6da8c7dd777cc /crates/ra_hir/src/expr.rs
parent56f3524c693eed6a849f27139b6c8f32986ca4b8 (diff)
parent4ca51cfbcfe75b27c21bc269780992f55b4c6d84 (diff)
Merge #1050
1050: Intelligently add parens when inlining local varaibles r=matklad a=gfreezy fixed this. https://github.com/rust-analyzer/rust-analyzer/pull/1037#discussion_r268627141 Co-authored-by: gfreezy <[email protected]>
Diffstat (limited to 'crates/ra_hir/src/expr.rs')
-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