Reuse MIR validator for inliner.
This commit is contained in:
parent
2ef2ac0b51
commit
b6cd7006e0
2 changed files with 18 additions and 118 deletions
|
@ -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>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue