panic
lints for debug_assert
#7062
Labels
C-bug
Category: Clippy is not doing the correct thing
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 codeI am assuming that the error message is correct in saying that this lint is supposed to remove panics from production code, butdebug_assert
isn't present in debug code. So I consider this a false positive.EDIT: there might be an issue here, my report might be incorrect, because I can't reproduce this in the Clippy tests, currently researchingThis is a false-positive that get's triggered when adding a message to
debug_assert
.The text was updated successfully, but these errors were encountered: