-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
New lint: pats_with_wild_match_arm #4960
Conversation
This is great but I think the name could be better. I would call it |
Could you include |
@mikerite Yes I believe we could do better for the name. I will think about it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lint name suggestion: WILDCARD_IN_OR_PATTERNS
☔ The latest upstream changes (presumably #4881) made this pull request unmergeable. Please resolve the merge conflicts. |
8bea285
to
ad16718
Compare
- Wildcard use with other pattern in same match arm
- test wildcard_enum_match_arm has been impacted by this new lint
596f208
to
4ba1bc7
Compare
4ba1bc7
to
0fa0df9
Compare
Thanks! @bors r+ |
📌 Commit 0fa0df9 has been approved by |
New lint: pats_with_wild_match_arm Wildcard use with other pattern in same match arm. The wildcard covers other(s) pattern(s) as it will match anyway. Changelog: add new lint when multiple patterns (including wildcard) are used in a match arm. Fixes #4640.
💔 Test failed - checks-travis |
Sorry @bors, didn't know you prefer 'changelog' over 'Changelog' in PR description |
@flip1995 do I need to fix something else here ? |
@bors are you still there? |
Nope, bors just didn't trigger 🤔 @bors r+ |
💡 This pull request was already approved, no need to approve it again.
|
📌 Commit 0fa0df9 has been approved by |
New lint: pats_with_wild_match_arm Wildcard use with other pattern in same match arm. The wildcard covers other(s) pattern(s) as it will match anyway. changelog: add new lint when multiple patterns (including wildcard) are used in a match arm. Fixes #4640.
☀️ Test successful - checks-travis, status-appveyor |
Wildcard use with other pattern in same match arm.
The wildcard covers other(s) pattern(s) as it will match anyway.
changelog: add new lint when multiple patterns (including wildcard) are used in a match arm.
Fixes #4640.