-
Notifications
You must be signed in to change notification settings - Fork 14k
Stop ignoring expected note/help messages in compiletest suite. #32263
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1013,8 +1013,8 @@ fn check_expected_errors(revision: Option<&str>, | |
| expected_errors.iter() | ||
| .fold((false, false), | ||
| |(acc_help, acc_note), ee| | ||
| (acc_help || ee.kind == "help:", acc_note || | ||
| ee.kind == "note:")); | ||
| (acc_help || ee.kind == "help:" || ee.kind == "help", | ||
| acc_note || ee.kind == "note:" || ee.kind == "note")); | ||
|
||
|
|
||
| // Scan and extract our error/warning messages, | ||
| // which look like: | ||
|
|
||
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.
Pre-existing, but can't we use
anyhere instead offold? Seems like it more clearly expresses the intent.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.
Given this code block:
The current implementation checks for
noteandhelpin one pass through. I'm not sure how it'd be possible usinganyunless we were expecting bothhelpandnoteon the same line. I agree it's not clean, and I'm willing to clean it up, but would rather do that in a different PR.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.
Do it in two passes?
On Wed, Mar 16, 2016 at 12:25:23PM -0700, Corey Farwell wrote:
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.
Spoke with you on IRC. Going to do it in a follow-up PR.