]>
Commit | Line | Data |
---|---|---|
5bcae85e SL |
1 | fn main() { |
2 | let a = 0; | |
3 | { | |
4 | let b = &Some(a); | |
5 | } | |
6 | let c = 1; | |
7 | } | |
8 | ||
9 | // END RUST SOURCE | |
48663c56 | 10 | // START rustc.main.nll.0.mir |
5bcae85e | 11 | // bb0: { |
c30ab7b3 SL |
12 | // StorageLive(_1); |
13 | // _1 = const 0i32; | |
0bf4aa26 | 14 | // FakeRead(ForLet, _1); |
c30ab7b3 SL |
15 | // StorageLive(_3); |
16 | // StorageLive(_4); | |
17 | // StorageLive(_5); | |
18 | // _5 = _1; | |
532ac7d7 | 19 | // _4 = std::option::Option::<i32>::Some(move _5,); |
c30ab7b3 | 20 | // StorageDead(_5); |
8bb4bdeb | 21 | // _3 = &_4; |
0bf4aa26 | 22 | // FakeRead(ForLet, _3); |
c30ab7b3 | 23 | // _2 = (); |
8bb4bdeb | 24 | // StorageDead(_4); |
8faf50e0 | 25 | // StorageDead(_3); |
c30ab7b3 SL |
26 | // StorageLive(_6); |
27 | // _6 = const 1i32; | |
0bf4aa26 | 28 | // FakeRead(ForLet, _6); |
c30ab7b3 SL |
29 | // _0 = (); |
30 | // StorageDead(_6); | |
31 | // StorageDead(_1); | |
abe05a73 | 32 | // return; |
8bb4bdeb | 33 | // } |
48663c56 | 34 | // END rustc.main.nll.0.mir |