nonminimal_bool
complains about asserts in boolean expressions
#11932
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
Summary
nonminimal_bool
seems to get confused whenassert
anddebug_assert
crop up in boolean expressions: see the example. The issue disappears ifx % 2 == 0 ||
is removed.It's possible I'm missing something, here, and there is a simpler way to write this. In that case, it'd be nice if the error message was a bit clearer what this was.
Lint Name
nonminimal_bool
Reproducer
I tried this code:
I saw this happen:
I expected to see this happen: [no error]
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: