diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-08-15 20:11:40 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-15 20:11:40 +0200 |
| commit | fba30041f6d892cdd93d650d96d8f42ab0602d19 (patch) | |
| tree | 645416d9098fc4119c71c7a30a6aae630cf792ca /src/test/rustdoc-json | |
| parent | 5319d247c8045c2a225d20d055944f1cd6f1059f (diff) | |
| parent | 36758a2444a9c71e845f9d9838a68a15b473d95e (diff) | |
Rollup merge of #100582 - GuillaumeGomez:rustdoc-json-stripped-enum-variant, r=notriddle
[rustdoc] Fix handling of stripped enum variant in JSON output format Fixes https://github.com/rust-lang/rust/issues/100529. cc ``@aDotInTheVoid`` ``@Enselic`` r? ``@notriddle``
Diffstat (limited to 'src/test/rustdoc-json')
| -rw-r--r-- | src/test/rustdoc-json/enum_variant_hidden.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/rustdoc-json/enum_variant_hidden.rs b/src/test/rustdoc-json/enum_variant_hidden.rs new file mode 100644 index 00000000000..96c96a975d3 --- /dev/null +++ b/src/test/rustdoc-json/enum_variant_hidden.rs @@ -0,0 +1,13 @@ +// Regression test for <https://github.com/rust-lang/rust/issues/100529>. + +#![no_core] +#![feature(no_core)] + +// @has enum_variant_hidden.json "$.index[*][?(@.name=='ParseError')]" +// @has - "$.index[*][?(@.name=='UnexpectedEndTag')]" +// @is - "$.index[*][?(@.name=='UnexpectedEndTag')].inner.variant_kind" '"tuple"' +// @is - "$.index[*][?(@.name=='UnexpectedEndTag')].inner.variant_inner" [] + +pub enum ParseError { + UnexpectedEndTag(#[doc(hidden)] u32), +} |
