File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
compiler/rustc_hir_analysis/src Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ mod outlives;
95
95
pub mod structured_errors;
96
96
mod variance;
97
97
98
- use rustc_data_structures:: sync:: join;
98
+ use rustc_data_structures:: sync:: { join, par_for_each_in } ;
99
99
use rustc_errors:: ErrorGuaranteed ;
100
100
use rustc_errors:: { DiagnosticMessage , SubdiagnosticMessage } ;
101
101
use rustc_fluent_macro:: fluent_messages;
@@ -191,9 +191,9 @@ pub fn check_crate(tcx: TyCtxt<'_>) -> Result<(), ErrorGuaranteed> {
191
191
192
192
tcx. sess . track_errors ( || {
193
193
tcx. sess . time ( "coherence_checking" , || {
194
- for & trait_def_id in tcx. all_local_trait_impls ( ( ) ) . keys ( ) {
195
- tcx. ensure ( ) . coherent_trait ( trait_def_id) ;
196
- }
194
+ par_for_each_in ( tcx. all_local_trait_impls ( ( ) ) , | ( trait_def_id , _ ) | {
195
+ tcx. ensure ( ) . coherent_trait ( * trait_def_id) ;
196
+ } ) ;
197
197
198
198
// these queries are executed for side-effects (error reporting):
199
199
tcx. ensure ( ) . crate_inherent_impls ( ( ) ) ;
You can’t perform that action at this time.
0 commit comments