Skip to content

non_panic_fmt lint suggestion should check what traits are implemented #87999

@m-ou-se

Description

@m-ou-se
Member

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

    Participants

    @m-ou-se@rylev

    Issue actions

      non_panic_fmt lint suggestion should check what traits are implemented · Issue #87999 · rust-lang/rust