Rustdoc-Json: Document Stripped Fields for enum varients #100587
Labels
A-rustdoc-json
Area: Rustdoc JSON backend
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
At some point their should also be a
has_striped_fields
forVariant
, and probably a way to tell what position each of the non stripped items are, as currently each of these 3 variants are documented with the same inner.but HTML gets a good representation:
The solution is probably to do what we do for structs, and store the
StructType
, and aVec<Id>
, such that each field of a varient gets anItem
to hold thename
. We also should have a num_fields, as even in that schema, you can't tell the difference betweenThis also effects struct AFAIKT.
I don't think this needs to be done now. I'll file an issue for it.
Originally posted by @aDotInTheVoid in #100582 (comment)
@rustbot modify labels: +A-rustdoc-json +T-rustdoc
The text was updated successfully, but these errors were encountered: