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``
This commit is contained in:
Guillaume Gomez 2023-11-08 17:14:37 +01:00 committed by GitHub
commit 9d3c80248b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,10 @@
// compile-flags: --document-hidden-items
// @has "$.index[*].inner[?(@.import.name=='UsedHidden')]"
// @has "$.index[*][?(@.name=='Hidden')]"
pub mod submodule {
#[doc(hidden)]
pub struct Hidden {}
}
pub use submodule::Hidden as UsedHidden;