Reuse MIR validator for inliner.

This commit is contained in:
Camille GILLOT 2023-07-19 10:47:16 +00:00
parent 2ef2ac0b51
commit b6cd7006e0
2 changed files with 18 additions and 118 deletions

View file

@ -499,7 +499,7 @@ impl<'a, 'tcx> Visitor<'tcx> for CfgChecker<'a, 'tcx> {
}
}
fn validate_types<'tcx>(
pub fn validate_types<'tcx>(
tcx: TyCtxt<'tcx>,
mir_phase: MirPhase,
param_env: ty::ParamEnv<'tcx>,