Skip to content

Running cargo fmt seems to break some macro expansion #3004

@trinity-1686a

Description

@trinity-1686a

Running cargo fmt on Plume-org/Plume breaks it. It seems to remove curly braces around the macro invocation, which make macro expansion fail with unexpected end of macro invocation

Step to reproduce :

$ git clone https://github.com/Plume-org/Plume
$ cd Plume
$ cargo check #compile fine
$ cargo fmt --all
$ cargo check #fail

Reproducible with rustfmt 0.8.2-nightly (5e59925 2018-07-02) (specified by rust-toolchain) and rustfmt 0.99.2-nightly (5c9a2b6 2018-08-07) via +nightly

Metadata

Metadata

Assignees

Labels

A-macrosArea: macros (procedural macros, macro_rules! macros, etc.)C-bugCategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICE

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions