Skip to content

rustdoc doesn't render #[non_exhaustive] on enum variants #142599

Open
@fmease

Description

@fmease

Reproducer:

pub enum Type {
    #[non_exhaustive]
    Variant,
}

Current output:

Image

Found while working on #116882.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-attributesArea: Attributes (`#[…]`, `#![…]`)A-rustdoc-uiArea: Rustdoc UI (generated HTML)C-bugCategory: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.T-rustdoc-frontendRelevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions