diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-08-29 12:37:31 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-29 12:37:31 +0200 |
| commit | 25163e8151c438e719f3791ed804bfd94c2aef01 (patch) | |
| tree | 7072bbb063b95c13a625407cd5437c7e4e76fe92 /compiler/rustc_hir_analysis/src/errors.rs | |
| parent | 47f1df5ca35217ca5e21ffd1f1daa3cb623470e2 (diff) | |
| parent | 6340b97768cc3803d96de92c8571d49f79f3e2ed (diff) | |
| download | rust-25163e8151c438e719f3791ed804bfd94c2aef01.tar.gz rust-25163e8151c438e719f3791ed804bfd94c2aef01.zip | |
Rollup merge of #145982 - Zalathar:logv, r=jieyouxu
compiletest: Reduce the number of `println!` calls that don't have access to `TestCx`
In order to stop using `#![feature(internal_output_capture)]` in compiletest, we need to be able to capture the console output of individual tests run by the executor.
The approach I have planned is to have all test runners print “console” output into a trait object that is passed around as part of `TestCx`, since almost all test-runner code has easy access to that context. So `println!("foo")` will become `writeln!(self.stdout, "foo")`, and so on.
In order to make that viable, we need to avoid unnecessary printing in places that don't have easy access to `TestCx`. To do so, we can either get rid of unnecessary print statements, or rearrange the code to make the context available. This PR uses both approaches.
r? jieyouxu
Diffstat (limited to 'compiler/rustc_hir_analysis/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
