Skip to content

Commit

Permalink
Unrolled build for rust-lang#117713
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#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``
  • Loading branch information
rust-timer authored Nov 8, 2023
2 parents 341efb1 + 33edea6 commit 1628efc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/rustdoc-json/reexport/reexport_of_hidden.rs
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 1628efc

Please sign in to comment.