needless_match in nightly (2022-03-14) ignores enum arguments #8542
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
When a matched enum has multiple arguments and one of them is replaced, the
needless_match
lint still reports an error even though the match is not needless.Lint Name
needless_match
Reproducer
I tried this code:
I saw this happen:
I expected to see this happen: no warning should be emitted because the new value is constructed with a new
b
.Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: