1 - // MIR for `main` before RemoveStorageMarkers
2 + // MIR for `main` after RemoveStorageMarkers
5 let mut _0: (); // return place in scope 0 at $DIR/remove_storage_markers.rs:+0:11: +0:11
6 let mut _1: i32; // in scope 0 at $DIR/remove_storage_markers.rs:+1:9: +1:16
7 let mut _2: std::ops::Range<i32>; // in scope 0 at $DIR/remove_storage_markers.rs:+2:14: +2:19
8 let mut _3: std::ops::Range<i32>; // in scope 0 at $DIR/remove_storage_markers.rs:+2:14: +2:19
9 let mut _5: (); // in scope 0 at $DIR/remove_storage_markers.rs:+0:1: +5:2
10 let _6: (); // in scope 0 at $DIR/remove_storage_markers.rs:+2:14: +2:19
11 let mut _7: std::option::Option<i32>; // in scope 0 at $DIR/remove_storage_markers.rs:+2:14: +2:19
12 let mut _8: &mut std::ops::Range<i32>; // in scope 0 at $DIR/remove_storage_markers.rs:+2:14: +2:19
13 let mut _9: &mut std::ops::Range<i32>; // in scope 0 at $DIR/remove_storage_markers.rs:+2:14: +2:19
14 let mut _10: isize; // in scope 0 at $DIR/remove_storage_markers.rs:+2:5: +4:6
15 let mut _11: !; // in scope 0 at $DIR/remove_storage_markers.rs:+2:5: +4:6
16 let mut _13: i32; // in scope 0 at $DIR/remove_storage_markers.rs:+3:16: +3:17
18 debug sum => _1; // in scope 1 at $DIR/remove_storage_markers.rs:+1:9: +1:16
19 let mut _4: std::ops::Range<i32>; // in scope 1 at $DIR/remove_storage_markers.rs:+2:14: +2:19
21 debug iter => _4; // in scope 2 at $DIR/remove_storage_markers.rs:+2:14: +2:19
22 let _12: i32; // in scope 2 at $DIR/remove_storage_markers.rs:+2:9: +2:10
24 debug i => _12; // in scope 3 at $DIR/remove_storage_markers.rs:+2:9: +2:10
30 - StorageLive(_1); // scope 0 at $DIR/remove_storage_markers.rs:+1:9: +1:16
31 _1 = const 0_i32; // scope 0 at $DIR/remove_storage_markers.rs:+1:19: +1:20
32 - StorageLive(_2); // scope 1 at $DIR/remove_storage_markers.rs:+2:14: +2:19
33 - StorageLive(_3); // scope 1 at $DIR/remove_storage_markers.rs:+2:14: +2:19
34 Deinit(_3); // scope 1 at $DIR/remove_storage_markers.rs:+2:14: +2:19
35 (_3.0: i32) = const 0_i32; // scope 1 at $DIR/remove_storage_markers.rs:+2:14: +2:19
36 (_3.1: i32) = const 10_i32; // scope 1 at $DIR/remove_storage_markers.rs:+2:14: +2:19
37 _2 = <std::ops::Range<i32> as IntoIterator>::into_iter(move _3) -> bb1; // scope 1 at $DIR/remove_storage_markers.rs:+2:14: +2:19
39 // + span: $DIR/remove_storage_markers.rs:10:14: 10:19
40 // + literal: Const { ty: fn(std::ops::Range<i32>) -> <std::ops::Range<i32> as IntoIterator>::IntoIter {<std::ops::Range<i32> as IntoIterator>::into_iter}, val: Value(<ZST>) }
44 - StorageDead(_3); // scope 1 at $DIR/remove_storage_markers.rs:+2:18: +2:19
45 - StorageLive(_4); // scope 1 at $DIR/remove_storage_markers.rs:+2:14: +2:19
46 _4 = move _2; // scope 1 at $DIR/remove_storage_markers.rs:+2:14: +2:19
47 goto -> bb2; // scope 2 at $DIR/remove_storage_markers.rs:+2:5: +4:6
51 - StorageLive(_6); // scope 2 at $DIR/remove_storage_markers.rs:+2:14: +2:19
52 - StorageLive(_7); // scope 2 at $DIR/remove_storage_markers.rs:+2:14: +2:19
53 - StorageLive(_8); // scope 2 at $DIR/remove_storage_markers.rs:+2:14: +2:19
54 - StorageLive(_9); // scope 2 at $DIR/remove_storage_markers.rs:+2:14: +2:19
55 _9 = &mut _4; // scope 2 at $DIR/remove_storage_markers.rs:+2:14: +2:19
56 _8 = &mut (*_9); // scope 2 at $DIR/remove_storage_markers.rs:+2:14: +2:19
57 _7 = <std::ops::Range<i32> as Iterator>::next(move _8) -> bb3; // scope 2 at $DIR/remove_storage_markers.rs:+2:14: +2:19
59 // + span: $DIR/remove_storage_markers.rs:10:14: 10:19
60 // + literal: Const { ty: for<'a> fn(&'a mut std::ops::Range<i32>) -> Option<<std::ops::Range<i32> as Iterator>::Item> {<std::ops::Range<i32> as Iterator>::next}, val: Value(<ZST>) }
64 - StorageDead(_8); // scope 2 at $DIR/remove_storage_markers.rs:+2:18: +2:19
65 _10 = discriminant(_7); // scope 2 at $DIR/remove_storage_markers.rs:+2:14: +2:19
66 switchInt(move _10) -> [0_isize: bb6, 1_isize: bb4, otherwise: bb5]; // scope 2 at $DIR/remove_storage_markers.rs:+2:14: +2:19
70 - StorageLive(_12); // scope 2 at $DIR/remove_storage_markers.rs:+2:9: +2:10
71 _12 = ((_7 as Some).0: i32); // scope 2 at $DIR/remove_storage_markers.rs:+2:9: +2:10
72 - StorageLive(_13); // scope 3 at $DIR/remove_storage_markers.rs:+3:16: +3:17
73 _13 = _12; // scope 3 at $DIR/remove_storage_markers.rs:+3:16: +3:17
74 _1 = Add(_1, move _13); // scope 3 at $DIR/remove_storage_markers.rs:+3:9: +3:17
75 - StorageDead(_13); // scope 3 at $DIR/remove_storage_markers.rs:+3:16: +3:17
76 _6 = const (); // scope 3 at $DIR/remove_storage_markers.rs:+2:20: +4:6
77 - StorageDead(_12); // scope 2 at $DIR/remove_storage_markers.rs:+4:5: +4:6
78 - StorageDead(_9); // scope 2 at $DIR/remove_storage_markers.rs:+4:5: +4:6
79 - StorageDead(_7); // scope 2 at $DIR/remove_storage_markers.rs:+4:5: +4:6
80 - StorageDead(_6); // scope 2 at $DIR/remove_storage_markers.rs:+4:5: +4:6
81 _5 = const (); // scope 2 at $DIR/remove_storage_markers.rs:+2:5: +4:6
82 goto -> bb2; // scope 2 at $DIR/remove_storage_markers.rs:+2:5: +4:6
86 unreachable; // scope 2 at $DIR/remove_storage_markers.rs:+2:14: +2:19
90 _0 = const (); // scope 2 at $DIR/remove_storage_markers.rs:+2:5: +4:6
91 - StorageDead(_9); // scope 2 at $DIR/remove_storage_markers.rs:+4:5: +4:6
92 - StorageDead(_7); // scope 2 at $DIR/remove_storage_markers.rs:+4:5: +4:6
93 - StorageDead(_6); // scope 2 at $DIR/remove_storage_markers.rs:+4:5: +4:6
94 - StorageDead(_4); // scope 1 at $DIR/remove_storage_markers.rs:+4:5: +4:6
95 - StorageDead(_2); // scope 1 at $DIR/remove_storage_markers.rs:+4:5: +4:6
96 - StorageDead(_1); // scope 0 at $DIR/remove_storage_markers.rs:+5:1: +5:2
97 return; // scope 0 at $DIR/remove_storage_markers.rs:+5:2: +5:2