diff options
Diffstat (limited to 'crates/ra_analysis/src/completion/mod.rs')
-rw-r--r-- | crates/ra_analysis/src/completion/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/ra_analysis/src/completion/mod.rs b/crates/ra_analysis/src/completion/mod.rs index 124da486a..0f154112a 100644 --- a/crates/ra_analysis/src/completion/mod.rs +++ b/crates/ra_analysis/src/completion/mod.rs | |||
@@ -9,6 +9,7 @@ use ra_syntax::{ | |||
9 | }; | 9 | }; |
10 | use ra_db::SyntaxDatabase; | 10 | use ra_db::SyntaxDatabase; |
11 | use rustc_hash::{FxHashMap}; | 11 | use rustc_hash::{FxHashMap}; |
12 | use hir::source_binder; | ||
12 | 13 | ||
13 | use crate::{ | 14 | use crate::{ |
14 | db, | 15 | db, |
@@ -36,7 +37,7 @@ pub(crate) fn completions( | |||
36 | original_file.reparse(&edit) | 37 | original_file.reparse(&edit) |
37 | }; | 38 | }; |
38 | 39 | ||
39 | let module = ctry!(hir::Module::guess_from_position(db, position)?); | 40 | let module = ctry!(source_binder::module_from_position(db, position)?); |
40 | 41 | ||
41 | let mut res = Vec::new(); | 42 | let mut res = Vec::new(); |
42 | let mut has_completions = false; | 43 | let mut has_completions = false; |