Fix validation on substituted callee bodies in MIR inliner

This commit is contained in:
Michael Goulet 2024-03-19 12:34:56 -04:00
parent da8a39a9de
commit 78ebb939c1
6 changed files with 642 additions and 11 deletions

View file

@ -213,6 +213,7 @@ impl<'tcx> Inliner<'tcx> {
MirPhase::Runtime(RuntimePhase::Optimized),
self.param_env,
&callee_body,
&caller_body,
)
.is_empty()
{