non_panic_fmt lint suggestion should check what traits are implemented #87999
Labels
A-edition-2021
Area: The 2021 edition
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
As suggested by @nrc in #87313 (comment), the
panic_fmt_lint
should suggest"{:?}"
if the type implements Debug and not Display.The text was updated successfully, but these errors were encountered: