We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 425726d + 1fa8b9a commit 4c8bb79Copy full SHA for 4c8bb79
src/librustdoc/html/render/context.rs
@@ -349,12 +349,7 @@ impl<'tcx> Context<'tcx> {
349
let e = ExternalCrate { crate_num: cnum };
350
(e.name(self.tcx()), e.src_root(self.tcx()))
351
}
352
- ExternalLocation::Unknown => {
353
- let e = ExternalCrate { crate_num: cnum };
354
- let name = e.name(self.tcx());
355
- root = name.to_string();
356
- (name, e.src_root(self.tcx()))
357
- }
+ ExternalLocation::Unknown => return None,
358
};
359
360
let href = RefCell::new(PathBuf::new());
0 commit comments