wrap_comments on/off have inconsistent trailing whitespace handling in code blocks #4251
Labels
a-comments
bug
Panic, non-idempotency, invalid code, etc.
only-with-option
requires a non-default option value to reproduce
Milestone
With wrap_comments = false, rustfmt enforces that an empty line at the beginning of a code block has no trailing whitespace. With wrap_comments = true, rustfmt enforces taht that same line has a single trailing space.
The formatting of wrap_comments=true should probably be an accepted formatting with wrap_comments=false.
Repro:
The text was updated successfully, but these errors were encountered: