File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
compiler/rustc_interface/src Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -756,14 +756,28 @@ fn analysis(tcx: TyCtxt<'_>, (): ()) -> Result<()> {
756
756
CStore :: from_tcx( tcx) . report_unused_deps( tcx) ;
757
757
} ,
758
758
{
759
+ // Prefetch this as it is used later by the loop below
760
+ // to prevent multiple threads from blocking on it.
761
+ tcx. ensure_with_value( ) . get_lang_items( ( ) ) ;
762
+
763
+ let _timer = tcx. sess. timer( "misc_module_passes" ) ;
759
764
tcx. hir( ) . par_for_each_module( |module| {
760
765
tcx. ensure( ) . check_mod_loops( module) ;
761
766
tcx. ensure( ) . check_mod_attrs( module) ;
762
767
tcx. ensure( ) . check_mod_naked_functions( module) ;
763
- tcx. ensure( ) . check_mod_unstable_api_usage( module) ;
764
768
tcx. ensure( ) . check_mod_const_bodies( module) ;
765
769
} ) ;
766
770
} ,
771
+ {
772
+ // Prefetch this as it is used later by the loop below
773
+ // to prevent multiple threads from blocking on it.
774
+ tcx. ensure_with_value( ) . stability_index( ( ) ) ;
775
+
776
+ let _timer = tcx. sess. timer( "check_unstable_api_usage" ) ;
777
+ tcx. hir( ) . par_for_each_module( |module| {
778
+ tcx. ensure( ) . check_mod_unstable_api_usage( module) ;
779
+ } ) ;
780
+ } ,
767
781
{
768
782
sess. time( "unused_lib_feature_checking" , || {
769
783
rustc_passes:: stability:: check_unused_or_stable_features( tcx)
You can’t perform that action at this time.
0 commit comments