aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_def
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir_def')
-rw-r--r--crates/ra_hir_def/src/nameres/path_resolution.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/crates/ra_hir_def/src/nameres/path_resolution.rs b/crates/ra_hir_def/src/nameres/path_resolution.rs
index 19d57baae..42a75226b 100644
--- a/crates/ra_hir_def/src/nameres/path_resolution.rs
+++ b/crates/ra_hir_def/src/nameres/path_resolution.rs
@@ -80,7 +80,6 @@ impl CrateDefMap {
80 }; 80 };
81 81
82 let mut segments = path.segments.iter().enumerate(); 82 let mut segments = path.segments.iter().enumerate();
83
84 let mut curr_per_ns: PerNs = match path.kind { 83 let mut curr_per_ns: PerNs = match path.kind {
85 PathKind::DollarCrate(krate) => { 84 PathKind::DollarCrate(krate) => {
86 if krate == self.krate { 85 if krate == self.krate {
@@ -112,7 +111,6 @@ impl CrateDefMap {
112 None => return ResolvePathResult::empty(ReachedFixedPoint::Yes), 111 None => return ResolvePathResult::empty(ReachedFixedPoint::Yes),
113 }; 112 };
114 log::debug!("resolving {:?} in crate root (+ extern prelude)", segment); 113 log::debug!("resolving {:?} in crate root (+ extern prelude)", segment);
115
116 self.resolve_name_in_crate_root_or_extern_prelude(&segment.name, prefer_module(idx)) 114 self.resolve_name_in_crate_root_or_extern_prelude(&segment.name, prefer_module(idx))
117 } 115 }
118 PathKind::Plain => { 116 PathKind::Plain => {