Skip to content

Invalid suggestion for panic![123] #82111

Closed
@m-ou-se

Description

@m-ou-se

The non_fmt_panic lint now suggests to replace panic![123] by std::panic::panic_any(123]. Calling the panic macro with [] or {} is uncommon, but it'd be good if it doesn't suggest invalid code.

Metadata

Metadata

Assignees

Labels

A-suggestion-diagnosticsArea: Suggestions generated by the compiler applied by `cargo fix`D-invalid-suggestionDiagnostics: A structured suggestion resulting in incorrect code.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions