Skip to content

Better suggestion for panic!(format!(..)) #82110

Closed
@m-ou-se

Description

@m-ou-se

The non_fmt_panic lint should have a special case for panic!(format!(..)) to suggest panic!(..) by removing format( and ).

Metadata

Metadata

Assignees

Labels

A-suggestion-diagnosticsArea: Suggestions generated by the compiler applied by `cargo fix`D-confusingDiagnostics: Confusing error or lint that should be reworked.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions