Auto merge of #113574 - GuillaumeGomez:rustdoc-json-strip-hidden-impl, r=aDotInTheVoid,notriddle
Strip impl if not re-exported and is doc(hidden) Part of #112852. r? `@aDotInTheVoid`
This commit is contained in:
commit
ec362f0ae8
16 changed files with 107 additions and 24 deletions
|
|
@ -798,7 +798,7 @@ impl<'tcx> FormatRenderer<'tcx> for Context<'tcx> {
|
|||
if let Some(def_id) = item.def_id() && self.cache().inlined_items.contains(&def_id) {
|
||||
self.is_inside_inlined_module = true;
|
||||
}
|
||||
} else if item.is_doc_hidden() {
|
||||
} else if !self.cache().document_hidden && item.is_doc_hidden() {
|
||||
// We're not inside an inlined module anymore since this one cannot be re-exported.
|
||||
self.is_inside_inlined_module = false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue