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-macrosbugPanic, non-idempotency, invalid code, etc.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions