Skip to content

Double Commas in #derive eats entire #derive #3898

@sanbox-irl

Description

@sanbox-irl

Input:

#[derive(Debug, ,Clone)]
pub enum Test {
    One,
    Two
}

(note the double commas after Debug above. The space is irrelevant in my testing)

Outputs:

#[derive()]
pub enum Test {
    One,
    Two,
}

and a :( from me.

Thanks guys

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-ICEP-lowLow prioritygood first issueIssues up for grabs, also good candidates for new rustfmt contributors

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions