diff options
| author | Jakub Beránek <berykubik@gmail.com> | 2025-08-06 15:55:46 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-06 15:55:46 +0200 |
| commit | 5ac085681b1f827dc70e1d6c8d8c2790c605d025 (patch) | |
| tree | 0df51da5f92a47539f26718520bb15e93fa99cb3 /src | |
| parent | 4b6971e25472480e4e47cf050af48d10dbb44cb6 (diff) | |
| parent | 81081f45136638b8b018b550222afb11196b2c25 (diff) | |
| download | rust-5ac085681b1f827dc70e1d6c8d8c2790c605d025.tar.gz rust-5ac085681b1f827dc70e1d6c8d8c2790c605d025.zip | |
Rollup merge of #144924 - lolbinarycat:compiletest-pass-directives-hint, r=clubby789
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, || ()); } |
