Skip to content

rustdoc: Bad rendering of enums with named fields #54758

Description

@RalfJung

Consider the documentation at https://doc.rust-lang.org/nightly/nightly-rustc/rustc/ty/layout/enum.Abi.html. After expanding the fields, it looks like

screenshot from 2018-10-02 19-55-03

To me this looks like an enum with 4 variants. The way things are indented, I did not even realize that there is a fifth variant, Aggregate. I don't mind so much that the tables showing the enum variant fields are not very pretty, but the way they are flushed to the left makes the entire thing really hard to read.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions