diff options
Diffstat (limited to 'crates/hir_def/src/body')
-rw-r--r-- | crates/hir_def/src/body/lower.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir_def/src/body/lower.rs b/crates/hir_def/src/body/lower.rs index 28b11cdde..c18001e15 100644 --- a/crates/hir_def/src/body/lower.rs +++ b/crates/hir_def/src/body/lower.rs | |||
@@ -712,7 +712,7 @@ impl ExprCollector<'_> { | |||
712 | let statements = | 712 | let statements = |
713 | block.statements().filter_map(|s| self.collect_stmt(s)).flatten().collect(); | 713 | block.statements().filter_map(|s| self.collect_stmt(s)).flatten().collect(); |
714 | let tail = block.tail_expr().map(|e| self.collect_expr(e)); | 714 | let tail = block.tail_expr().map(|e| self.collect_expr(e)); |
715 | let syntax_node_ptr = AstPtr::new(&block.clone().into()); | 715 | let syntax_node_ptr = AstPtr::new(&block.into()); |
716 | let expr_id = self.alloc_expr( | 716 | let expr_id = self.alloc_expr( |
717 | Expr::Block { id: block_id, statements, tail, label: None }, | 717 | Expr::Block { id: block_id, statements, tail, label: None }, |
718 | syntax_node_ptr, | 718 | syntax_node_ptr, |