wildcard_in_or_patterns doesn't ignore #[nonexhaustive] #13350
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
Uh oh!
There was an error while loading. Please reload this page.
Summary
Some types are annotated with
#[nonexhaustive]
, forcing a wildcard pattern. This lint conflicts with that, which then forces us to use an#[allow(clippy::wildcard_in_or_patterns)]
.It would be great if this lint took
nonexhaustive
into account so that it doesn't trigger for wildcard patterns as long as all other patterns were exhaustively matched upon.Reproducer
No response
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: