-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
C-bugCategory: Clippy is not doing the correct thingCategory: Clippy is not doing the correct thingI-false-positiveIssue: The lint was triggered on code it shouldn't haveIssue: The lint was triggered on code it shouldn't have
Description
Lint name: panic
I tried this code:
debug_assert!(true, "test");
I expected to see this happen: no warning
Instead, this happened: panic
should not be present in production code
I am assuming that the error message is correct in saying that this lint is supposed to remove panics from production code, but debug_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 researching
This is a false-positive that get's triggered when adding a message to debug_assert
.
Metadata
Metadata
Assignees
Labels
C-bugCategory: Clippy is not doing the correct thingCategory: Clippy is not doing the correct thingI-false-positiveIssue: The lint was triggered on code it shouldn't haveIssue: The lint was triggered on code it shouldn't have
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
debug_assert
inpanic
#7063Auto merge of #7063 - daxpedda:debug-assert-panic, r=Manishearth
panic
lints forassert
with formatting #7433