aboutsummaryrefslogtreecommitdiff
path: root/crates/completion/src
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-01-05 12:51:38 +0000
committerGitHub <[email protected]>2021-01-05 12:51:38 +0000
commitc8d3d5694be065ffb1d52bc33e098ff610693097 (patch)
treec76f0f04f1de55ff75253a8508aa803c4f958caf /crates/completion/src
parentd7013a5934af1e2aaa60dcf19b1b6bb529594565 (diff)
parentf9707cde6801f13cc4c20e3e08cee07ef23b8563 (diff)
Merge #7168
7168: Rename expr -> tail_expr r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/completion/src')
-rw-r--r--crates/completion/src/context.rs2
1 files changed, 1 insertions, 1 deletions
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> {
458 } 458 }
459 if let Some(block) = ast::BlockExpr::cast(node) { 459 if let Some(block) = ast::BlockExpr::cast(node) {
460 return Some( 460 return Some(
461 block.expr().map(|e| e.syntax().text_range()) 461 block.tail_expr().map(|e| e.syntax().text_range())
462 == Some(name_ref.syntax().text_range()), 462 == Some(name_ref.syntax().text_range()),
463 ); 463 );
464 } 464 }