Closed
Description
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.
fn example() {
gen!(f, "
trait $trait_name {
fn $func_name(self, $args_sig);
}
")?;
}