diff options
| author | bors <bors@rust-lang.org> | 2025-06-07 20:06:23 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-06-07 20:06:23 +0000 |
| commit | cdd545be1b4f024d38360aa9f000dcb782fbc81b (patch) | |
| tree | c939e037ef147e297a31a5d4b83a0e6b83e03e9a /compiler/rustc_interface/src/passes.rs | |
| parent | 2f2c8c3512e82e4315db83bbb53eb79e2c566270 (diff) | |
| parent | 8a0fdbd4071eee08034d9ae8c83d13666a6a872e (diff) | |
| download | rust-cdd545be1b4f024d38360aa9f000dcb782fbc81b.tar.gz rust-cdd545be1b4f024d38360aa9f000dcb782fbc81b.zip | |
Auto merge of #141950 - oli-obk:big-body-owner-loop, r=compiler-errors
Move coroutine_by_move_body_def_id into the big check_crate body owner loop This avoids starting a parallel loop in sequence and instead runs all the queries for a specific DefId together.
Diffstat (limited to 'compiler/rustc_interface/src/passes.rs')
| -rw-r--r-- | compiler/rustc_interface/src/passes.rs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs index ee41df6b1f6..2643e5c1926 100644 --- a/compiler/rustc_interface/src/passes.rs +++ b/compiler/rustc_interface/src/passes.rs @@ -976,13 +976,6 @@ fn run_required_analyses(tcx: TyCtxt<'_>) { }); rustc_hir_analysis::check_crate(tcx); - sess.time("MIR_coroutine_by_move_body", || { - tcx.par_hir_body_owners(|def_id| { - if tcx.needs_coroutine_by_move_body_def_id(def_id.to_def_id()) { - tcx.ensure_done().coroutine_by_move_body_def_id(def_id); - } - }); - }); // Freeze definitions as we don't add new ones at this point. // We need to wait until now since we synthesize a by-move body // for all coroutine-closures. |
