-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Stop ignoring expected note/help messages in compiletest suite. #32263
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")); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have a separate branch that cleans up this "kind" logic by using enums. I plan to open it up as a follow-up PR if this merges. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should make the opt-in work for When making this changes, it seems like I overlooked |
||
|
||
// 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
any
here 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
note
andhelp
in one pass through. I'm not sure how it'd be possible usingany
unless we were expecting bothhelp
andnote
on 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.