1 // MIR for `main` 0 nll
4 | '_#0r | Global | ['_#0r, '_#1r]
5 | '_#1r | Local | ['_#1r]
7 | Inferred Region Values
8 | '_#0r | U0 | {bb0[0..=22], '_#0r, '_#1r}
9 | '_#1r | U0 | {bb0[0..=22], '_#1r}
10 | '_#2r | U0 | {bb0[10..=11]}
11 | '_#3r | U0 | {bb0[11]}
13 | Inference Constraints
14 | '_#0r live at {bb0[0..=22]}
15 | '_#1r live at {bb0[0..=22]}
16 | '_#2r live at {bb0[10]}
17 | '_#3r live at {bb0[11]}
18 | '_#2r: '_#3r due to Assignment at Single(bb0[10]) ($DIR/storage_ranges.rs:6:17: 6:25 (#0)
21 let mut _0: (); // return place in scope 0 at $DIR/storage_ranges.rs:+0:11: +0:11
22 let _1: i32; // in scope 0 at $DIR/storage_ranges.rs:+1:9: +1:10
23 let _2: (); // in scope 0 at $DIR/storage_ranges.rs:+2:5: +4:6
24 let _4: std::option::Option<i32>; // in scope 0 at $DIR/storage_ranges.rs:+3:18: +3:25
25 let mut _5: i32; // in scope 0 at $DIR/storage_ranges.rs:+3:23: +3:24
27 debug a => _1; // in scope 1 at $DIR/storage_ranges.rs:+1:9: +1:10
28 let _3: &std::option::Option<i32>; // in scope 1 at $DIR/storage_ranges.rs:+3:13: +3:14
29 let _6: i32; // in scope 1 at $DIR/storage_ranges.rs:+5:9: +5:10
31 debug b => _3; // in scope 2 at $DIR/storage_ranges.rs:+3:13: +3:14
34 debug c => _6; // in scope 3 at $DIR/storage_ranges.rs:+5:9: +5:10
39 StorageLive(_1); // scope 0 at $DIR/storage_ranges.rs:+1:9: +1:10
40 _1 = const 0_i32; // scope 0 at $DIR/storage_ranges.rs:+1:13: +1:14
41 FakeRead(ForLet(None), _1); // scope 0 at $DIR/storage_ranges.rs:+1:9: +1:10
42 StorageLive(_2); // scope 1 at $DIR/storage_ranges.rs:+2:5: +4:6
43 StorageLive(_3); // scope 1 at $DIR/storage_ranges.rs:+3:13: +3:14
44 StorageLive(_4); // scope 1 at $DIR/storage_ranges.rs:+3:18: +3:25
45 StorageLive(_5); // scope 1 at $DIR/storage_ranges.rs:+3:23: +3:24
46 _5 = _1; // scope 1 at $DIR/storage_ranges.rs:+3:23: +3:24
47 _4 = Option::<i32>::Some(move _5); // scope 1 at $DIR/storage_ranges.rs:+3:18: +3:25
48 StorageDead(_5); // scope 1 at $DIR/storage_ranges.rs:+3:24: +3:25
49 _3 = &_4; // scope 1 at $DIR/storage_ranges.rs:+3:17: +3:25
50 FakeRead(ForLet(None), _3); // scope 1 at $DIR/storage_ranges.rs:+3:13: +3:14
51 _2 = const (); // scope 1 at $DIR/storage_ranges.rs:+2:5: +4:6
52 StorageDead(_4); // scope 1 at $DIR/storage_ranges.rs:+4:5: +4:6
53 StorageDead(_3); // scope 1 at $DIR/storage_ranges.rs:+4:5: +4:6
54 StorageDead(_2); // scope 1 at $DIR/storage_ranges.rs:+4:5: +4:6
55 StorageLive(_6); // scope 1 at $DIR/storage_ranges.rs:+5:9: +5:10
56 _6 = const 1_i32; // scope 1 at $DIR/storage_ranges.rs:+5:13: +5:14
57 FakeRead(ForLet(None), _6); // scope 1 at $DIR/storage_ranges.rs:+5:9: +5:10
58 _0 = const (); // scope 0 at $DIR/storage_ranges.rs:+0:11: +6:2
59 StorageDead(_6); // scope 1 at $DIR/storage_ranges.rs:+6:1: +6:2
60 StorageDead(_1); // scope 0 at $DIR/storage_ranges.rs:+6:1: +6:2
61 return; // scope 0 at $DIR/storage_ranges.rs:+6:2: +6:2