File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -95,15 +95,13 @@ macro_rules! step_impl_unsigned {
95
95
}
96
96
97
97
#[ inline]
98
- #[ rustc_inherit_overflow_checks]
99
98
fn add_one( & self ) -> Self {
100
- * self + 1
99
+ Add :: add ( * self , 1 ) ;
101
100
}
102
101
103
102
#[ inline]
104
- #[ rustc_inherit_overflow_checks]
105
103
fn sub_one( & self ) -> Self {
106
- * self - 1
104
+ Sub :: sub ( * self , 1 ) ;
107
105
}
108
106
109
107
#[ inline]
@@ -168,15 +166,13 @@ macro_rules! step_impl_signed {
168
166
}
169
167
170
168
#[ inline]
171
- #[ rustc_inherit_overflow_checks]
172
169
fn add_one( & self ) -> Self {
173
- * self + 1
170
+ Add :: add ( * self , 1 ) ;
174
171
}
175
172
176
173
#[ inline]
177
- #[ rustc_inherit_overflow_checks]
178
174
fn sub_one( & self ) -> Self {
179
- * self - 1
175
+ Sub :: sub ( * self , 1 ) ;
180
176
}
181
177
182
178
#[ inline]
@@ -219,15 +215,13 @@ macro_rules! step_impl_no_between {
219
215
}
220
216
221
217
#[ inline]
222
- #[ rustc_inherit_overflow_checks]
223
218
fn add_one( & self ) -> Self {
224
- * self + 1
219
+ Add :: add ( * self , 1 ) ;
225
220
}
226
221
227
222
#[ inline]
228
- #[ rustc_inherit_overflow_checks]
229
223
fn sub_one( & self ) -> Self {
230
- * self - 1
224
+ Sub :: sub ( * self , 1 ) ;
231
225
}
232
226
233
227
#[ inline]
You can’t perform that action at this time.
0 commit comments