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 don't think this is rustfmt panicking. I mostly think that because of the panic message you included: compiler\rustc_errors\src\lib.rs:1188:13
rustfmt uses the parser defined in the compiler to parse your rust code into an AST, before trying to format it. It appears to me that the panic is actually happening in the compiler. It might be more appropriate to open up this issue in that repo?
Thanks for reaching out, but going to close as this is a duplicate report of an upstream issue within the compiler (rust-lang/rust#93282) which has already been resolved. You can update to a newer nightly to pull in the fix
I get a formatter panic when running it on a file with macro usage.
No difference with
rustfmt.toml
settings all commented out.rustfmt version:
rustfmt 1.4.38-nightly (5e57faa7 2022-01-19)
Error:
Code that breaks it:
The macro in question (also using macro keyword feature on nightly):
Other uses without generics seem to be fine, though
The text was updated successfully, but these errors were encountered: