Skip to content

Split matches - #8400

Merged
bors merged 15 commits into
rust-lang:masterfrom
Jarcho:split_matches
Feb 7, 2022
Merged

bors merged 15 commits into
rust-lang:masterfrom
Jarcho:split_matches

Conversation

@Jarcho

@Jarcho Jarcho commented Feb 6, 2022

Copy link
Copy Markdown
Contributor

Part of #6680

changelog: None

@rust-highfive

Copy link
Copy Markdown

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

@flip1995 flip1995 left a comment

Copy link
Copy Markdown
Member

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!

Comment thread 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);

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

bors commented Feb 7, 2022

Copy link
Copy Markdown
Contributor

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

@Manishearth

Copy link
Copy Markdown
Member

@bors r+

amazing, thanks!

@bors

bors commented Feb 7, 2022

Copy link
Copy Markdown
Contributor

📌 Commit c65894c has been approved by Manishearth

@bors

bors commented Feb 7, 2022

Copy link
Copy Markdown
Contributor

⌛ Testing commit c65894c with merge 2590701...

@bors

bors commented Feb 7, 2022

Copy link
Copy Markdown
Contributor

☀️ 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