rustfmt keeps indenting macro definitions' bodies in macro definitions #4111
Labels
a-macros
bug
Panic, non-idempotency, invalid code, etc.
only-with-option
requires a non-default option value to reproduce
With the following input (the
a
macro is for showing the behaviour with multiple macros and a different initial formatting) :A pass of rustfmt adds a level of indentation to the inner macros' bodies, including the closing bracket :
And it keeps adding a level at each run. This also triggers cargo watch.
It seems very similar to #2588 but this one is fixed.
Version
rustfmt 1.4.13-nightly (c126730 2020-03-31)
, run within cargo watch with no parameter (cargo watch -x fmt -x run --no-gitignore --clear -q
).The text was updated successfully, but these errors were encountered: