overly_complex_bool_expr
triggers wrongly on (return) || true
#12744
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
I-suggestion-causes-bug
Issue: The suggestion compiles but changes the code to behave in an unintended way
Summary
_ = (return) || true
suggests being replaced withtrue
Lint Name
overly_complex_bool_expr
Reproducer
I tried this code:
I saw this happen:
I expected to see this happen:
Version
Additional Labels
@rustbot label +I-suggestion-causes-bug
The text was updated successfully, but these errors were encountered: