-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Split matches #8400
Split matches #8400
Conversation
r? @Manishearth (rust-highfive has picked a reviewer for you, use r? to override) |
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.
All the current lint extractions LGTM. Thanks for splitting this up!
clippy_lints/src/matches/mod.rs
Outdated
match_wild_err_arm::check(cx, ex, arms); | ||
match_wild_enum::check(cx, ex, arms); | ||
match_as_ref::check(cx, ex, arms, expr); | ||
check_wild_in_or_pats(cx, arms); |
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.
There are some lints left in mod.rs
. I guess this is because the linting code is too small to extract them into their own file?
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.
I actually missed check_wild_in_or_pats
. It's small enough it doesn't really matter though. The other two I just left because they were in different check functions. Could all be moved out though.
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.
Let's move them all out then. get the mod.rs
file completely cleaned up, while you're at 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.
And done.
☔ The latest upstream changes (presumably #8305) made this pull request unmergeable. Please resolve the merge conflicts. |
@bors r+ amazing, thanks! |
📌 Commit c65894c has been approved by |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
Part of #6680
changelog: None