False positive needless_match
for even simple example
#14754
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
I-suggestion-causes-bug
Issue: The suggestion compiles but changes the code to behave in an unintended way
Summary
needless_match
is warned, while the suggestion would really change the execution logic.Discovered in servo/servo#36908 (comment)
Lint Name
needless_match
Reproducer
I tried this code:
I saw this happen:
I expected to see this happen:
No Warning. As the suggestion would change the execution logic.
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: