|
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 |
8 |
| - let _3: i32; // in scope 0 at $DIR/issue-73223.rs:3:14: 3:15 |
| 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 | + let _3: i32; // in scope 0 at $DIR/issue-73223.rs:5:14: 5:15 |
9 | 9 | let mut _5: (&i32, &i32); // in scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
10 | 10 | let mut _6: &i32; // in scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
11 | 11 | let mut _9: bool; // in scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
23 | 23 | let mut _21: std::fmt::ArgumentV1; // in scope 0 at $SRC_DIR/std/src/macros.rs:LL:COL
|
24 | 24 | let mut _22: std::fmt::ArgumentV1; // in scope 0 at $SRC_DIR/std/src/macros.rs:LL:COL
|
25 | 25 | scope 1 {
|
26 |
| - debug split => _1; // in scope 1 at $DIR/issue-73223.rs:2:9: 2:14 |
27 |
| - let _4: std::option::Option<i32>; // in scope 1 at $DIR/issue-73223.rs:7:9: 7:14 |
| 26 | + debug split => _1; // in scope 1 at $DIR/issue-73223.rs:4:9: 4:14 |
| 27 | + let _4: std::option::Option<i32>; // in scope 1 at $DIR/issue-73223.rs:9:9: 9:14 |
28 | 28 | scope 3 {
|
29 |
| - debug _prev => _4; // in scope 3 at $DIR/issue-73223.rs:7:9: 7:14 |
| 29 | + debug _prev => _4; // in scope 3 at $DIR/issue-73223.rs:9:9: 9:14 |
30 | 30 | let _7: &i32; // in scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
31 | 31 | let _8: &i32; // in scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
32 | 32 | scope 4 {
|
|
61 | 61 | }
|
62 | 62 | }
|
63 | 63 | scope 2 {
|
64 |
| - debug v => _3; // in scope 2 at $DIR/issue-73223.rs:3:14: 3:15 |
| 64 | + debug v => _3; // in scope 2 at $DIR/issue-73223.rs:5:14: 5:15 |
65 | 65 | }
|
66 | 66 | scope 7 {
|
67 | 67 | }
|
68 | 68 | scope 9 {
|
69 | 69 | }
|
70 | 70 |
|
71 | 71 | bb0: {
|
72 |
| - StorageLive(_1); // scope 0 at $DIR/issue-73223.rs:2:9: 2:14 |
73 |
| - StorageLive(_2); // scope 0 at $DIR/issue-73223.rs:2:23: 2:30 |
74 |
| - ((_2 as Some).0: i32) = const 1_i32; // scope 0 at $DIR/issue-73223.rs:2:23: 2:30 |
75 |
| - discriminant(_2) = 1; // scope 0 at $DIR/issue-73223.rs:2:23: 2:30 |
76 |
| - StorageLive(_3); // scope 0 at $DIR/issue-73223.rs:3:14: 3:15 |
77 |
| - _3 = ((_2 as Some).0: i32); // scope 0 at $DIR/issue-73223.rs:3:14: 3:15 |
78 |
| - _1 = _3; // scope 2 at $DIR/issue-73223.rs:3:20: 3:21 |
79 |
| - StorageDead(_3); // scope 0 at $DIR/issue-73223.rs:3:20: 3:21 |
80 |
| - StorageDead(_2); // scope 0 at $DIR/issue-73223.rs:5:6: 5:7 |
81 |
| - ((_4 as Some).0: i32) = _1; // scope 1 at $DIR/issue-73223.rs:7:22: 7:27 |
82 |
| - discriminant(_4) = 1; // scope 1 at $DIR/issue-73223.rs:7:17: 7:28 |
| 72 | + StorageLive(_1); // scope 0 at $DIR/issue-73223.rs:4:9: 4:14 |
| 73 | + StorageLive(_2); // scope 0 at $DIR/issue-73223.rs:4:23: 4:30 |
| 74 | + ((_2 as Some).0: i32) = const 1_i32; // scope 0 at $DIR/issue-73223.rs:4:23: 4:30 |
| 75 | + discriminant(_2) = 1; // scope 0 at $DIR/issue-73223.rs:4:23: 4:30 |
| 76 | + StorageLive(_3); // scope 0 at $DIR/issue-73223.rs:5:14: 5:15 |
| 77 | + _3 = ((_2 as Some).0: i32); // scope 0 at $DIR/issue-73223.rs:5:14: 5:15 |
| 78 | + _1 = _3; // scope 2 at $DIR/issue-73223.rs:5:20: 5:21 |
| 79 | + StorageDead(_3); // scope 0 at $DIR/issue-73223.rs:5:20: 5:21 |
| 80 | + StorageDead(_2); // scope 0 at $DIR/issue-73223.rs:7:6: 7:7 |
| 81 | + ((_4 as Some).0: i32) = _1; // scope 1 at $DIR/issue-73223.rs:9:22: 9:27 |
| 82 | + discriminant(_4) = 1; // scope 1 at $DIR/issue-73223.rs:9:17: 9:28 |
83 | 83 | (_5.0: &i32) = &_1; // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
84 | 84 | _6 = const main::promoted[1]; // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
85 | 85 | // ty::Const
|
|
108 | 108 | StorageDead(_9); // scope 4 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
109 | 109 | StorageDead(_8); // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
110 | 110 | StorageDead(_7); // scope 3 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
111 |
| - _0 = const (); // scope 0 at $DIR/issue-73223.rs:1:11: 9:2 |
112 |
| - StorageDead(_1); // scope 0 at $DIR/issue-73223.rs:9:1: 9:2 |
113 |
| - return; // scope 0 at $DIR/issue-73223.rs:9:2: 9:2 |
| 111 | + _0 = const (); // scope 0 at $DIR/issue-73223.rs:3:11: 11:2 |
| 112 | + StorageDead(_1); // scope 0 at $DIR/issue-73223.rs:11:1: 11:2 |
| 113 | + return; // scope 0 at $DIR/issue-73223.rs:11:2: 11:2 |
114 | 114 | }
|
115 | 115 |
|
116 | 116 | bb2: {
|
|
0 commit comments