Remove unneeded handling for ExternalLocation::Unknown
in rustdoc render context
This commit is contained in:
parent
bacf5bcbc7
commit
1fa8b9aa56
1 changed files with 1 additions and 6 deletions
|
@ -349,12 +349,7 @@ impl<'tcx> Context<'tcx> {
|
|||
let e = ExternalCrate { crate_num: cnum };
|
||||
(e.name(self.tcx()), e.src_root(self.tcx()))
|
||||
}
|
||||
ExternalLocation::Unknown => {
|
||||
let e = ExternalCrate { crate_num: cnum };
|
||||
let name = e.name(self.tcx());
|
||||
root = name.to_string();
|
||||
(name, e.src_root(self.tcx()))
|
||||
}
|
||||
ExternalLocation::Unknown => return None,
|
||||
};
|
||||
|
||||
let href = RefCell::new(PathBuf::new());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue