Skip to content

Handle empty struct defs properly #919

@nrc

Description

@nrc

We either don't reformat (struct structs) or lose comments (tuple structs). We should do neither.

e.g.,

struct Foo( /* a comment */ );
struct Foo();
struct Foo{ /* a comment */ }
struct Foo{}

should be idempotent

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICEI-poor-formattingIssue: poor formatting

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions