diff options
| author | bors <bors@rust-lang.org> | 2022-02-20 18:12:59 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-02-20 18:12:59 +0000 |
| commit | 523a1b1d388bfe82a5d0540b876d9428b6dccc9c (patch) | |
| tree | 0df7073fb1bcab18729dd7194ec8e4b5d1176531 /compiler/rustc_save_analysis | |
| parent | c1aa85475cf5623caf50f7ef3b62903bb084e518 (diff) | |
| parent | 976348603485b216b0d5314eca674a2b24df4c73 (diff) | |
| download | rust-523a1b1d388bfe82a5d0540b876d9428b6dccc9c.tar.gz rust-523a1b1d388bfe82a5d0540b876d9428b6dccc9c.zip | |
Auto merge of #94062 - Mark-Simulacrum:drop-print-cfg, r=oli-obk
Move ty::print methods to Drop-based scope guards Primary goal is reducing codegen of the TLS access for each closure, which shaves ~3 seconds of bootstrap time over rustc as a whole.
Diffstat (limited to 'compiler/rustc_save_analysis')
| -rw-r--r-- | compiler/rustc_save_analysis/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_save_analysis/src/lib.rs b/compiler/rustc_save_analysis/src/lib.rs index 5d32063d50b..43ec35a8434 100644 --- a/compiler/rustc_save_analysis/src/lib.rs +++ b/compiler/rustc_save_analysis/src/lib.rs @@ -976,7 +976,7 @@ pub fn process_crate<'l, 'tcx, H: SaveHandler>( config: Option<Config>, mut handler: H, ) { - with_no_trimmed_paths(|| { + with_no_trimmed_paths!({ tcx.dep_graph.with_ignore(|| { info!("Dumping crate {}", cratename); |
