1
Fork 0
rust/tests/mir-opt/inline/inline_cycle.two.Inline.panic-unwind.diff

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
1,003 B
Diff
Raw Permalink Normal View History

- // MIR for `two` before Inline
+ // MIR for `two` after Inline
fn two() -> () {
2023-06-06 09:47:00 -04:00
let mut _0: ();
let _1: ();
+ let mut _2: fn() {f};
2025-03-03 02:12:28 +00:00
+ let mut _4: ();
2023-06-06 09:47:00 -04:00
+ scope 1 (inlined call::<fn() {f}>) {
+ debug f => _2;
+ let _3: ();
2025-03-03 02:12:28 +00:00
+ scope 2 (inlined <fn() {f} as FnOnce<()>>::call_once - shim(fn() {f})) {
+ scope 3 (inlined f) {
+ let _5: ();
+ }
+ }
+ }
bb0: {
2023-06-06 09:47:00 -04:00
StorageLive(_1);
2023-06-23 17:53:09 +01:00
- _1 = call::<fn() {f}>(f) -> [return: bb1, unwind continue];
2023-06-06 09:47:00 -04:00
+ StorageLive(_2);
+ _2 = f;
+ StorageLive(_3);
2025-03-03 02:12:28 +00:00
+ StorageLive(_4);
+ _4 = const ();
+ StorageLive(_5);
+ _5 = call::<fn() {f}>(f) -> [return: bb1, unwind continue];
}
bb1: {
2025-03-03 02:12:28 +00:00
+ StorageDead(_5);
+ StorageDead(_4);
2023-06-06 09:47:00 -04:00
+ StorageDead(_3);
+ StorageDead(_2);
StorageDead(_1);
_0 = const ();
return;
}
}