Skip to content

Commit c89b0b4

Browse files
authored
Rollup merge of #144924 - lolbinarycat:compiletest-pass-directives-hint, r=clubby789
compiletest: add hint for when a ui test produces no errors
2 parents 097664f + 81081f4 commit c89b0b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/compiletest/src/runtest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ impl<'test> TestCx<'test> {
356356
if proc_res.status.success() {
357357
let err = &format!("{} test did not emit an error", self.config.mode);
358358
let extra_note = (self.config.mode == crate::common::TestMode::Ui)
359-
.then_some("note: by default, ui tests are expected not to compile");
359+
.then_some("note: by default, ui tests are expected not to compile.\nhint: use check-pass, build-pass, or run-pass directive to change this behavior.");
360360
self.fatal_proc_rec_general(err, extra_note, proc_res, || ());
361361
}
362362

0 commit comments

Comments
 (0)