Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions compiler/rustc_hir_analysis/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down
Loading