Trailing comma is duplicated when obstructed by comments #3876
Labels
1x-backport:pending
Fixed/resolved in source but not yet backported to a 1x branch and release
a-chains
a-comments
bug
Panic, non-idempotency, invalid code, etc.
In the following snippet, there is a trailing comment following the entire builder chain after
normal_message
:When I run
rustfmt
on this with default settings:I get this result:
The comma clearly duplicated where it wasn't supposed to.
The //uh oh comment was added in the issue creation; the rest was from my source code, except "a bit" stripped down.
The text was updated successfully, but these errors were encountered: