Skip to content
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

Merged
merged 15 commits into from
Feb 7, 2022
Merged

Split matches #8400

merged 15 commits into from
Feb 7, 2022

Conversation

Jarcho
Copy link
Contributor

@Jarcho Jarcho commented Feb 6, 2022

Part of #6680

changelog: None

@rust-highfive
Copy link

r? @Manishearth

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Feb 6, 2022
Copy link
Member

@flip1995 flip1995 left a 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!

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);
Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Member

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 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And done.

@bors
Copy link
Contributor

bors commented Feb 7, 2022

☔ The latest upstream changes (presumably #8305) made this pull request unmergeable. Please resolve the merge conflicts.

@Manishearth
Copy link
Member

@bors r+

amazing, thanks!

@bors
Copy link
Contributor

bors commented Feb 7, 2022

📌 Commit c65894c has been approved by Manishearth

@bors
Copy link
Contributor

bors commented Feb 7, 2022

⌛ Testing commit c65894c with merge 2590701...

@bors
Copy link
Contributor

bors commented Feb 7, 2022

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: Manishearth
Pushing 2590701 to master...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants