Merge #2582
2582: Drop dead code r=matklad a=matklad Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
commit
ff8f80579a
@ -122,17 +122,6 @@ pub(super) fn resolve_path_fp_with_macro(
|
||||
log::debug!("resolving {:?} in module", segment);
|
||||
self.resolve_name_in_module(db, original_module, &segment, prefer_module(idx))
|
||||
}
|
||||
// PathKind::Self_ => {
|
||||
// PerNs::types(ModuleId { krate: self.krate, local_id: original_module }.into())
|
||||
// }
|
||||
// PathKind::Super => {
|
||||
// if let Some(p) = self.modules[original_module].parent {
|
||||
// PerNs::types(ModuleId { krate: self.krate, local_id: p }.into())
|
||||
// } else {
|
||||
// log::debug!("super path in root module");
|
||||
// return ResolvePathResult::empty(ReachedFixedPoint::Yes);
|
||||
// }
|
||||
// }
|
||||
PathKind::Super(lvl) => {
|
||||
let m = successors(Some(original_module), |m| self.modules[*m].parent)
|
||||
.nth(lvl as usize);
|
||||
|
Loading…
Reference in New Issue
Block a user