rust/tests/mir-opt/lower_intrinsics.unreachable.LowerIntrinsics.panic-abort.diff
Matthew Jasper a277c901d9 Remove MIR unsafe check
This also remove safety information from MIR.
2024-04-03 08:50:12 +00:00

17 lines
365 B
Diff

- // MIR for `unreachable` before LowerIntrinsics
+ // MIR for `unreachable` after LowerIntrinsics
fn unreachable() -> ! {
let mut _0: !;
let _1: ();
let mut _2: !;
bb0: {
StorageLive(_1);
StorageLive(_2);
- _2 = std::intrinsics::unreachable() -> unwind unreachable;
+ unreachable;
}
}