2020-11-08 18:00:00 -06:00
|
|
|
- // MIR for `h` before Inline
|
|
|
|
+ // MIR for `h` after Inline
|
|
|
|
|
|
|
|
fn h() -> () {
|
2023-06-06 08:47:00 -05:00
|
|
|
let mut _0: ();
|
|
|
|
let _1: (!, !);
|
|
|
|
+ let mut _2: fn() -> ! {sleep};
|
|
|
|
+ let mut _8: ();
|
|
|
|
+ scope 1 (inlined call_twice::<!, fn() -> ! {sleep}>) {
|
|
|
|
+ debug f => _2;
|
|
|
|
+ let mut _3: &fn() -> ! {sleep};
|
|
|
|
+ let _4: !;
|
|
|
|
+ let mut _5: &fn() -> ! {sleep};
|
|
|
|
+ let mut _6: !;
|
|
|
|
+ let mut _7: !;
|
2020-11-08 18:00:00 -06:00
|
|
|
+ scope 2 {
|
2023-06-06 08:47:00 -05:00
|
|
|
+ debug a => _4;
|
2020-11-08 18:00:00 -06:00
|
|
|
+ scope 3 {
|
2023-06-06 08:47:00 -05:00
|
|
|
+ debug b => _6;
|
2020-11-08 18:00:00 -06:00
|
|
|
+ }
|
|
|
|
+ }
|
2023-06-06 08:47:00 -05:00
|
|
|
+ scope 4 (inlined <fn() -> ! {sleep} as Fn<()>>::call - shim(fn() -> ! {sleep})) {
|
|
|
|
+ scope 5 (inlined sleep) {
|
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_twice::<!, fn() -> ! {sleep}>(sleep) -> unwind continue;
|
2023-06-06 08:47:00 -05:00
|
|
|
+ StorageLive(_2);
|
|
|
|
+ _2 = sleep;
|
|
|
|
+ StorageLive(_6);
|
|
|
|
+ StorageLive(_4);
|
|
|
|
+ StorageLive(_3);
|
|
|
|
+ _3 = &_2;
|
|
|
|
+ StorageLive(_8);
|
|
|
|
+ _8 = const ();
|
|
|
|
+ goto -> bb1;
|
2022-01-24 18:00:00 -06:00
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ bb1: {
|
2023-06-06 08:47:00 -05:00
|
|
|
+ goto -> bb1;
|
2020-11-08 18:00:00 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|