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 |
flip1995
left a comment
There was a problem hiding this comment.
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.