diff options
Diffstat (limited to 'crates/ra_hir/src/nameres.rs')
-rw-r--r-- | crates/ra_hir/src/nameres.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/crates/ra_hir/src/nameres.rs b/crates/ra_hir/src/nameres.rs index 4874e82f3..72791ed49 100644 --- a/crates/ra_hir/src/nameres.rs +++ b/crates/ra_hir/src/nameres.rs | |||
@@ -15,7 +15,8 @@ | |||
15 | //! so that the results of name resolution can be preserved unless the module | 15 | //! so that the results of name resolution can be preserved unless the module |
16 | //! structure itself is modified. | 16 | //! structure itself is modified. |
17 | pub(crate) mod lower; | 17 | pub(crate) mod lower; |
18 | use lower::*; | 18 | |
19 | use crate::nameres::lower::*; | ||
19 | 20 | ||
20 | use std::sync::Arc; | 21 | use std::sync::Arc; |
21 | 22 | ||
@@ -59,7 +60,7 @@ impl ModuleScope { | |||
59 | pub struct Resolution { | 60 | pub struct Resolution { |
60 | /// None for unresolved | 61 | /// None for unresolved |
61 | pub def_id: PerNs<DefId>, | 62 | pub def_id: PerNs<DefId>, |
62 | /// ident by whitch this is imported into local scope. | 63 | /// ident by which this is imported into local scope. |
63 | pub import: Option<ImportId>, | 64 | pub import: Option<ImportId>, |
64 | } | 65 | } |
65 | 66 | ||
@@ -317,6 +318,10 @@ where | |||
317 | } | 318 | } |
318 | } | 319 | } |
319 | PathKind::Crate => module_id.crate_root(&self.module_tree), | 320 | PathKind::Crate => module_id.crate_root(&self.module_tree), |
321 | PathKind::Abs => { | ||
322 | // TODO: absolute use is not supported for now | ||
323 | return false; | ||
324 | } | ||
320 | }; | 325 | }; |
321 | 326 | ||
322 | for (i, segment) in import.path.segments.iter().enumerate() { | 327 | for (i, segment) in import.path.segments.iter().enumerate() { |