Replace parallel! macro with par_fns function and rename join to par_join

This commit is contained in:
John Kåre Alsaker 2026-02-08 04:15:00 +01:00
parent 286fbe5d84
commit 8c5ce26e43
7 changed files with 64 additions and 73 deletions

View file

@ -2,7 +2,7 @@ use std::fs;
use std::sync::Arc;
use rustc_data_structures::fx::FxIndexMap;
use rustc_data_structures::sync::join;
use rustc_data_structures::sync::par_join;
use rustc_middle::dep_graph::{
DepGraph, SerializedDepGraph, WorkProduct, WorkProductId, WorkProductMap,
};
@ -44,7 +44,7 @@ pub(crate) fn save_dep_graph(tcx: TyCtxt<'_>) {
sess.time("assert_dep_graph", || assert_dep_graph(tcx));
sess.time("check_clean", || clean::check_clean_annotations(tcx));
join(
par_join(
move || {
sess.time("incr_comp_persist_dep_graph", || {
if let Err(err) = fs::rename(&staging_dep_graph_path, &dep_graph_path) {