2020-09-20 23:13:34 -05:00
|
|
|
// MIR for `main` after Inline
|
|
|
|
|
|
|
|
fn main() -> () {
|
2023-06-06 08:47:00 -05:00
|
|
|
let mut _0: ();
|
|
|
|
let _1: [closure@$DIR/issue_76997_inline_scopes_parenting.rs:5:13: 5:16];
|
|
|
|
let mut _2: &[closure@$DIR/issue_76997_inline_scopes_parenting.rs:5:13: 5:16];
|
|
|
|
let mut _3: ((),);
|
|
|
|
let mut _4: ();
|
|
|
|
let mut _5: ();
|
2020-09-20 23:13:34 -05:00
|
|
|
scope 1 {
|
2023-06-06 08:47:00 -05:00
|
|
|
debug f => _1;
|
|
|
|
scope 2 (inlined main::{closure#0}) {
|
|
|
|
debug x => const ();
|
2020-09-20 23:13:34 -05:00
|
|
|
scope 3 {
|
2023-06-06 08:47:00 -05:00
|
|
|
debug y => const ();
|
2020-09-20 23:13:34 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
bb0: {
|
2023-06-06 08:47:00 -05:00
|
|
|
StorageLive(_1);
|
|
|
|
_1 = [closure@$DIR/issue_76997_inline_scopes_parenting.rs:5:13: 5:16];
|
|
|
|
StorageLive(_2);
|
|
|
|
_2 = &_1;
|
|
|
|
StorageLive(_3);
|
|
|
|
StorageLive(_4);
|
|
|
|
_4 = ();
|
|
|
|
_3 = (move _4,);
|
|
|
|
StorageLive(_5);
|
|
|
|
_5 = move (_3.0: ());
|
|
|
|
StorageDead(_5);
|
|
|
|
StorageDead(_4);
|
|
|
|
StorageDead(_3);
|
|
|
|
StorageDead(_2);
|
|
|
|
StorageDead(_1);
|
|
|
|
return;
|
2020-09-20 23:13:34 -05:00
|
|
|
}
|
|
|
|
}
|