panic
lints for assert
with formatting
#7433
Labels
C-bug
Category: Clippy is not doing the correct thing
good first issue
These issues are a good way to get started with Clippy
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Lint name:
panic
I tried this code:
I expected to see this happen: No warning
Instead, this happened:
panic
should not be present in production codeFor example, following code does not produce this warning:
I believe that behaviour should be the same, regardless of optional message existence. Both the warn on
assert!
and no warning will be reasonable, but the latter looks better for me.This issue looks very similar to #7062.
Meta
cargo clippy -V
: clippy 0.1.55 (71b8742 2021-07-03)rustc -Vv
:The text was updated successfully, but these errors were encountered: