Skip to content

non_panic_fmt lint suggestion should check what traits are implemented #87999

Closed
@m-ou-se

Description

@m-ou-se

As suggested by @nrc in #87313 (comment), the panic_fmt_lint should suggest "{:?}" if the type implements Debug and not Display.

Metadata

Metadata

Assignees

Labels

A-edition-2021Area: The 2021 editionA-suggestion-diagnosticsArea: Suggestions generated by the compiler applied by `cargo fix`

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions