diff options
Diffstat (limited to 'crates/ra_hir_def')
-rw-r--r-- | crates/ra_hir_def/src/nameres/path_resolution.rs | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/crates/ra_hir_def/src/nameres/path_resolution.rs b/crates/ra_hir_def/src/nameres/path_resolution.rs index a3bfc1542..1dbc4f371 100644 --- a/crates/ra_hir_def/src/nameres/path_resolution.rs +++ b/crates/ra_hir_def/src/nameres/path_resolution.rs | |||
@@ -122,17 +122,6 @@ impl CrateDefMap { | |||
122 | log::debug!("resolving {:?} in module", segment); | 122 | log::debug!("resolving {:?} in module", segment); |
123 | self.resolve_name_in_module(db, original_module, &segment, prefer_module(idx)) | 123 | self.resolve_name_in_module(db, original_module, &segment, prefer_module(idx)) |
124 | } | 124 | } |
125 | // PathKind::Self_ => { | ||
126 | // PerNs::types(ModuleId { krate: self.krate, local_id: original_module }.into()) | ||
127 | // } | ||
128 | // PathKind::Super => { | ||
129 | // if let Some(p) = self.modules[original_module].parent { | ||
130 | // PerNs::types(ModuleId { krate: self.krate, local_id: p }.into()) | ||
131 | // } else { | ||
132 | // log::debug!("super path in root module"); | ||
133 | // return ResolvePathResult::empty(ReachedFixedPoint::Yes); | ||
134 | // } | ||
135 | // } | ||
136 | PathKind::Super(lvl) => { | 125 | PathKind::Super(lvl) => { |
137 | let m = successors(Some(original_module), |m| self.modules[*m].parent) | 126 | let m = successors(Some(original_module), |m| self.modules[*m].parent) |
138 | .nth(lvl as usize); | 127 | .nth(lvl as usize); |