Panic lint doesn't catch panics with formatting #5767
Labels
C-bug
Category: Clippy is not doing the correct thing
C-enhancement
Category: Enhancement of lints, like adding more cases or adding help messages
It looks to me like the
panic
lint doesn't catch panics with formatting. Although maybe this is intentional, I would expect it to treat panics with and without formatting the same way.I tried this code:
I expected to
cargo clippy
to fail on this code, but it passes.Meta
cargo clippy -V
: clippy 0.0.212 (bb37a0f 2020-06-16)rustc -Vv
:The text was updated successfully, but these errors were encountered: