-
Notifications
You must be signed in to change notification settings - Fork 1k
Module declared inside macro is not checked #3253
Copy link
Copy link
Open
Labels
A-macrosArea: macros (procedural macros, macro_rules! macros, etc.)Area: macros (procedural macros, macro_rules! macros, etc.)A-modulesArea: module resolutionArea: module resolutionC-bugCategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICECategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICE
Milestone
Metadata
Metadata
Assignees
Labels
A-macrosArea: macros (procedural macros, macro_rules! macros, etc.)Area: macros (procedural macros, macro_rules! macros, etc.)A-modulesArea: module resolutionArea: module resolutionC-bugCategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICECategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICE
Type
Fields
Give feedbackNo fields configured for issues without a type.
When I declare modules like this
rustfmt will check module, irrespective of condition.
However, when I declare them using cfg-if crate rustfmt doesn't check module.
Is is designed behavior? Or is macro parsing not implemented for now?
That's
rustfmt 1.0.1-nightly (be13559 2018-12-10)