Rollup merge of #152329 - Zoxc:simple-parallel-macro, r=nnethercote
Simplify parallel! macro This replaces the `parallel!` macro with a `par_fns` function.
This commit is contained in:
commit
09720ec3d0
7 changed files with 64 additions and 73 deletions
|
|
@ -7,7 +7,7 @@ use std::sync::Arc;
|
|||
|
||||
use rustc_data_structures::fx::{FxIndexMap, FxIndexSet};
|
||||
use rustc_data_structures::memmap::{Mmap, MmapMut};
|
||||
use rustc_data_structures::sync::{join, par_for_each_in};
|
||||
use rustc_data_structures::sync::{par_for_each_in, par_join};
|
||||
use rustc_data_structures::temp_dir::MaybeTempDir;
|
||||
use rustc_data_structures::thousands::usize_with_underscores;
|
||||
use rustc_feature::Features;
|
||||
|
|
@ -2461,7 +2461,7 @@ pub fn encode_metadata(tcx: TyCtxt<'_>, path: &Path, ref_path: Option<&Path>) {
|
|||
// Prefetch some queries used by metadata encoding.
|
||||
// This is not necessary for correctness, but is only done for performance reasons.
|
||||
// It can be removed if it turns out to cause trouble or be detrimental to performance.
|
||||
join(
|
||||
par_join(
|
||||
|| prefetch_mir(tcx),
|
||||
|| {
|
||||
let _ = tcx.exported_non_generic_symbols(LOCAL_CRATE);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue