File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -785,17 +785,29 @@ fn analysis(tcx: TyCtxt<'_>, cnum: CrateNum) -> Result<()> {
785
785
786
786
sess. time( "looking_for_derive_registrar" , || proc_macro_decls:: find( tcx) ) ;
787
787
} ,
788
+ {
789
+ let _timer = tcx. sess. timer( "check_const_bodies" ) ;
790
+ par_for_each( & tcx. hir( ) . krate( ) . modules, |( & module, _) | {
791
+ let local_def_id = tcx. hir( ) . local_def_id( module) ;
792
+ tcx. ensure( ) . check_mod_const_bodies( local_def_id) ;
793
+ } ) ;
794
+ } ,
795
+ {
796
+ let _timer = tcx. sess. timer( "check_loops" ) ;
797
+ par_for_each( & tcx. hir( ) . krate( ) . modules, |( & module, _) | {
798
+ let local_def_id = tcx. hir( ) . local_def_id( module) ;
799
+ tcx. ensure( ) . check_mod_loops( local_def_id) ;
800
+ } ) ;
801
+ } ,
788
802
{
789
803
// This is used by the loop below.
790
804
// Make sure it is complete before we fan out.
791
805
tcx. get_lang_items( LOCAL_CRATE ) ;
792
806
793
- let _timer = tcx. sess. timer( "misc_module_passes " ) ;
807
+ let _timer = tcx. sess. timer( "check_attrs " ) ;
794
808
par_for_each( & tcx. hir( ) . krate( ) . modules, |( & module, _) | {
795
809
let local_def_id = tcx. hir( ) . local_def_id( module) ;
796
- tcx. ensure( ) . check_mod_loops( local_def_id) ;
797
810
tcx. ensure( ) . check_mod_attrs( local_def_id) ;
798
- tcx. ensure( ) . check_mod_const_bodies( local_def_id) ;
799
811
} ) ;
800
812
} ,
801
813
{
You can’t perform that action at this time.
0 commit comments