aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/nameres.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir/src/nameres.rs')
-rw-r--r--crates/ra_hir/src/nameres.rs9
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.
17pub(crate) mod lower; 17pub(crate) mod lower;
18use lower::*; 18
19use crate::nameres::lower::*;
19 20
20use std::sync::Arc; 21use std::sync::Arc;
21 22
@@ -59,7 +60,7 @@ impl ModuleScope {
59pub struct Resolution { 60pub 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() {