aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/completion/completion_context.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_ide/src/completion/completion_context.rs')
-rw-r--r--crates/ra_ide/src/completion/completion_context.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/crates/ra_ide/src/completion/completion_context.rs b/crates/ra_ide/src/completion/completion_context.rs
index f9d4154d8..65bdac182 100644
--- a/crates/ra_ide/src/completion/completion_context.rs
+++ b/crates/ra_ide/src/completion/completion_context.rs
@@ -197,9 +197,11 @@ impl<'a> CompletionContext<'a> {
197 self.is_pat_binding = true; 197 self.is_pat_binding = true;
198 } 198 }
199 199
200 let bind_pat_string = bind_pat.syntax().to_string(); 200 if parent.and_then(ast::RecordFieldPatList::cast).is_none() {
201 if !bind_pat_string.contains("ref ") && !bind_pat_string.contains(" @ ") { 201 let bind_pat_string = bind_pat.syntax().to_string();
202 self.is_pat_binding_and_path = true; 202 if !bind_pat_string.contains("ref ") && !bind_pat_string.contains(" @ ") {
203 self.is_pat_binding_and_path = true;
204 }
203 } 205 }
204 } 206 }
205 if is_node::<ast::Param>(name.syntax()) { 207 if is_node::<ast::Param>(name.syntax()) {