2020-11-13 18:00:00 -06:00
|
|
|
- // MIR for `forget` before LowerIntrinsics
|
|
|
|
+ // MIR for `forget` after LowerIntrinsics
|
|
|
|
|
|
|
|
fn forget(_1: T) -> () {
|
2022-07-27 13:47:42 -05:00
|
|
|
debug t => _1; // in scope 0 at $DIR/lower_intrinsics.rs:+0:18: +0:19
|
|
|
|
let mut _0: (); // return place in scope 0 at $DIR/lower_intrinsics.rs:+0:24: +0:24
|
|
|
|
let mut _2: T; // in scope 0 at $DIR/lower_intrinsics.rs:+1:30: +1:31
|
2020-11-13 18:00:00 -06:00
|
|
|
|
|
|
|
bb0: {
|
2022-07-27 13:47:42 -05:00
|
|
|
StorageLive(_2); // scope 0 at $DIR/lower_intrinsics.rs:+1:30: +1:31
|
|
|
|
_2 = move _1; // scope 0 at $DIR/lower_intrinsics.rs:+1:30: +1:31
|
2023-04-05 03:17:40 -05:00
|
|
|
- _0 = std::intrinsics::forget::<T>(move _2) -> [return: bb1, unwind unreachable]; // scope 0 at $DIR/lower_intrinsics.rs:+1:5: +1:32
|
2020-11-13 18:00:00 -06:00
|
|
|
- // mir::Constant
|
2022-08-20 23:47:53 -05:00
|
|
|
- // + span: $DIR/lower_intrinsics.rs:26:5: 26:29
|
2022-07-06 09:14:46 -05:00
|
|
|
- // + literal: Const { ty: extern "rust-intrinsic" fn(T) {std::intrinsics::forget::<T>}, val: Value(<ZST>) }
|
2022-07-27 13:47:42 -05:00
|
|
|
+ _0 = const (); // scope 0 at $DIR/lower_intrinsics.rs:+1:5: +1:32
|
|
|
|
+ goto -> bb1; // scope 0 at $DIR/lower_intrinsics.rs:+1:5: +1:32
|
2020-11-13 18:00:00 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
2022-07-27 13:47:42 -05:00
|
|
|
StorageDead(_2); // scope 0 at $DIR/lower_intrinsics.rs:+1:31: +1:32
|
|
|
|
goto -> bb2; // scope 0 at $DIR/lower_intrinsics.rs:+2:1: +2:2
|
2020-12-14 18:00:00 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb2: {
|
2022-07-27 13:47:42 -05:00
|
|
|
return; // scope 0 at $DIR/lower_intrinsics.rs:+2:2: +2:2
|
2020-11-13 18:00:00 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|