mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-04 02:54:00 +00:00
Drop dead code
This commit is contained in:
parent
aca022f1d4
commit
0630f8110f
@ -122,17 +122,6 @@ impl CrateDefMap {
|
|||||||
log::debug!("resolving {:?} in module", segment);
|
log::debug!("resolving {:?} in module", segment);
|
||||||
self.resolve_name_in_module(db, original_module, &segment, prefer_module(idx))
|
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) => {
|
PathKind::Super(lvl) => {
|
||||||
let m = successors(Some(original_module), |m| self.modules[*m].parent)
|
let m = successors(Some(original_module), |m| self.modules[*m].parent)
|
||||||
.nth(lvl as usize);
|
.nth(lvl as usize);
|
||||||
|
Loading…
Reference in New Issue
Block a user