From 9bc26877dbc2e5f86ce0c494c3dead8a5fe7acf9 Mon Sep 17 00:00:00 2001 From: Matyas Susits Date: Sun, 18 Oct 2026 10:40:11 +0200 Subject: [PATCH] re-enable parallelism for coroutine_by_move_body_def_id --- compiler/rustc_hir_analysis/src/lib.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/compiler/rustc_hir_analysis/src/lib.rs b/compiler/rustc_hir_analysis/src/lib.rs index 1cd9d008194fc..b87c53964445e 100644 --- a/compiler/rustc_hir_analysis/src/lib.rs +++ b/compiler/rustc_hir_analysis/src/lib.rs @@ -200,10 +200,7 @@ pub fn check_crate(tcx: TyCtxt<'_>) { // while the enclosing body is type-checked. Doing this in the pass above lets the parallel // front end reach the nested body owner first, computing (and caching) an error type for // the anon const that then conflicts with the type fed later on. - // - // This must not be parallelized since `coroutine_by_move_body_def_id` creates new `DefId`-s - // inside, which must be done in deterministic order to have reproducible binaries. - tcx.hir_body_owners().for_each(|item_def_id| { + tcx.par_hir_body_owners(|item_def_id| { // Ensure we generate the new `DefId` before finishing `check_crate`. // Afterwards we freeze the list of `DefId`s. if tcx.needs_coroutine_by_move_body_def_id(item_def_id.to_def_id()) {