Skip to content

Commit 6ed7846

Browse files
committed
Add comment about opt-in nature of compiletest note/help messages.
The opt-in functionality was proposed and discussed in #21195
1 parent 1efa752 commit 6ed7846

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/compiletest/runtest.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,6 +1009,10 @@ fn check_expected_errors(revision: Option<&str>,
10091009
expected.replace(r"\", "/")
10101010
}).collect::<Vec<String>>();
10111011

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.
10121016
let (expect_help, expect_note) =
10131017
expected_errors.iter()
10141018
.fold((false, false),

0 commit comments

Comments
 (0)