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.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user