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 am working with with trailing_comma = "Never" set in a rustfmt.toml config, running the nightly rustfmt, and find the following idempotency issue. My understanding is that instead of the following behavior, rustfmt should fully format the code once and not change on future executions.
Starting with the code:
structFoo{field1:usize,field2:usize,// TODO: maybe we add more fields below}
Calling rustfmt the first time gives
structFoo{field1:usize,field2:usize// TODO: maybe we add more fields below}
Calling rustfmt the second time gives
structFoo{field1:usize,field2:usize// TODO: maybe we add more fields below}
All subsequent calls leave it in this final state.
My rustfmt version is rustfmt 1.4.37-nightly (8cf990c 2021-05-15)