From f9707cde6801f13cc4c20e3e08cee07ef23b8563 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 5 Jan 2021 15:45:46 +0300 Subject: Rename expr -> tail_expr --- crates/completion/src/context.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/completion/src') diff --git a/crates/completion/src/context.rs b/crates/completion/src/context.rs index 41de324d8..f979697ab 100644 --- a/crates/completion/src/context.rs +++ b/crates/completion/src/context.rs @@ -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()), ); } -- cgit v1.2.3