Rollup merge of #32271 - frewsxcv:compiletest-ignored-help-note, r=nikomatsakis

Add comment about opt-in nature of compiletest note/help messages.

The opt-in functionality was proposed and discussed in
https://github.com/rust-lang/rust/issues/21195
This commit is contained in:
Eduard-Mihai Burtescu 2016-03-19 12:30:00 +02:00
commit e28a1b6cf5
1 changed files with 4 additions and 0 deletions

View File

@ -1025,6 +1025,10 @@ fn check_expected_errors(revision: Option<&str>,
expected.replace(r"\", "/")
}).collect::<Vec<String>>();
// If the testcase being checked contains at least one expected "help"
// message, then we'll ensure that all "help" messages are expected.
// Otherwise, all "help" messages reported by the compiler will be ignored.
// This logic also applies to "note" messages.
let (expect_help, expect_note) =
expected_errors.iter()
.fold((false, false),