7168: Rename expr -> tail_expr r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
bors[bot]
2021-01-05 12:51:38 +00:00
committed by GitHub
18 changed files with 34 additions and 29 deletions

View File

@@ -458,7 +458,7 @@ impl<'a> CompletionContext<'a> {
}
if let Some(block) = ast::BlockExpr::cast(node) {
return Some(
block.expr().map(|e| e.syntax().text_range())
block.tail_expr().map(|e| e.syntax().text_range())
== Some(name_ref.syntax().text_range()),
);
}