Fix validation on substituted callee bodies in MIR inliner
This commit is contained in:
parent
da8a39a9de
commit
78ebb939c1
6 changed files with 642 additions and 11 deletions
|
@ -213,6 +213,7 @@ impl<'tcx> Inliner<'tcx> {
|
|||
MirPhase::Runtime(RuntimePhase::Optimized),
|
||||
self.param_env,
|
||||
&callee_body,
|
||||
&caller_body,
|
||||
)
|
||||
.is_empty()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue