Skip to content

Change struct rendering to include a case for all fields being omitted #34713

Closed
@coder543

Description

@coder543

The Path documentation provides a good case-in-point. The struct for Path is being rendered as

pub struct Path {
    // some fields omitted
}

when it could be rendered as

pub struct Path {
    // all fields omitted
}

since there are no fields which have not been emitted. It just feels like an understatement when it says "some" fields have been omitted, and there are no fields being shown at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.T-dev-toolsRelevant to the dev-tools subteam, which will review and decide on the PR/issue.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