diff options
| author | binarycat <binarycat@envs.net> | 2025-08-04 14:21:00 -0500 |
|---|---|---|
| committer | binarycat <binarycat@envs.net> | 2025-08-04 14:21:00 -0500 |
| commit | 81081f45136638b8b018b550222afb11196b2c25 (patch) | |
| tree | 75cdd1de2de1a64de2d25535922f686c863d66a9 /src | |
| parent | e1b9081e699065badfc1a9419ec9566e5c8615c4 (diff) | |
| download | rust-81081f45136638b8b018b550222afb11196b2c25.tar.gz rust-81081f45136638b8b018b550222afb11196b2c25.zip | |
compiletest: add hint for when a ui test produces no errors
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/compiletest/src/runtest.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs index 35670ba89e9..84c6df5c744 100644 --- a/src/tools/compiletest/src/runtest.rs +++ b/src/tools/compiletest/src/runtest.rs @@ -356,7 +356,7 @@ impl<'test> TestCx<'test> { if proc_res.status.success() { let err = &format!("{} test did not emit an error", self.config.mode); let extra_note = (self.config.mode == crate::common::TestMode::Ui) - .then_some("note: by default, ui tests are expected not to compile"); + .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."); self.fatal_proc_rec_general(err, extra_note, proc_res, || ()); } |
