FP in if_same_then_else for if-let #7579
Labels
C-bug
Category: Clippy is not doing the correct thing
E-medium
Call for participation: Medium difficulty level problem and requires some initial experience.
I-false-positive
Issue: The lint was triggered on code it shouldn't have
P-high
Priority: High
followup to #7383 and pinging @xFrednet
Lint name:
if_same_then_else
I tried this code:
see https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=c49e249051ac25681b4fe4522994a524
I expected to see this happen:
no lint warning, since I cannot express this until if-let-chains are supported
Instead, this happened:
Meta
cargo clippy -V
: clippy 0.1.56 (0035d9d 2021-08-16)rustc -Vv
:The text was updated successfully, but these errors were encountered: