cargo rustdoc -- --output-format json
now says a tuple variant is a struct variant
#87887
Labels
A-rustdoc-json
Area: Rustdoc JSON backend
C-bug
Category: This is a bug.
regression-from-stable-to-nightly
Performance or correctness regression from stable to nightly.
requires-nightly
This issue requires a nightly compiler in some way.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Note the current type of
Variant
in rustdoc-json-types:rust/src/rustdoc-json-types/lib.rs
Lines 271 to 275 in eaf6f46
Code
I tried this code:
And ran this:
I expected to see this happen (or something along these lines saying it's a tuple variant):
Instead, this happened:
Another Example
Here's a more complicated example:
Outputs:
Version it worked on
It most recently worked on: nightly-2021-06-27 -- I did not do any tests for the specific version it started failing in
Version with regression
rustc +nightly --version --verbose
:The text was updated successfully, but these errors were encountered: