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 expected to see this happen: rustfmt doesn't remove the trailing comma in the input since it's required for this code to compile.
Instead, this happened: rustfmt reformats it to:
Breaking example:
note that this macro requires a trailing coma
I expected to see this happen: rustfmt doesn't remove the trailing comma in the input since it's required for this code to compile.
Instead, this happened: rustfmt reformats it to:
Note: alternatives that don't produce this problem:
From those experiments, we can see that rustfmt only does it if it looks a lot like a function
Meta
rustfmt --version --verbose
:The text was updated successfully, but these errors were encountered: