-
Notifications
You must be signed in to change notification settings - Fork 888
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Panic in src/tools/rustfmt/src/lists.rs:678:54 on a bad comment #4552
Comments
There was a similar report in #4312 that was addressed by 98efebd on master (hasn't been backported to a release version). That update does prevent the panic in this case when the comment is within a mac call, but the formatting still isn't correct with that change on master either, as the comment gets moved before the comma thus likely losing the arg association. |
Submitted PR #4581 with a proposed fix for this issue. |
Describe the bug
To Reproduce
Expected behavior
Formatting succeeds
Meta
cargo fmt
The text was updated successfully, but these errors were encountered: