Don't rerun Mir passes when inlining
When inlining a function using the Mir inliner, we shouldn't rerun the various Mir passes on it because the Mir has already been lowered and that wil break various early Mir passes. The issue in #50411 is that we've inlined a function with promotions whose Mir has already been lowered. The promotions are then copied into the local function and we begin to run passes on their lowered Mir which causes the ICE. Fixes #50411
Showing
src/test/ui/issues/issue-50411.rs
0 → 100644
想要评论请 注册 或 登录