Overzealous clippy::needless_match with multiple chained if let blocks #13574
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
It seems that
needless_match
can fire incorrectly with multipleif let
blocks chained together.Lint Name
clippy::needless_match
Reproducer
I tried this code:
I saw this happen:
I expected to see this happen: No error
Version
rustc 1.82.0 (f6e511eec 2024-10-15)
binary: rustc
commit-hash: f6e511eec7342f59a25f7c0534f1dbea00d01b14
commit-date: 2024-10-15
host: x86_64-unknown-linux-gnu
release: 1.82.0
LLVM version: 19.1.1
Additional Labels
No response
The text was updated successfully, but these errors were encountered: