diff options
| author | bors <bors@rust-lang.org> | 2023-07-18 02:47:03 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-07-18 02:47:03 +0000 |
| commit | ec362f0ae8a05618b75727cfdca853540cb2950e (patch) | |
| tree | 76740f096701b11c105fc5cb0d85eb19743de437 /src/librustdoc/html | |
| parent | 745efcc7d9b59d31674bf9445269924377019c5c (diff) | |
| parent | c132cdbe5f3186089517e4fb288320be85388cbc (diff) | |
| download | rust-ec362f0ae8a05618b75727cfdca853540cb2950e.tar.gz rust-ec362f0ae8a05618b75727cfdca853540cb2950e.zip | |
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`
Diffstat (limited to 'src/librustdoc/html')
| -rw-r--r-- | src/librustdoc/html/render/context.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/render/context.rs b/src/librustdoc/html/render/context.rs index aa72af001df..037c88cb85d 100644 --- a/src/librustdoc/html/render/context.rs +++ b/src/librustdoc/html/render/context.rs @@ -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; } |
