diff options
| author | bors <bors@rust-lang.org> | 2022-05-23 18:26:42 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-05-23 18:26:42 +0000 |
| commit | 222c5724ecc922fe67815f428c19f82c129d9386 (patch) | |
| tree | 1a971ac53653c12c8198f5ee2f651b8092b0def6 /src/test | |
| parent | 7f997f589f4e0b1c59a3680e7a8dd941d3ada518 (diff) | |
| parent | 8323b053b21cd8a61987d6e4b6c275338dc45cbb (diff) | |
| download | rust-222c5724ecc922fe67815f428c19f82c129d9386.tar.gz rust-222c5724ecc922fe67815f428c19f82c129d9386.zip | |
Auto merge of #94053 - GuillaumeGomez:fields-stripped, r=notriddle
rustdoc: Remove fields_stripped fields (and equivalents) Fixes #90588. r? `@camelid`
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/rustdoc/strip-enum-variant.no-not-shown.html | 1 | ||||
| -rw-r--r-- | src/test/rustdoc/strip-enum-variant.rs | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/test/rustdoc/strip-enum-variant.no-not-shown.html b/src/test/rustdoc/strip-enum-variant.no-not-shown.html new file mode 100644 index 00000000000..c4ee1a99114 --- /dev/null +++ b/src/test/rustdoc/strip-enum-variant.no-not-shown.html @@ -0,0 +1 @@ +<ul><li><a href="#variant.Shown">Shown</a></li></ul> \ No newline at end of file diff --git a/src/test/rustdoc/strip-enum-variant.rs b/src/test/rustdoc/strip-enum-variant.rs index 12e57610071..f82ffdfeda5 100644 --- a/src/test/rustdoc/strip-enum-variant.rs +++ b/src/test/rustdoc/strip-enum-variant.rs @@ -2,6 +2,8 @@ // @has - '//code' 'Shown' // @!has - '//code' 'NotShown' // @has - '//code' '// some variants omitted' +// Also check that `NotShown` isn't displayed in the sidebar. +// @snapshot no-not-shown - '//*[@class="sidebar-elems"]/section/*[@class="block"][1]/ul' pub enum MyThing { Shown, #[doc(hidden)] |
