Rustfmt duplicates commas in struct declarations #4714
Labels
1x-backport:pending
Fixed/resolved in source but not yet backported to a 1x branch and release
a-comments
bug
Panic, non-idempotency, invalid code, etc.
Describe the bug
There's a weird interaction between comments and commas in struct declarations that leads to duplication of commas and breaking the syntax of the formatted code (
error: expected identifier, found ','
)To Reproduce
Input:
Formatting result:
Expected behavior
Do not duplicate commas.
Meta
The text was updated successfully, but these errors were encountered: