We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1efa752 commit 6ed7846Copy full SHA for 6ed7846
src/compiletest/runtest.rs
@@ -1009,6 +1009,10 @@ fn check_expected_errors(revision: Option<&str>,
1009
expected.replace(r"\", "/")
1010
}).collect::<Vec<String>>();
1011
1012
+ // If the testcase being checked contains at least one expected "help"
1013
+ // message, then we'll ensure that all "help" messages are expected.
1014
+ // Otherwise, all "help" messages reported by the compiler will be ignored.
1015
+ // This logic also applies to "note" messages.
1016
let (expect_help, expect_note) =
1017
expected_errors.iter()
1018
.fold((false, false),
0 commit comments