Merge typeck loop with static/const item eval loop

This commit is contained in:
Oli Scherer
2025-05-09 15:16:26 +00:00
parent e964ccafed
commit 0b6e493515
11 changed files with 133 additions and 137 deletions

View File

@@ -223,10 +223,6 @@ pub fn check_crate(tcx: TyCtxt<'_>) {
}
_ => (),
}
});
tcx.par_hir_body_owners(|item_def_id| {
let def_kind = tcx.def_kind(item_def_id);
// Skip `AnonConst`s because we feed their `type_of`.
if !matches!(def_kind, DefKind::AnonConst) {
tcx.ensure_ok().typeck(item_def_id);