Skip to content

Commit 7de1082

Browse files
authored
Rollup merge of rust-lang#130793 - jieyouxu:mention-crashes-verbose, r=matthiaskrgr
Mention `COMPILETEST_VERBOSE_CRASHES` on crash test failure Fixes rust-lang#130776. r? `@matthiaskrgr` (or compiler/bootstrap)
2 parents 147aa86 + 50729fe commit 7de1082

File tree

1 file changed

+5
-4
lines changed
  • src/tools/compiletest/src/runtest

1 file changed

+5
-4
lines changed

src/tools/compiletest/src/runtest/crash.rs

+5-4
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ impl TestCx<'_> {
1515
// if a test does not crash, consider it an error
1616
if proc_res.status.success() || matches!(proc_res.status.code(), Some(1 | 0)) {
1717
self.fatal(&format!(
18-
"crashtest no longer crashes/triggers ICE, horray! Please give it a meaningful name, \
19-
add a doc-comment to the start of the test explaining why it exists and \
20-
move it to tests/ui or wherever you see fit. Adding 'Fixes #<issueNr>' to your PR description \
21-
ensures that the corresponding ticket is auto-closed upon merge."
18+
"crashtest no longer crashes/triggers ICE, horray! Please give it a meaningful \
19+
name, add a doc-comment to the start of the test explaining why it exists and \
20+
move it to tests/ui or wherever you see fit. Adding 'Fixes #<issueNr>' to your PR \
21+
description ensures that the corresponding ticket is auto-closed upon merge. \
22+
If you want to see verbose output, set `COMPILETEST_VERBOSE_CRASHES=1`."
2223
));
2324
}
2425
}

0 commit comments

Comments
 (0)