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
Every time you run rustfmt over it, it indents lines 4–9 by another two levels.
Closely related, if you remove the first and last two lines (the outer macro_rules layer), formatting leaves lines 4–9 at whatever level it finds them rather than correcting their indentation. (But this is probably better than indenting them by two levels.)
Reproduced on rustc 1.57.0-nightly (c3c0f80 2021-09-14).
The text was updated successfully, but these errors were encountered:
Oops, saw A-rustfmt and figured bugs were going here, but after posting I thought to look further and found the rustfmt repository where has a couple of reports of this exact issue, e.g. rust-lang/rustfmt#4609. What’s the deal with A-rustfmt versus the rustfmt repository? Anyway, closing in favour of that issue.
Sample code, minimised as far as I was able:
Every time you run rustfmt over it, it indents lines 4–9 by another two levels.
Closely related, if you remove the first and last two lines (the outer macro_rules layer), formatting leaves lines 4–9 at whatever level it finds them rather than correcting their indentation. (But this is probably better than indenting them by two levels.)
Reproduced on rustc 1.57.0-nightly (c3c0f80 2021-09-14).
The text was updated successfully, but these errors were encountered: