|
2 | 2 | + // MIR for `main` after PreCodegen
|
3 | 3 |
|
4 | 4 | fn main() -> () {
|
5 |
| - let mut _0: (); // return place in scope 0 at $DIR/issue-73223.rs:1:11: 1:11 |
6 |
| - let _1: i32; // in scope 0 at $DIR/issue-73223.rs:2:9: 2:14 |
7 |
| - let mut _2: std::option::Option<i32>; // in scope 0 at $DIR/issue-73223.rs:2:23: 2:30 |
| 5 | + let mut _0: (); // return place in scope 0 at $DIR/issue-73223.rs:3:11: 3:11 |
| 6 | + let _1: i32; // in scope 0 at $DIR/issue-73223.rs:4:9: 4:14 |
| 7 | + let mut _2: std::option::Option<i32>; // in scope 0 at $DIR/issue-73223.rs:4:23: 4:30 |
8 | 8 | let mut _4: (&i32, &i32); // in scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
9 | 9 | let mut _5: bool; // in scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
10 | 10 | let mut _6: bool; // in scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
20 | 20 | let mut _16: std::fmt::ArgumentV1; // in scope 0 at $SRC_DIR/std/src/macros.rs:LL:COL
|
21 | 21 | let mut _17: std::fmt::ArgumentV1; // in scope 0 at $SRC_DIR/std/src/macros.rs:LL:COL
|
22 | 22 | scope 1 {
|
23 |
| - debug split => _1; // in scope 1 at $DIR/issue-73223.rs:2:9: 2:14 |
24 |
| - let _3: std::option::Option<i32>; // in scope 1 at $DIR/issue-73223.rs:7:9: 7:14 |
| 23 | + debug split => _1; // in scope 1 at $DIR/issue-73223.rs:4:9: 4:14 |
| 24 | + let _3: std::option::Option<i32>; // in scope 1 at $DIR/issue-73223.rs:9:9: 9:14 |
25 | 25 | scope 3 {
|
26 |
| - debug _prev => _3; // in scope 3 at $DIR/issue-73223.rs:7:9: 7:14 |
| 26 | + debug _prev => _3; // in scope 3 at $DIR/issue-73223.rs:9:9: 9:14 |
27 | 27 | scope 4 {
|
28 | 28 | debug left_val => _13; // in scope 4 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
29 | 29 | debug right_val => _15; // in scope 4 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
55 | 55 | }
|
56 | 56 | }
|
57 | 57 | scope 2 {
|
58 |
| - debug v => _1; // in scope 2 at $DIR/issue-73223.rs:3:14: 3:15 |
| 58 | + debug v => _1; // in scope 2 at $DIR/issue-73223.rs:5:14: 5:15 |
59 | 59 | }
|
60 | 60 | scope 7 {
|
61 | 61 | }
|
62 | 62 | scope 9 {
|
63 | 63 | }
|
64 | 64 |
|
65 | 65 | bb0: {
|
66 |
| - StorageLive(_2); // scope 0 at $DIR/issue-73223.rs:2:23: 2:30 |
67 |
| - ((_2 as Some).0: i32) = const 1_i32; // scope 0 at $DIR/issue-73223.rs:2:23: 2:30 |
68 |
| - discriminant(_2) = 1; // scope 0 at $DIR/issue-73223.rs:2:23: 2:30 |
69 |
| - _1 = ((_2 as Some).0: i32); // scope 0 at $DIR/issue-73223.rs:3:14: 3:15 |
70 |
| - StorageDead(_2); // scope 0 at $DIR/issue-73223.rs:5:6: 5:7 |
71 |
| - ((_3 as Some).0: i32) = _1; // scope 1 at $DIR/issue-73223.rs:7:22: 7:27 |
72 |
| - discriminant(_3) = 1; // scope 1 at $DIR/issue-73223.rs:7:17: 7:28 |
| 66 | + StorageLive(_2); // scope 0 at $DIR/issue-73223.rs:4:23: 4:30 |
| 67 | + ((_2 as Some).0: i32) = const 1_i32; // scope 0 at $DIR/issue-73223.rs:4:23: 4:30 |
| 68 | + discriminant(_2) = 1; // scope 0 at $DIR/issue-73223.rs:4:23: 4:30 |
| 69 | + _1 = ((_2 as Some).0: i32); // scope 0 at $DIR/issue-73223.rs:5:14: 5:15 |
| 70 | + StorageDead(_2); // scope 0 at $DIR/issue-73223.rs:7:6: 7:7 |
| 71 | + ((_3 as Some).0: i32) = _1; // scope 1 at $DIR/issue-73223.rs:9:22: 9:27 |
| 72 | + discriminant(_3) = 1; // scope 1 at $DIR/issue-73223.rs:9:17: 9:28 |
73 | 73 | (_4.0: &i32) = &_1; // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
74 | 74 | (_4.1: &i32) = const main::promoted[1]; // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
75 | 75 | // ty::Const
|
|
93 | 93 |
|
94 | 94 | bb1: {
|
95 | 95 | StorageDead(_5); // scope 4 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
96 |
| - _0 = const (); // scope 0 at $DIR/issue-73223.rs:1:11: 9:2 |
97 |
| - return; // scope 0 at $DIR/issue-73223.rs:9:2: 9:2 |
| 96 | + _0 = const (); // scope 0 at $DIR/issue-73223.rs:3:11: 11:2 |
| 97 | + return; // scope 0 at $DIR/issue-73223.rs:11:2: 11:2 |
98 | 98 | }
|
99 | 99 |
|
100 | 100 | bb2: {
|
|
0 commit comments