|
4 | 4 | fn forget(_1: T) -> () {
|
5 | 5 | debug t => _1; // in scope 0 at $DIR/lower_intrinsics.rs:18:18: 18:19
|
6 | 6 | let mut _0: (); // return place in scope 0 at $DIR/lower_intrinsics.rs:18:24: 18:24
|
7 |
| - let _2: (); // in scope 0 at $DIR/lower_intrinsics.rs:19:14: 19:41 |
8 |
| - let mut _3: T; // in scope 0 at $DIR/lower_intrinsics.rs:19:39: 19:40 |
9 |
| - scope 1 { |
10 |
| - } |
| 7 | + let mut _2: T; // in scope 0 at $DIR/lower_intrinsics.rs:19:30: 19:31 |
11 | 8 |
|
12 | 9 | bb0: {
|
13 |
| - StorageLive(_2); // scope 0 at $DIR/lower_intrinsics.rs:19:5: 19:43 |
14 |
| - StorageLive(_3); // scope 1 at $DIR/lower_intrinsics.rs:19:39: 19:40 |
15 |
| - _3 = move _1; // scope 1 at $DIR/lower_intrinsics.rs:19:39: 19:40 |
16 |
| -- _2 = std::intrinsics::forget::<T>(move _3) -> bb1; // scope 1 at $DIR/lower_intrinsics.rs:19:14: 19:41 |
| 10 | + StorageLive(_2); // scope 0 at $DIR/lower_intrinsics.rs:19:30: 19:31 |
| 11 | + _2 = move _1; // scope 0 at $DIR/lower_intrinsics.rs:19:30: 19:31 |
| 12 | +- _0 = std::intrinsics::forget::<T>(move _2) -> bb1; // scope 0 at $DIR/lower_intrinsics.rs:19:5: 19:32 |
17 | 13 | - // mir::Constant
|
18 |
| -- // + span: $DIR/lower_intrinsics.rs:19:14: 19:38 |
19 |
| -- // + literal: Const { ty: unsafe extern "rust-intrinsic" fn(T) {std::intrinsics::forget::<T>}, val: Value(Scalar(<ZST>)) } |
20 |
| -+ _2 = const (); // scope 1 at $DIR/lower_intrinsics.rs:19:14: 19:41 |
21 |
| -+ goto -> bb1; // scope 1 at $DIR/lower_intrinsics.rs:19:14: 19:41 |
| 14 | +- // + span: $DIR/lower_intrinsics.rs:19:5: 19:29 |
| 15 | +- // + literal: Const { ty: extern "rust-intrinsic" fn(T) {std::intrinsics::forget::<T>}, val: Value(Scalar(<ZST>)) } |
| 16 | ++ _0 = const (); // scope 0 at $DIR/lower_intrinsics.rs:19:5: 19:32 |
| 17 | ++ goto -> bb1; // scope 0 at $DIR/lower_intrinsics.rs:19:5: 19:32 |
22 | 18 | }
|
23 | 19 |
|
24 | 20 | bb1: {
|
25 |
| - StorageDead(_3); // scope 1 at $DIR/lower_intrinsics.rs:19:40: 19:41 |
26 |
| - StorageDead(_2); // scope 0 at $DIR/lower_intrinsics.rs:19:43: 19:44 |
27 |
| - _0 = const (); // scope 0 at $DIR/lower_intrinsics.rs:18:24: 20:2 |
| 21 | + StorageDead(_2); // scope 0 at $DIR/lower_intrinsics.rs:19:31: 19:32 |
28 | 22 | goto -> bb2; // scope 0 at $DIR/lower_intrinsics.rs:20:1: 20:2
|
29 | 23 | }
|
30 | 24 |
|
|
0 commit comments