manual_flatten ignores nested refutable pattern #12645
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
The
manual_flatten
lint doesn't take into account nested refutable patterns.Lint Name
manual_flatten
Reproducer
I tried this code:
Clippy output:
It shouldn't suggest to remove the
if let
statement, because it's still needed to refutably matchData::Wanted
.Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: