aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_def/src/body
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-05-02 00:16:19 +0100
committerGitHub <[email protected]>2020-05-02 00:16:19 +0100
commit3c96de5380a09fe06752ce146edeb017ae8c701c (patch)
tree27298926ab8ffa68cfef463bd37d6564ffb417dd /crates/ra_hir_def/src/body
parenta984587c47a8ad8b7dbdae0509089a9f6d898d8d (diff)
parentfd030f9450ed6910677e30f8fa65b06e71fcffa2 (diff)
Merge #4254
4254: Put ? back in place r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_hir_def/src/body')
-rw-r--r--crates/ra_hir_def/src/body/lower.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/ra_hir_def/src/body/lower.rs b/crates/ra_hir_def/src/body/lower.rs
index e9dd65b0a..f06cc115b 100644
--- a/crates/ra_hir_def/src/body/lower.rs
+++ b/crates/ra_hir_def/src/body/lower.rs
@@ -203,6 +203,10 @@ impl ExprCollector<'_> {
203 203
204 self.alloc_expr(Expr::If { condition, then_branch, else_branch }, syntax_ptr) 204 self.alloc_expr(Expr::If { condition, then_branch, else_branch }, syntax_ptr)
205 } 205 }
206 ast::Expr::TryBlockExpr(e) => {
207 let body = self.collect_block_opt(e.body());
208 self.alloc_expr(Expr::TryBlock { body }, syntax_ptr)
209 }
206 ast::Expr::BlockExpr(e) => self.collect_block(e), 210 ast::Expr::BlockExpr(e) => self.collect_block(e),
207 ast::Expr::LoopExpr(e) => { 211 ast::Expr::LoopExpr(e) => {
208 let body = self.collect_block_opt(e.loop_body()); 212 let body = self.collect_block_opt(e.loop_body());