Closed
Description
The wildcard_enum_match_arm
lint disallows the usage of wildcards when using match
for enum values. The PR #7407 allows the usage of wildcards if the enum contains values that are unstable or hidden from the documentation.
Such hidden values are usually for internal use. A nice addition to this feature would be to only ignore such hidden enum values if the enums was declared in another crate. Local match
statements that use wildcards within the same crate should therefore still be linted by this.
The implementation and hidden enum value check can be found here: clippy_lints/src/matches.rs:1036
@rustbot label +C-enhancement +good-first-issue