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
I'm able to reproduce this on the latest master rustfmt 1.4.38-nightly (eee8f041 2021-11-17) with the option wrap_comments=true using a slightly modified mcve:
// - a
When I run cargo run --bin rustfmt -- --check --config=wrap_comments=true I get this diff
//
// - a
And I get the following error:
error[internal]: left behind trailing whitespace
|
1 | //
| ^
|
= note: set `error_on_unformatted = false` to suppress the warning against comments or string literals
warning: rustfmt has failed to format. See previous 1 errors.
Any place a comment is added like:
// - 16 because we push in the above seq of instructions
rustfmt
turns it intoI'm not sure if it's trying to be smart and add newline before what it thinks is a list item in the markdown or something else?
The text was updated successfully, but these errors were encountered: