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.
2 parents 8be1d7d + 6ed7846 commit e28a1b6Copy full SHA for e28a1b6
src/compiletest/runtest.rs
@@ -1025,6 +1025,10 @@ fn check_expected_errors(revision: Option<&str>,
1025
expected.replace(r"\", "/")
1026
}).collect::<Vec<String>>();
1027
1028
+ // If the testcase being checked contains at least one expected "help"
1029
+ // message, then we'll ensure that all "help" messages are expected.
1030
+ // Otherwise, all "help" messages reported by the compiler will be ignored.
1031
+ // This logic also applies to "note" messages.
1032
let (expect_help, expect_note) =
1033
expected_errors.iter()
1034
.fold((false, false),
0 commit comments