File tree Expand file tree Collapse file tree 6 files changed +328
-72
lines changed
rustc_data_structures/src Expand file tree Collapse file tree 6 files changed +328
-72
lines changed Original file line number Diff line number Diff line change @@ -17,10 +17,7 @@ use rustc_ast::expand::allocator::AllocatorKind;
17
17
use rustc_attr as attr;
18
18
use rustc_data_structures:: fx:: { FxHashMap , FxHashSet } ;
19
19
use rustc_data_structures:: profiling:: { get_resident_set_size, print_time_passes_entry} ;
20
-
21
- use rustc_data_structures:: sync:: par_iter;
22
- #[ cfg( parallel_compiler) ]
23
- use rustc_data_structures:: sync:: ParallelIterator ;
20
+ use rustc_data_structures:: sync:: par_map;
24
21
use rustc_hir as hir;
25
22
use rustc_hir:: def_id:: { DefId , LOCAL_CRATE } ;
26
23
use rustc_hir:: lang_items:: LangItem ;
@@ -702,12 +699,10 @@ pub fn codegen_crate<B: ExtraBackendMethods>(
702
699
// Compile the found CGUs in parallel.
703
700
let start_time = Instant :: now ( ) ;
704
701
705
- let pre_compiled_cgus = par_iter ( cgus)
706
- . map ( |( i, _) | {
707
- let module = backend. compile_codegen_unit ( tcx, codegen_units[ i] . name ( ) ) ;
708
- ( i, module)
709
- } )
710
- . collect ( ) ;
702
+ let pre_compiled_cgus = par_map ( cgus, |( i, _) | {
703
+ let module = backend. compile_codegen_unit ( tcx, codegen_units[ i] . name ( ) ) ;
704
+ ( i, module)
705
+ } ) ;
711
706
712
707
total_codegen_time += start_time. elapsed ( ) ;
713
708
Original file line number Diff line number Diff line change 27
27
#![ feature( thread_id_value) ]
28
28
#![ feature( vec_into_raw_parts) ]
29
29
#![ feature( get_mut_unchecked) ]
30
+ #![ feature( mutex_unpoison) ]
31
+ #![ feature( sync_unsafe_cell) ]
32
+ #![ feature( const_trait_impl) ]
33
+ #![ feature( const_mut_refs) ]
30
34
#![ allow( rustc:: default_hash_types) ]
31
35
#![ allow( rustc:: potential_query_instability) ]
32
36
#![ deny( rustc:: untranslatable_diagnostic) ]
You can’t perform that action at this time.
0 commit comments