2020-11-08 18:00:00 -06:00
|
|
|
- // MIR for `two` before Inline
|
|
|
|
+ // MIR for `two` after Inline
|
|
|
|
|
|
|
|
fn two() -> () {
|
2023-06-06 08:47:00 -05:00
|
|
|
let mut _0: ();
|
|
|
|
let _1: ();
|
|
|
|
+ let mut _2: fn() {f};
|
|
|
|
+ let mut _4: ();
|
|
|
|
+ scope 1 (inlined call::<fn() {f}>) {
|
|
|
|
+ debug f => _2;
|
|
|
|
+ let _3: ();
|
|
|
|
+ scope 2 (inlined <fn() {f} as FnOnce<()>>::call_once - shim(fn() {f})) {
|
|
|
|
+ scope 3 (inlined f) {
|
|
|
|
+ scope 4 (inlined call::<fn() {f}>) {
|
|
|
|
+ debug f => f;
|
|
|
|
+ let _5: ();
|
|
|
|
+ scope 5 (inlined <fn() {f} as FnOnce<()>>::call_once - shim(fn() {f})) {
|
2023-06-03 07:23:32 -05:00
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
2023-01-02 00:01:29 -06:00
|
|
|
+ }
|
2020-11-08 18:00:00 -06:00
|
|
|
+ }
|
|
|
|
|
|
|
|
bb0: {
|
2023-06-06 08:47:00 -05:00
|
|
|
StorageLive(_1);
|
2023-06-23 11:53:09 -05:00
|
|
|
- _1 = call::<fn() {f}>(f) -> [return: bb1, unwind continue];
|
2023-06-06 08:47:00 -05:00
|
|
|
+ StorageLive(_2);
|
|
|
|
+ _2 = f;
|
|
|
|
+ StorageLive(_3);
|
|
|
|
+ StorageLive(_4);
|
|
|
|
+ _4 = const ();
|
|
|
|
+ StorageLive(_5);
|
2023-06-23 11:53:09 -05:00
|
|
|
+ _5 = f() -> [return: bb1, unwind continue];
|
2020-11-08 18:00:00 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
2023-06-06 08:47:00 -05:00
|
|
|
+ StorageDead(_5);
|
|
|
|
+ StorageDead(_4);
|
|
|
|
+ StorageDead(_3);
|
|
|
|
+ StorageDead(_2);
|
|
|
|
StorageDead(_1);
|
|
|
|
_0 = const ();
|
|
|
|
return;
|
2020-11-08 18:00:00 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|