File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -786,6 +786,8 @@ fn analysis(tcx: TyCtxt<'_>, cnum: CrateNum) -> Result<()> {
786
786
sess. time( "looking_for_derive_registrar" , || proc_macro_decls:: find( tcx) ) ;
787
787
} ,
788
788
{
789
+ // This is used by the loop below.
790
+ // Make sure it is complete before we fan out.
789
791
tcx. get_lang_items( LOCAL_CRATE ) ;
790
792
791
793
let _timer = tcx. sess. timer( "misc_module_passes" ) ;
@@ -805,6 +807,8 @@ fn analysis(tcx: TyCtxt<'_>, cnum: CrateNum) -> Result<()> {
805
807
tcx. visible_parent_map( LOCAL_CRATE ) ;
806
808
} ,
807
809
{
810
+ // This is used by `check_mod_unstable_api_usage`.
811
+ // Make sure it is complete before we fan out.
808
812
tcx. stability_index( LOCAL_CRATE ) ;
809
813
810
814
let _timer = tcx. sess. timer( "check_unstable_api_usage" ) ;
@@ -855,7 +859,8 @@ fn analysis(tcx: TyCtxt<'_>, cnum: CrateNum) -> Result<()> {
855
859
sess. time ( "misc_checking_3" , || {
856
860
parallel ! (
857
861
{
858
- tcx. ensure( ) . privacy_access_levels( LOCAL_CRATE ) ;
862
+ // Prefetch this as it is used later by lint checking and privacy checking.
863
+ tcx. privacy_access_levels( LOCAL_CRATE ) ;
859
864
} ,
860
865
{
861
866
sess. time( "MIR_borrow_checking" , || {
You can’t perform that action at this time.
0 commit comments