@@ -8,13 +8,14 @@ fn int_range(_1: usize, _2: usize) -> () {
88 let mut _4 : std::ops::Range<usize>; // in scope 0 at $DIR/loops.rs:+1:14: +1:24
99 let mut _5 : &mut std::ops::Range<usize>; // in scope 0 at $DIR/loops.rs:+1:14: +1:24
1010 let mut _11 : std::option::Option<usize>; // in scope 0 at $DIR/loops.rs:+1:14: +1:24
11- let mut _14 : isize; // in scope 0 at $DIR/loops.rs:+1:5: +3:6
12- let _16 : (); // in scope 0 at $DIR/loops.rs:+1:14: +1:24
11+ let mut _13 : usize; // in scope 0 at $SRC_DIR/core/src/iter/range.rs:LL:COL
12+ let mut _15 : isize; // in scope 0 at $DIR/loops.rs:+1:5: +3:6
13+ let _17 : (); // in scope 0 at $DIR/loops.rs:+1:14: +1:24
1314 scope 1 {
1415 debug iter => _4; // in scope 1 at $DIR/loops.rs:+1:14 : +1:24
15- let _15 : usize; // in scope 1 at $DIR/loops.rs:+1:9: +1:10
16+ let _16 : usize; // in scope 1 at $DIR/loops.rs:+1:9: +1:10
1617 scope 2 {
17- debug i => _15 ; // in scope 2 at $DIR/loops.rs:+1:9 : +1:10
18+ debug i => _16 ; // in scope 2 at $DIR/loops.rs:+1:9 : +1:10
1819 }
1920 scope 4 (inlined iter::range::<impl Iterator for std::ops::Range<usize>>::next) { // at $DIR/loops.rs:8:14 : 8:24
2021 debug self => _5; // in scope 4 at $SRC_DIR/core/src/iter/range.rs:LL:COL
@@ -24,10 +25,22 @@ fn int_range(_1: usize, _2: usize) -> () {
2425 let mut _7 : &usize; // in scope 5 at $SRC_DIR/core/src/iter/range.rs:LL:COL
2526 let mut _10 : bool; // in scope 5 at $SRC_DIR/core/src/iter/range.rs:LL:COL
2627 let _12 : usize; // in scope 5 at $SRC_DIR/core/src/iter/range.rs:LL:COL
27- let mut _13 : usize; // in scope 5 at $SRC_DIR/core/src/iter/range.rs:LL:COL
28+ let mut _14 : usize; // in scope 5 at $SRC_DIR/core/src/iter/range.rs:LL:COL
2829 scope 6 {
2930 debug old => _12; // in scope 6 at $SRC_DIR/core/src/iter/range.rs:LL:COL
3031 scope 7 {
32+ scope 9 (inlined <usize as Step>::forward_unchecked) { // at $SRC_DIR/core/src/iter/range.rs:LL:COL
33+ debug start => _12; // in scope 9 at $SRC_DIR/core/src/iter/range.rs:LL:COL
34+ debug n => const 1_usize; // in scope 9 at $SRC_DIR/core/src/iter/range.rs:LL:COL
35+ scope 10 {
36+ scope 11 (inlined core::num::<impl usize>::unchecked_add) { // at $SRC_DIR/core/src/iter/range.rs:LL:COL
37+ debug self => _12; // in scope 11 at $SRC_DIR/core/src/num/uint_macros.rs:LL:COL
38+ debug rhs => const 1_usize; // in scope 11 at $SRC_DIR/core/src/num/uint_macros.rs:LL:COL
39+ scope 12 {
40+ }
41+ }
42+ }
43+ }
3144 }
3245 }
3346 scope 8 (inlined cmp::impls::<impl PartialOrd for usize>::lt) { // at $SRC_DIR/core/src/iter/range.rs:LL:COL
@@ -53,7 +66,6 @@ fn int_range(_1: usize, _2: usize) -> () {
5366 bb1 : {
5467 StorageLive(_11); // scope 1 at $DIR/loops.rs:+1:14 : +1:24
5568 _5 = &mut _4; // scope 1 at $DIR/loops.rs:+1:14 : +1:24
56- StorageLive(_12); // scope 4 at $SRC_DIR/core/src/iter/range.rs:LL:COL
5769 StorageLive(_10); // scope 5 at $SRC_DIR/core/src/iter/range.rs:LL:COL
5870 StorageLive(_6); // scope 5 at $SRC_DIR/core/src/iter/range.rs:LL:COL
5971 _6 = &((*_5).0 : usize); // scope 5 at $SRC_DIR/core/src/iter/range.rs:LL:COL
@@ -78,25 +90,27 @@ fn int_range(_1: usize, _2: usize) -> () {
7890
7991 bb3 : {
8092 _12 = ((*_5).0 : usize); // scope 5 at $SRC_DIR/core/src/iter/range.rs:LL:COL
81- StorageLive(_13); // scope 6 at $SRC_DIR/core/src/iter/range.rs:LL:COL
82- _13 = <usize as Step>::forward_unchecked(_12, const 1_usize) -> bb4; // scope 7 at $SRC_DIR/core/src/iter/range.rs:LL:COL
93+ StorageLive(_14); // scope 6 at $SRC_DIR/core/src/iter/range.rs:LL:COL
94+ StorageLive(_13); // scope 7 at $SRC_DIR/core/src/iter/range.rs:LL:COL
95+ _13 = const 1_usize; // scope 7 at $SRC_DIR/core/src/iter/range.rs:LL:COL
96+ _14 = unchecked_add::<usize>(_12, _13) -> [return : bb4, unwind unreachable]; // scope 12 at $SRC_DIR/core/src/num/uint_macros.rs:LL:COL
8397 // mir::Constant
84- // + span : $SRC_DIR/core/src/iter/range .rs:LL:COL
85- // + literal : Const { ty: unsafe fn(usize, usize) -> usize {<usize as Step>::forward_unchecked }, val: Value(<ZST>) }
98+ // + span : $SRC_DIR/core/src/num/uint_macros .rs:LL:COL
99+ // + literal : Const { ty: unsafe extern "rust-intrinsic" fn(usize, usize) -> usize {unchecked_add:: <usize> }, val: Value(<ZST>) }
86100 }
87101
88102 bb4 : {
89- ((*_5).0 : usize) = move _13; // scope 6 at $SRC_DIR/core/src/iter/range.rs:LL:COL
90- StorageDead(_13); // scope 6 at $SRC_DIR/core/src/iter/range.rs:LL:COL
103+ StorageDead(_13); // scope 7 at $SRC_DIR/core/src/iter/range.rs:LL:COL
104+ ((*_5).0 : usize) = move _14; // scope 6 at $SRC_DIR/core/src/iter/range.rs:LL:COL
105+ StorageDead(_14); // scope 6 at $SRC_DIR/core/src/iter/range.rs:LL:COL
91106 _11 = Option::<usize>::Some(_12); // scope 6 at $SRC_DIR/core/src/iter/range.rs:LL:COL
92107 goto -> bb5; // scope 5 at $SRC_DIR/core/src/iter/range.rs:LL:COL
93108 }
94109
95110 bb5 : {
96111 StorageDead(_10); // scope 5 at $SRC_DIR/core/src/iter/range.rs:LL:COL
97- StorageDead(_12); // scope 4 at $SRC_DIR/core/src/iter/range.rs:LL:COL
98- _14 = discriminant(_11); // scope 1 at $DIR/loops.rs:+1:14 : +1:24
99- switchInt(move _14) -> [0 : bb6, 1: bb7, otherwise: bb9]; // scope 1 at $DIR/loops.rs:+1:14: +1:24
112+ _15 = discriminant(_11); // scope 1 at $DIR/loops.rs:+1:14 : +1:24
113+ switchInt(move _15) -> [0 : bb6, 1: bb7, otherwise: bb9]; // scope 1 at $DIR/loops.rs:+1:14: +1:24
100114 }
101115
102116 bb6 : {
@@ -106,8 +120,8 @@ fn int_range(_1: usize, _2: usize) -> () {
106120 }
107121
108122 bb7 : {
109- _15 = ((_11 as Some).0 : usize); // scope 1 at $DIR/loops.rs:+1:9: +1:10
110- _16 = opaque::<usize>(_15 ) -> bb8; // scope 2 at $DIR/loops.rs:+2:9 : +2:18
123+ _16 = ((_11 as Some).0 : usize); // scope 1 at $DIR/loops.rs:+1:9: +1:10
124+ _17 = opaque::<usize>(_16 ) -> bb8; // scope 2 at $DIR/loops.rs:+2:9 : +2:18
111125 // mir::Constant
112126 // + span : $DIR/loops.rs:9:9: 9:15
113127 // + literal : Const { ty: fn(usize) {opaque::<usize>}, val: Value(<ZST>) }
0 commit comments