Reorder check_item_type diagnostics so they occur next to the corresponding check_well_formed diagnostics

This commit is contained in:
Oli Scherer 2023-10-26 11:36:49 +00:00
parent dd2dee1c70
commit cd4c352fb4
36 changed files with 362 additions and 285 deletions

View file

@ -323,7 +323,9 @@ pub(crate) fn run_global_ctxt(
tcx.hir().try_par_for_each_module(|module| tcx.ensure().check_mod_type_wf(module))
});
tcx.sess.time("item_types_checking", || {
tcx.hir().for_each_module(|module| tcx.ensure().check_mod_item_types(module))
tcx.hir().for_each_module(|module| {
let _ = tcx.ensure().check_mod_type_wf(module);
});
});
tcx.dcx().abort_if_errors();