use par_for_each_in
in par_body_owners
and collect_crate_mono_items
This commit is contained in:
parent
96c2df810b
commit
e2ecb68a0e
6 changed files with 28 additions and 9 deletions
|
@ -180,7 +180,7 @@
|
|||
//! regardless of whether it is actually needed or not.
|
||||
|
||||
use rustc_data_structures::fx::{FxHashMap, FxHashSet};
|
||||
use rustc_data_structures::sync::{par_iter, MTLock, MTRef, ParallelIterator};
|
||||
use rustc_data_structures::sync::{par_for_each_in, MTLock, MTRef};
|
||||
use rustc_hir as hir;
|
||||
use rustc_hir::def::DefKind;
|
||||
use rustc_hir::def_id::{DefId, DefIdMap, LocalDefId};
|
||||
|
@ -346,7 +346,7 @@ pub fn collect_crate_mono_items(
|
|||
let inlining_map: MTRef<'_, _> = &mut inlining_map;
|
||||
|
||||
tcx.sess.time("monomorphization_collector_graph_walk", || {
|
||||
par_iter(roots).for_each(|root| {
|
||||
par_for_each_in(roots, |root| {
|
||||
let mut recursion_depths = DefIdMap::default();
|
||||
collect_items_rec(
|
||||
tcx,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue