Open
Description
openedon Dec 16, 2018
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment