No config to disable formatting of macro_rules!
matchers
#2753
Labels
Milestone
macro_rules!
matchers
#2753
Attempting to use the version of rustfmt from 1.26.1 results in a lot of suboptimal formatting in Diesel's macro definitions. It's removing newlines where we want them, adding them where we don't, and doing some really weird stuff like removing spaces after commas (which I'm assuming is a bug?).
We generally format our matching rules with the same formatting they'd be invoked with. Since rustfmt doesn't touch macro invocations unless they look like a Rust function, I'd expect the same to be true for matchers. If nothing else, I'd like to have a config to disable this new behavior, as it's blocking our ability to update.
Some examples of poor formatting:
The text was updated successfully, but these errors were encountered: