@@ -8,13 +8,14 @@ fn int_range(_1: usize, _2: usize) -> () {
8
8
let mut _4 : std::ops::Range<usize>; // in scope 0 at $DIR/loops.rs:+1:14: +1:24
9
9
let mut _5 : &mut std::ops::Range<usize>; // in scope 0 at $DIR/loops.rs:+1:14: +1:24
10
10
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
13
14
scope 1 {
14
15
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
16
17
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
18
19
}
19
20
scope 4 (inlined iter::range::<impl Iterator for std::ops::Range<usize>>::next) { // at $DIR/loops.rs:8:14 : 8:24
20
21
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) -> () {
24
25
let mut _7 : &usize; // in scope 5 at $SRC_DIR/core/src/iter/range.rs:LL:COL
25
26
let mut _10 : bool; // in scope 5 at $SRC_DIR/core/src/iter/range.rs:LL:COL
26
27
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
28
29
scope 6 {
29
30
debug old => _12; // in scope 6 at $SRC_DIR/core/src/iter/range.rs:LL:COL
30
31
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
+ }
31
44
}
32
45
}
33
46
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) -> () {
53
66
bb1 : {
54
67
StorageLive(_11); // scope 1 at $DIR/loops.rs:+1:14 : +1:24
55
68
_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
57
69
StorageLive(_10); // scope 5 at $SRC_DIR/core/src/iter/range.rs:LL:COL
58
70
StorageLive(_6); // scope 5 at $SRC_DIR/core/src/iter/range.rs:LL:COL
59
71
_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) -> () {
78
90
79
91
bb3 : {
80
92
_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
83
97
// 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>) }
86
100
}
87
101
88
102
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
91
106
_11 = Option::<usize>::Some(_12); // scope 6 at $SRC_DIR/core/src/iter/range.rs:LL:COL
92
107
goto -> bb5; // scope 5 at $SRC_DIR/core/src/iter/range.rs:LL:COL
93
108
}
94
109
95
110
bb5 : {
96
111
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
100
114
}
101
115
102
116
bb6 : {
@@ -106,8 +120,8 @@ fn int_range(_1: usize, _2: usize) -> () {
106
120
}
107
121
108
122
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
111
125
// mir::Constant
112
126
// + span : $DIR/loops.rs:9:9: 9:15
113
127
// + literal : Const { ty: fn(usize) {opaque::<usize>}, val: Value(<ZST>) }
0 commit comments