-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Avoid match_wildcard_for_single_variants
on guarded wild matches
#10056
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
fix rust-lang#9993 changlog: [`match_wildcard_for_single_variants`] avoid suggestion on wildcard with guard
Can you include a test that includes both a guarded wildcard and a regular wildcard? Otherwise this looks good. |
Added it (09839a5). |
I meant a test like: match foo {
_ if cond => (),
Foo::A => (),
_ => (),
} Where the final wild pattern should be linted. |
I'm sorry, modified the test case. |
Thank you. @bors r+ |
💔 Test failed - checks-action_test |
@Jarcho sorry I realized I've made a typo in PR, |
@bors retry |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
fix #9993
changelog: FP: [
match_wildcard_for_single_variants
]: No longer lints on wildcards with a guard#10056
r? @Jarcho