mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Rollup merge of #154230 - aryannrd:issue-50411, r=Kivooeo
Moved and rename issue-50411 to tests/ui/mir/inliner-double-elaborate
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
// Regression test for #50411: the MIR inliner was causing problems
|
||||
// here because it would inline promoted code (which had already had
|
||||
// elaborate-drops invoked on it) and then try to elaboate drops a
|
||||
// second time. Uncool.
|
||||
|
||||
//@ compile-flags:-Zmir-opt-level=4
|
||||
//@ build-pass
|
||||
|
||||
fn main() {
|
||||
let _ = (0 .. 1).filter(|_| [1].iter().all(|_| true)).count();
|
||||
}
|
||||
Reference in New Issue
Block a user