about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src/transform
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2023-07-19 10:47:16 +0000
committerCamille GILLOT <gillot.camille@gmail.com>2023-07-21 13:58:33 +0000
commitb6cd7006e075e364d1bc325cf9eba4882da92bc6 (patch)
tree710f6a18261ea85e4e3e17564b8f617dbe552e40 /compiler/rustc_const_eval/src/transform
parent2ef2ac0b51d76b2e026c8b27fc6385bae2e0275e (diff)
downloadrust-b6cd7006e075e364d1bc325cf9eba4882da92bc6.tar.gz
rust-b6cd7006e075e364d1bc325cf9eba4882da92bc6.zip
Reuse MIR validator for inliner.
Diffstat (limited to 'compiler/rustc_const_eval/src/transform')
-rw-r--r--compiler/rustc_const_eval/src/transform/validate.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/transform/validate.rs b/compiler/rustc_const_eval/src/transform/validate.rs
index ecd96a02e35..7b2bed302db 100644
--- a/compiler/rustc_const_eval/src/transform/validate.rs
+++ b/compiler/rustc_const_eval/src/transform/validate.rs
@@ -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>,