diff options
author | Aleksey Kladov <[email protected]> | 2020-08-13 21:41:55 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-08-13 21:41:55 +0100 |
commit | 86f89d9b31fc7e4fd9300570e6b6304c749caa6c (patch) | |
tree | a155074dd0b2cdbaf207025a30ce66c6780f4c65 /crates/ide/src/completion/complete_qualified_path.rs | |
parent | 3d6fd620e80050d68e6da55aabad2ca780ba2323 (diff) |
Remove Hygiene from completion
Diffstat (limited to 'crates/ide/src/completion/complete_qualified_path.rs')
-rw-r--r-- | crates/ide/src/completion/complete_qualified_path.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ide/src/completion/complete_qualified_path.rs b/crates/ide/src/completion/complete_qualified_path.rs index cb7dd23c1..74794dc88 100644 --- a/crates/ide/src/completion/complete_qualified_path.rs +++ b/crates/ide/src/completion/complete_qualified_path.rs | |||
@@ -8,7 +8,7 @@ use test_utils::mark; | |||
8 | use crate::completion::{CompletionContext, Completions}; | 8 | use crate::completion::{CompletionContext, Completions}; |
9 | 9 | ||
10 | pub(super) fn complete_qualified_path(acc: &mut Completions, ctx: &CompletionContext) { | 10 | pub(super) fn complete_qualified_path(acc: &mut Completions, ctx: &CompletionContext) { |
11 | let path = match &ctx.path_prefix { | 11 | let path = match &ctx.path_qual { |
12 | Some(path) => path.clone(), | 12 | Some(path) => path.clone(), |
13 | None => return, | 13 | None => return, |
14 | }; | 14 | }; |
@@ -19,7 +19,7 @@ pub(super) fn complete_qualified_path(acc: &mut Completions, ctx: &CompletionCon | |||
19 | 19 | ||
20 | let context_module = ctx.scope.module(); | 20 | let context_module = ctx.scope.module(); |
21 | 21 | ||
22 | let resolution = match ctx.scope.resolve_hir_path_qualifier(&path) { | 22 | let resolution = match ctx.sema.resolve_path(&path) { |
23 | Some(res) => res, | 23 | Some(res) => res, |
24 | None => return, | 24 | None => return, |
25 | }; | 25 | }; |