-
Notifications
You must be signed in to change notification settings - Fork 945
Closed
Labels
Description
Declarative macros 2.0 were landed recently (rust-lang/rust#40847), and I want to try them. The problem is that rustfmt corrupts the source. Consider this simple example:
pub macro reg() {}
Rustfmt converts it to:
pubmacro reg() {}
Which makes it uncompilable. Version of rustfmt: 0.2.5-nightly
.
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
Auto merge of #44375 - topecongiro:macrodef-span, r=petrochenkov
topecongiro commentedon Sep 12, 2017
This is now fixed by using the latest nightly toolchain. Please run
rustup update && cargo install rustfmt-nightly --force
.