@@ -131,7 +131,8 @@ macro_rules! wrapping_impl {
131
131
Wrapping ( self . 0 . wrapping_add( other. 0 ) )
132
132
}
133
133
}
134
- forward_ref_binop! { impl Add , add for Wrapping <$t>, Wrapping <$t> }
134
+ forward_ref_binop! { impl Add , add for Wrapping <$t>, Wrapping <$t>,
135
+ #[ stable( feature = "wrapping_ref" , since = "1.14.0" ) ] }
135
136
136
137
#[ stable( feature = "op_assign_traits" , since = "1.8.0" ) ]
137
138
impl AddAssign for Wrapping <$t> {
@@ -150,7 +151,8 @@ macro_rules! wrapping_impl {
150
151
Wrapping ( self . 0 . wrapping_sub( other. 0 ) )
151
152
}
152
153
}
153
- forward_ref_binop! { impl Sub , sub for Wrapping <$t>, Wrapping <$t> }
154
+ forward_ref_binop! { impl Sub , sub for Wrapping <$t>, Wrapping <$t>,
155
+ #[ stable( feature = "wrapping_ref" , since = "1.14.0" ) ] }
154
156
155
157
#[ stable( feature = "op_assign_traits" , since = "1.8.0" ) ]
156
158
impl SubAssign for Wrapping <$t> {
@@ -169,7 +171,8 @@ macro_rules! wrapping_impl {
169
171
Wrapping ( self . 0 . wrapping_mul( other. 0 ) )
170
172
}
171
173
}
172
- forward_ref_binop! { impl Mul , mul for Wrapping <$t>, Wrapping <$t> }
174
+ forward_ref_binop! { impl Mul , mul for Wrapping <$t>, Wrapping <$t>,
175
+ #[ stable( feature = "wrapping_ref" , since = "1.14.0" ) ] }
173
176
174
177
#[ stable( feature = "op_assign_traits" , since = "1.8.0" ) ]
175
178
impl MulAssign for Wrapping <$t> {
@@ -188,7 +191,8 @@ macro_rules! wrapping_impl {
188
191
Wrapping ( self . 0 . wrapping_div( other. 0 ) )
189
192
}
190
193
}
191
- forward_ref_binop! { impl Div , div for Wrapping <$t>, Wrapping <$t> }
194
+ forward_ref_binop! { impl Div , div for Wrapping <$t>, Wrapping <$t>,
195
+ #[ stable( feature = "wrapping_ref" , since = "1.14.0" ) ] }
192
196
193
197
#[ stable( feature = "op_assign_traits" , since = "1.8.0" ) ]
194
198
impl DivAssign for Wrapping <$t> {
@@ -207,7 +211,8 @@ macro_rules! wrapping_impl {
207
211
Wrapping ( self . 0 . wrapping_rem( other. 0 ) )
208
212
}
209
213
}
210
- forward_ref_binop! { impl Rem , rem for Wrapping <$t>, Wrapping <$t> }
214
+ forward_ref_binop! { impl Rem , rem for Wrapping <$t>, Wrapping <$t>,
215
+ #[ stable( feature = "wrapping_ref" , since = "1.14.0" ) ] }
211
216
212
217
#[ stable( feature = "op_assign_traits" , since = "1.8.0" ) ]
213
218
impl RemAssign for Wrapping <$t> {
@@ -226,7 +231,8 @@ macro_rules! wrapping_impl {
226
231
Wrapping ( !self . 0 )
227
232
}
228
233
}
229
- forward_ref_unop! { impl Not , not for Wrapping <$t> }
234
+ forward_ref_unop! { impl Not , not for Wrapping <$t>,
235
+ #[ stable( feature = "wrapping_ref" , since = "1.14.0" ) ] }
230
236
231
237
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
232
238
impl BitXor for Wrapping <$t> {
@@ -237,7 +243,8 @@ macro_rules! wrapping_impl {
237
243
Wrapping ( self . 0 ^ other. 0 )
238
244
}
239
245
}
240
- forward_ref_binop! { impl BitXor , bitxor for Wrapping <$t>, Wrapping <$t> }
246
+ forward_ref_binop! { impl BitXor , bitxor for Wrapping <$t>, Wrapping <$t>,
247
+ #[ stable( feature = "wrapping_ref" , since = "1.14.0" ) ] }
241
248
242
249
#[ stable( feature = "op_assign_traits" , since = "1.8.0" ) ]
243
250
impl BitXorAssign for Wrapping <$t> {
@@ -256,7 +263,8 @@ macro_rules! wrapping_impl {
256
263
Wrapping ( self . 0 | other. 0 )
257
264
}
258
265
}
259
- forward_ref_binop! { impl BitOr , bitor for Wrapping <$t>, Wrapping <$t> }
266
+ forward_ref_binop! { impl BitOr , bitor for Wrapping <$t>, Wrapping <$t>,
267
+ #[ stable( feature = "wrapping_ref" , since = "1.14.0" ) ] }
260
268
261
269
#[ stable( feature = "op_assign_traits" , since = "1.8.0" ) ]
262
270
impl BitOrAssign for Wrapping <$t> {
@@ -275,7 +283,8 @@ macro_rules! wrapping_impl {
275
283
Wrapping ( self . 0 & other. 0 )
276
284
}
277
285
}
278
- forward_ref_binop! { impl BitAnd , bitand for Wrapping <$t>, Wrapping <$t> }
286
+ forward_ref_binop! { impl BitAnd , bitand for Wrapping <$t>, Wrapping <$t>,
287
+ #[ stable( feature = "wrapping_ref" , since = "1.14.0" ) ] }
279
288
280
289
#[ stable( feature = "op_assign_traits" , since = "1.8.0" ) ]
281
290
impl BitAndAssign for Wrapping <$t> {
@@ -293,7 +302,8 @@ macro_rules! wrapping_impl {
293
302
Wrapping ( 0 ) - self
294
303
}
295
304
}
296
- forward_ref_unop! { impl Neg , neg for Wrapping <$t> }
305
+ forward_ref_unop! { impl Neg , neg for Wrapping <$t>,
306
+ #[ stable( feature = "wrapping_ref" , since = "1.14.0" ) ] }
297
307
) * )
298
308
}
299
309
0 commit comments