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 @@ -783,6 +783,8 @@ fn analysis(tcx: TyCtxt<'_>, cnum: CrateNum) -> Result<()> {
783
783
sess. time( "looking_for_derive_registrar" , || proc_macro_decls:: find( tcx) ) ;
784
784
} ,
785
785
{
786
+ // This is used by the loop below.
787
+ // Make sure it is complete before we fan out.
786
788
tcx. get_lang_items( LOCAL_CRATE ) ;
787
789
788
790
let _timer = tcx. sess. timer( "misc_module_passes" ) ;
@@ -802,6 +804,8 @@ fn analysis(tcx: TyCtxt<'_>, cnum: CrateNum) -> Result<()> {
802
804
tcx. visible_parent_map( LOCAL_CRATE ) ;
803
805
} ,
804
806
{
807
+ // This is used by `check_mod_unstable_api_usage`.
808
+ // Make sure it is complete before we fan out.
805
809
tcx. stability_index( LOCAL_CRATE ) ;
806
810
807
811
let _timer = tcx. sess. timer( "check_unstable_api_usage" ) ;
@@ -852,7 +856,8 @@ fn analysis(tcx: TyCtxt<'_>, cnum: CrateNum) -> Result<()> {
852
856
sess. time ( "misc_checking_3" , || {
853
857
parallel ! (
854
858
{
855
- tcx. ensure( ) . privacy_access_levels( LOCAL_CRATE ) ;
859
+ // Prefetch this as it is used later by lint checking and privacy checking.
860
+ tcx. privacy_access_levels( LOCAL_CRATE ) ;
856
861
} ,
857
862
{
858
863
sess. time( "MIR_borrow_checking" , || {
You can’t perform that action at this time.
0 commit comments