diff options
| author | bors <bors@rust-lang.org> | 2024-03-14 02:54:10 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-03-14 02:54:10 +0000 |
| commit | 5ac0b2d0219de2fd6fef86c69ef0cfa1e6c36f3b (patch) | |
| tree | 093ee4994478e32a433204b49a338b5b289de445 /compiler/rustc_driver_impl/src | |
| parent | c7fed9f85422696f67fcf76abc846827fd4dde72 (diff) | |
| parent | 96d24f2dd13e8e9d0c6f9912781ffe1fc79864d3 (diff) | |
| download | rust-5ac0b2d0219de2fd6fef86c69ef0cfa1e6c36f3b.tar.gz rust-5ac0b2d0219de2fd6fef86c69ef0cfa1e6c36f3b.zip | |
Auto merge of #122347 - oli-obk:track_errors13, r=compiler-errors
Revert "Auto merge of #122140 - oli-obk:track_errors13, r=davidtwco" This reverts commit 65cd843ae06ad00123c131a431ed5304e4cd577a, reversing changes made to d255c6a57c393db6221b1ff700daea478436f1cd. reverts https://github.com/rust-lang/rust/pull/122140 It was a large regression in wall time due to trashing CPU caches
Diffstat (limited to 'compiler/rustc_driver_impl/src')
| -rw-r--r-- | compiler/rustc_driver_impl/src/pretty.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/compiler/rustc_driver_impl/src/pretty.rs b/compiler/rustc_driver_impl/src/pretty.rs index c0c6201f73d..c9bbe45b212 100644 --- a/compiler/rustc_driver_impl/src/pretty.rs +++ b/compiler/rustc_driver_impl/src/pretty.rs @@ -336,8 +336,7 @@ pub fn print<'tcx>(sess: &Session, ppm: PpMode, ex: PrintExtra<'tcx>) { ThirTree => { let tcx = ex.tcx(); let mut out = String::new(); - rustc_hir_analysis::check_crate(tcx); - if tcx.dcx().has_errors().is_some() { + if rustc_hir_analysis::check_crate(tcx).is_err() { FatalError.raise(); } debug!("pretty printing THIR tree"); @@ -349,8 +348,7 @@ pub fn print<'tcx>(sess: &Session, ppm: PpMode, ex: PrintExtra<'tcx>) { ThirFlat => { let tcx = ex.tcx(); let mut out = String::new(); - rustc_hir_analysis::check_crate(tcx); - if tcx.dcx().has_errors().is_some() { + if rustc_hir_analysis::check_crate(tcx).is_err() { FatalError.raise(); } debug!("pretty printing THIR flat"); |
