mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
27 lines
520 B
Diff
27 lines
520 B
Diff
- // MIR for `forget` before LowerIntrinsics
|
|
+ // MIR for `forget` after LowerIntrinsics
|
|
|
|
fn forget(_1: T) -> () {
|
|
debug t => _1;
|
|
let mut _0: ();
|
|
let mut _2: T;
|
|
|
|
bb0: {
|
|
StorageLive(_2);
|
|
_2 = move _1;
|
|
- _0 = std::intrinsics::forget::<T>(move _2) -> [return: bb1, unwind unreachable];
|
|
+ _0 = const ();
|
|
+ goto -> bb1;
|
|
}
|
|
|
|
bb1: {
|
|
StorageDead(_2);
|
|
goto -> bb2;
|
|
}
|
|
|
|
bb2: {
|
|
return;
|
|
}
|
|
}
|
|
|