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<()> {
785785
786786 sess. time( "looking_for_derive_registrar" , || proc_macro_decls:: find( tcx) ) ;
787787 } ,
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+ } ,
788802 {
789803 // This is used by the loop below.
790804 // Make sure it is complete before we fan out.
791805 tcx. get_lang_items( LOCAL_CRATE ) ;
792806
793- let _timer = tcx. sess. timer( "misc_module_passes " ) ;
807+ let _timer = tcx. sess. timer( "check_attrs " ) ;
794808 par_for_each( & tcx. hir( ) . krate( ) . modules, |( & module, _) | {
795809 let local_def_id = tcx. hir( ) . local_def_id( module) ;
796- tcx. ensure( ) . check_mod_loops( local_def_id) ;
797810 tcx. ensure( ) . check_mod_attrs( local_def_id) ;
798- tcx. ensure( ) . check_mod_const_bodies( local_def_id) ;
799811 } ) ;
800812 } ,
801813 {
You can’t perform that action at this time.
0 commit comments