rust/tests/mir-opt/lower_intrinsics.forget.LowerIntrinsics.panic-unwind.diff

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

27 lines
520 B
Diff
Raw Normal View History

- // MIR for `forget` before LowerIntrinsics
+ // MIR for `forget` after LowerIntrinsics
fn forget(_1: T) -> () {
2023-06-06 08:47:00 -05:00
debug t => _1;
let mut _0: ();
let mut _2: T;
bb0: {
2023-06-06 08:47:00 -05:00
StorageLive(_2);
_2 = move _1;
- _0 = std::intrinsics::forget::<T>(move _2) -> [return: bb1, unwind unreachable];
+ _0 = const ();
+ goto -> bb1;
}
bb1: {
2023-06-06 08:47:00 -05:00
StorageDead(_2);
goto -> bb2;
}
bb2: {
2023-06-06 08:47:00 -05:00
return;
}
}