-
Notifications
You must be signed in to change notification settings - Fork 2k
FP in if_same_then_else for if-let #7579
Copy link
Copy link
Closed
Labels
C-bugCategory: Clippy is not doing the correct thingCategory: Clippy is not doing the correct thingE-mediumCall for participation: Medium difficulty level problem and requires some initial experience.Call for participation: Medium difficulty level problem and requires some initial experience.I-false-positiveIssue: The lint was triggered on code it shouldn't haveIssue: The lint was triggered on code it shouldn't haveP-highPriority: HighPriority: High
Metadata
Metadata
Assignees
Labels
C-bugCategory: Clippy is not doing the correct thingCategory: Clippy is not doing the correct thingE-mediumCall for participation: Medium difficulty level problem and requires some initial experience.Call for participation: Medium difficulty level problem and requires some initial experience.I-false-positiveIssue: The lint was triggered on code it shouldn't haveIssue: The lint was triggered on code it shouldn't haveP-highPriority: HighPriority: High
Type
Fields
Give feedbackNo fields configured for issues without a type.
followup to #7383 and pinging @xFrednet
Lint name:
if_same_then_elseI 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: