summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc/issue-88600.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:18:58 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:18:58 +0000
commita4b7ed7a42c716ab9f05e351f003d589124fd55d (patch)
treeb620cd3f223850b28716e474e80c58059dca5dd4 /src/test/rustdoc/issue-88600.rs
parentAdding upstream version 1.67.1+dfsg1. (diff)
downloadrustc-a4b7ed7a42c716ab9f05e351f003d589124fd55d.tar.xz
rustc-a4b7ed7a42c716ab9f05e351f003d589124fd55d.zip
Adding upstream version 1.68.2+dfsg1.upstream/1.68.2+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/rustdoc/issue-88600.rs')
-rw-r--r--src/test/rustdoc/issue-88600.rs35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/test/rustdoc/issue-88600.rs b/src/test/rustdoc/issue-88600.rs
deleted file mode 100644
index db0d102b7..000000000
--- a/src/test/rustdoc/issue-88600.rs
+++ /dev/null
@@ -1,35 +0,0 @@
-// This test ensure that #[doc(hidden)] is applied correctly in enum variant fields.
-
-// Denotes a field which should be hidden.
-pub struct H;
-
-// Denotes a field which should not be hidden (shown).
-pub struct S;
-
-// @has issue_88600/enum.FooEnum.html
-pub enum FooEnum {
- // @has - '//*[@id="variant.HiddenTupleItem"]//h3' 'HiddenTupleItem(_)'
- // @count - '//*[@id="variant.HiddenTupleItem.field.0"]' 0
- HiddenTupleItem(#[doc(hidden)] H),
- // @has - '//*[@id="variant.MultipleHidden"]//h3' 'MultipleHidden(_, _)'
- // @count - '//*[@id="variant.MultipleHidden.field.0"]' 0
- // @count - '//*[@id="variant.MultipleHidden.field.1"]' 0
- MultipleHidden(#[doc(hidden)] H, #[doc(hidden)] H),
- // @has - '//*[@id="variant.MixedHiddenFirst"]//h3' 'MixedHiddenFirst(_, S)'
- // @count - '//*[@id="variant.MixedHiddenFirst.field.0"]' 0
- // @has - '//*[@id="variant.MixedHiddenFirst.field.1"]' '1: S'
- MixedHiddenFirst(#[doc(hidden)] H, /** dox */ S),
- // @has - '//*[@id="variant.MixedHiddenLast"]//h3' 'MixedHiddenLast(S, _)'
- // @has - '//*[@id="variant.MixedHiddenLast.field.0"]' '0: S'
- // @count - '//*[@id="variant.MixedHiddenLast.field.1"]' 0
- MixedHiddenLast(/** dox */ S, #[doc(hidden)] H),
- // @has - '//*[@id="variant.HiddenStruct"]//h3' 'HiddenStruct'
- // @count - '//*[@id="variant.HiddenStruct.field.h"]' 0
- // @has - '//*[@id="variant.HiddenStruct.field.s"]' 's: S'
- HiddenStruct {
- #[doc(hidden)]
- h: H,
- /// dox
- s: S,
- },
-}