about summary refs log tree commit diff
path: root/src/test/ui/issues/issue-50411.rs
AgeCommit message (Collapse)AuthorLines
2018-10-22Don't rerun Mir passes when inliningNiko Matsakis-0/+11
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