You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using #[rustfmt::skip::macros(gen)] successfully skips formatting in the following example. So does #[cfg_attr(rustfmt, rustfmt::skip)]. But combining these into #[cfg_attr(rustfmt, rustfmt::skip::macros(gen))] fails.
This also applies for #! attribute declarations. I want to use cfg_attr to avoid "unused attribute" lints on these.
#[cfg_attr(rustfmt, ...)] is deprecated, you should use #[rustfmt::...] instead.
I want to use cfg_attr to avoid "unused attribute" lints on these.
This seems like a compiler or a linter error to me. IIUC, the tool attribute has already been supported, and any attributes starting with rustfmt should trigger warnings or lints (cc rust-lang/rust#44690).
Using
#[rustfmt::skip::macros(gen)]
successfully skips formatting in the following example. So does#[cfg_attr(rustfmt, rustfmt::skip)]
. But combining these into#[cfg_attr(rustfmt, rustfmt::skip::macros(gen))]
fails.This also applies for #! attribute declarations. I want to use
cfg_attr
to avoid "unused attribute" lints on these.Playground
The text was updated successfully, but these errors were encountered: