mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
Rename expr -> tail_expr
This commit is contained in:
parent
5c10f2f705
commit
f9707cde68
18 changed files with 34 additions and 29 deletions
|
@ -695,7 +695,7 @@ impl ExprCollector<'_> {
|
|||
self.collect_stmts_items(block.statements());
|
||||
let statements =
|
||||
block.statements().filter_map(|s| self.collect_stmt(s)).flatten().collect();
|
||||
let tail = block.expr().map(|e| self.collect_expr(e));
|
||||
let tail = block.tail_expr().map(|e| self.collect_expr(e));
|
||||
self.alloc_expr(Expr::Block { statements, tail, label: None }, syntax_node_ptr)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue