Invalid suggestion for panic![123]
#82111
Labels
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
D-invalid-suggestion
Diagnostics: A structured suggestion resulting in incorrect code.
The
non_fmt_panic
lint now suggests to replacepanic![123]
bystd::panic::panic_any(123]
. Calling the panic macro with[]
or{}
is uncommon, but it'd be good if it doesn't suggest invalid code.The text was updated successfully, but these errors were encountered: