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.
1 parent bb7bd01 commit 23288f4Copy full SHA for 23288f4
src/librustdoc/passes/strip_hidden.rs
@@ -90,8 +90,9 @@ impl DocFolder for Stripper<'_, '_> {
90
let has_doc_hidden = i.is_doc_hidden();
91
92
if let clean::ImportItem(clean::Import { source, .. }) = &i.kind {
93
- if let Some(source_did) = source.did {
94
- let import_def_id = i.def_id().unwrap().expect_local();
+ if let Some(source_did) = source.did
+ && let Some(import_def_id) = i.def_id().and_then(|def_id| def_id.as_local())
95
+ {
96
let reexports = reexport_chain(self.tcx, import_def_id, source_did);
97
98
// Check if any reexport in the chain has a hidden source
0 commit comments