Skip to content

Commit 9d3c802

Browse files
Rollup merge of #117713 - GuillaumeGomez:document-hidden-json, r=notriddle
Add test for reexported hidden item with `--document-hidden-items` Coming from [this discussion on zulip](https://rust-lang.zulipchat.com/#narrow/stream/266220-t-rustdoc/topic/Using.20cargo-semver-checks.20in.20rustdoc.20JSON.20tests.3A.20revisited). cc ``@aDotInTheVoid`` r? ``@notriddle``
2 parents d8c52b3 + 33edea6 commit 9d3c802

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// compile-flags: --document-hidden-items
2+
3+
// @has "$.index[*].inner[?(@.import.name=='UsedHidden')]"
4+
// @has "$.index[*][?(@.name=='Hidden')]"
5+
pub mod submodule {
6+
#[doc(hidden)]
7+
pub struct Hidden {}
8+
}
9+
10+
pub use submodule::Hidden as UsedHidden;

0 commit comments

Comments
 (0)