Skip to content

Rustfmt adds extra brace in macro #2574

@Marwes

Description

@Marwes

Before formatting

macro_rules! test {
    () => {{}}
}

Formatted

macro_rules! test {
    () => {{}
    }};
}

Which does not parse.

rustfmt 0.4.1-nightly (a4462d18 2018-03-26)

Metadata

Metadata

Assignees

No one assigned

    Labels

    good 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