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 up match ui test #5108

Merged
merged 2 commits into from
Jan 30, 2020
Merged

Split up match ui test #5108

merged 2 commits into from
Jan 30, 2020

Conversation

JohnTitor
Copy link
Member

Part of #2038

Also, this decreases the line length limit to 220.

changelog: none

| ^^^^^
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

error: aborting due to 7 previous errors
Copy link
Member

Choose a reason for hiding this comment

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

The new error count only adds up to 11, while the old one was 15. Did some errors get lost during the move?

Copy link
Member Author

@JohnTitor JohnTitor Jan 30, 2020

Choose a reason for hiding this comment

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

Some match_same_arms warnings are actually duplicated. For example, matches.rs:60 and matches.rs:68 are the same, later one is unnecessary. And I suppressed match_same_arms lint in match_wild_err_arm ui test since I feel they're already covered in match_same_arms ui tests.

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.

LGTM. There are 9 less errors as before. These 9 errors are missing, because they are allowed in the match_wild_error_arm.rs test. This file contains 8 match statements, each with the simplest case of the match_same_arms lint. These are only 8 match statements, because one of these statements was a duplicate before.

If @phansch hasn't any concerns anymore r=me.

@phansch
Copy link
Member

phansch commented Jan 30, 2020

@bors r=flip1995

@bors
Copy link
Contributor

bors commented Jan 30, 2020

📌 Commit 411317b has been approved by flip1995

bors added a commit that referenced this pull request Jan 30, 2020
Split up `match` ui test

Part of #2038

Also, this decreases the line length limit to 220.

changelog: none
@bors
Copy link
Contributor

bors commented Jan 30, 2020

⌛ Testing commit 411317b with merge bbef531...

@bors
Copy link
Contributor

bors commented Jan 30, 2020

☀️ Test successful - checks-travis, status-appveyor
Approved by: flip1995
Pushing bbef531 to master...

@bors bors merged commit 411317b into rust-lang:master Jan 30, 2020
@JohnTitor JohnTitor deleted the split-up-0130 branch January 31, 2020 00:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants