wildcard_enum_match_arm fail with non-exhaustive enums and OR patterns #6862
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
Lint name:
wildcard_enum_match_arm
I tried this code (playground link):
I expected to see this happen: The lint not triggering, as all enum variants including a non-exhaustive case are covered
Instead, this happened: The lint triggers and wants the
_
case changed tostd::io::ErrorKind::Interrupted | std::io::ErrorKind::Other | _
, but those concrete variant types are already handled.Meta
cargo clippy -V
:clippy 0.0.212 (cb75ad5d 2021-02-10)
rustc -Vv
:The text was updated successfully, but these errors were encountered: