Consider omitting "some variants omitted" in enum documentation if enum is non_exhaustive #108925
Labels
A-visibility
Area: Visibility / privacy.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Would it be reasonable for Rustdoc to produce exactly the same output for
Enum2
andEnum3
? I think so. These two types have an identical public API.Separately, would it be reasonable for Rustdoc to produce exactly the same output for
Enum1
andEnum2
? Whether that means printing a synthetic#[non_exhaustive]
attribute onEnum1
instead of the// some variants omitted
comment, or some other approach that unifies all three of these outputs.Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: