|
1 | | -- // MIR for `main` before ConstProp |
2 | | -+ // MIR for `main` after ConstProp |
| 1 | +- // MIR for `concrete` before ConstProp |
| 2 | ++ // MIR for `concrete` after ConstProp |
3 | 3 |
|
4 | | - fn main() -> () { |
5 | | - let mut _0: (); // return place in scope 0 at $DIR/offset_of.rs:+0:11: +0:11 |
| 4 | + fn concrete() -> () { |
| 5 | + let mut _0: (); // return place in scope 0 at $DIR/offset_of.rs:+0:15: +0:15 |
6 | 6 | let _1: usize; // in scope 0 at $DIR/offset_of.rs:+1:9: +1:10 |
7 | 7 | scope 1 { |
8 | 8 | debug x => _1; // in scope 1 at $DIR/offset_of.rs:+1:9: +1:10 |
|
22 | 22 |
|
23 | 23 | bb0: { |
24 | 24 | StorageLive(_1); // scope 0 at $DIR/offset_of.rs:+1:9: +1:10 |
25 | | -- _1 = OffsetOf([0])(Foo); // scope 0 at $DIR/offset_of.rs:+1:13: +1:31 |
26 | | -+ _1 = const 0_usize; // scope 0 at $DIR/offset_of.rs:+1:13: +1:31 |
| 25 | +- _1 = OffsetOf(Alpha, [0]); // scope 0 at $DIR/offset_of.rs:+1:13: +1:33 |
| 26 | ++ _1 = const 4_usize; // scope 0 at $DIR/offset_of.rs:+1:13: +1:33 |
27 | 27 | StorageLive(_2); // scope 1 at $DIR/offset_of.rs:+2:9: +2:10 |
28 | | -- _2 = OffsetOf([1])(Foo); // scope 1 at $DIR/offset_of.rs:+2:13: +2:31 |
29 | | -+ _2 = const 2_usize; // scope 1 at $DIR/offset_of.rs:+2:13: +2:31 |
| 28 | +- _2 = OffsetOf(Alpha, [1]); // scope 1 at $DIR/offset_of.rs:+2:13: +2:33 |
| 29 | ++ _2 = const 0_usize; // scope 1 at $DIR/offset_of.rs:+2:13: +2:33 |
30 | 30 | StorageLive(_3); // scope 2 at $DIR/offset_of.rs:+3:9: +3:11 |
31 | | -- _3 = OffsetOf([2, 0])(Foo); // scope 2 at $DIR/offset_of.rs:+3:14: +3:34 |
32 | | -+ _3 = const 4_usize; // scope 2 at $DIR/offset_of.rs:+3:14: +3:34 |
| 31 | +- _3 = OffsetOf(Alpha, [2, 0]); // scope 2 at $DIR/offset_of.rs:+3:14: +3:36 |
| 32 | ++ _3 = const 2_usize; // scope 2 at $DIR/offset_of.rs:+3:14: +3:36 |
33 | 33 | StorageLive(_4); // scope 3 at $DIR/offset_of.rs:+4:9: +4:11 |
34 | | -- _4 = OffsetOf([2, 1])(Foo); // scope 3 at $DIR/offset_of.rs:+4:14: +4:34 |
35 | | -+ _4 = const 5_usize; // scope 3 at $DIR/offset_of.rs:+4:14: +4:34 |
| 34 | +- _4 = OffsetOf(Alpha, [2, 1]); // scope 3 at $DIR/offset_of.rs:+4:14: +4:36 |
| 35 | ++ _4 = const 3_usize; // scope 3 at $DIR/offset_of.rs:+4:14: +4:36 |
36 | 36 | StorageDead(_4); // scope 3 at $DIR/offset_of.rs:+5:1: +5:2 |
37 | 37 | StorageDead(_3); // scope 2 at $DIR/offset_of.rs:+5:1: +5:2 |
38 | 38 | StorageDead(_2); // scope 1 at $DIR/offset_of.rs:+5:1: +5:2 |
|
0 commit comments