Skip to content

rustdoc: Extra margin in enum definition #60792

Closed
@jethrogb

Description

@jethrogb

The enum definition at https://doc.rust-lang.org/nightly/nightly-rustc/rustc_errors/diagnostic/enum.DiagnosticId.html currently looks like:

pub enum DiagnosticId {
    Error(String),
    Lint(    String),
}

(note the extra space in Lint)

This seems to be the culprit (added in 825a11e):

.type-decl>pre>:nth-child(2) {
 margin-left:1.8em !important;
}

cc @GuillaumeGomez

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.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