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
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src/tools/rustfmt/src/lists.rs:678:54
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
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.
The backport of 98efebd has been done in #4796. I have tested the snippet in the OP and it does not panic and produces this here, which looks good to me:
Describe the bug
To Reproduce
Expected behavior
Formatting succeeds
Meta
cargo fmt
The text was updated successfully, but these errors were encountered: