-
Notifications
You must be signed in to change notification settings - Fork 936
Open
Labels
a-macrosa-modsModule resolution.Module resolution.bugPanic, non-idempotency, invalid code, etc.Panic, non-idempotency, invalid code, etc.
Milestone
Description
When I declare modules like this
#[cfg(unix)]
pub mod stub_hal;
rustfmt will check module, irrespective of condition.
However, when I declare them using cfg-if crate rustfmt doesn't check module.
cfg_if! {
if #[cfg(unix)] {
pub mod stub_hal;
}
}
Is is designed behavior? Or is macro parsing not implemented for now?
That's rustfmt 1.0.1-nightly (be13559 2018-12-10)
unageek, Purpzie, miguelggcc, greyblake and Elrendio
Metadata
Metadata
Assignees
Labels
a-macrosa-modsModule resolution.Module resolution.bugPanic, non-idempotency, invalid code, etc.Panic, non-idempotency, invalid code, etc.