@@ -131,7 +131,8 @@ macro_rules! wrapping_impl {
131131 Wrapping ( self . 0 . wrapping_add( other. 0 ) )
132132 }
133133 }
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" ) ] }
135136
136137 #[ stable( feature = "op_assign_traits" , since = "1.8.0" ) ]
137138 impl AddAssign for Wrapping <$t> {
@@ -150,7 +151,8 @@ macro_rules! wrapping_impl {
150151 Wrapping ( self . 0 . wrapping_sub( other. 0 ) )
151152 }
152153 }
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" ) ] }
154156
155157 #[ stable( feature = "op_assign_traits" , since = "1.8.0" ) ]
156158 impl SubAssign for Wrapping <$t> {
@@ -169,7 +171,8 @@ macro_rules! wrapping_impl {
169171 Wrapping ( self . 0 . wrapping_mul( other. 0 ) )
170172 }
171173 }
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" ) ] }
173176
174177 #[ stable( feature = "op_assign_traits" , since = "1.8.0" ) ]
175178 impl MulAssign for Wrapping <$t> {
@@ -188,7 +191,8 @@ macro_rules! wrapping_impl {
188191 Wrapping ( self . 0 . wrapping_div( other. 0 ) )
189192 }
190193 }
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" ) ] }
192196
193197 #[ stable( feature = "op_assign_traits" , since = "1.8.0" ) ]
194198 impl DivAssign for Wrapping <$t> {
@@ -207,7 +211,8 @@ macro_rules! wrapping_impl {
207211 Wrapping ( self . 0 . wrapping_rem( other. 0 ) )
208212 }
209213 }
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" ) ] }
211216
212217 #[ stable( feature = "op_assign_traits" , since = "1.8.0" ) ]
213218 impl RemAssign for Wrapping <$t> {
@@ -226,7 +231,8 @@ macro_rules! wrapping_impl {
226231 Wrapping ( !self . 0 )
227232 }
228233 }
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" ) ] }
230236
231237 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
232238 impl BitXor for Wrapping <$t> {
@@ -237,7 +243,8 @@ macro_rules! wrapping_impl {
237243 Wrapping ( self . 0 ^ other. 0 )
238244 }
239245 }
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" ) ] }
241248
242249 #[ stable( feature = "op_assign_traits" , since = "1.8.0" ) ]
243250 impl BitXorAssign for Wrapping <$t> {
@@ -256,7 +263,8 @@ macro_rules! wrapping_impl {
256263 Wrapping ( self . 0 | other. 0 )
257264 }
258265 }
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" ) ] }
260268
261269 #[ stable( feature = "op_assign_traits" , since = "1.8.0" ) ]
262270 impl BitOrAssign for Wrapping <$t> {
@@ -275,7 +283,8 @@ macro_rules! wrapping_impl {
275283 Wrapping ( self . 0 & other. 0 )
276284 }
277285 }
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" ) ] }
279288
280289 #[ stable( feature = "op_assign_traits" , since = "1.8.0" ) ]
281290 impl BitAndAssign for Wrapping <$t> {
@@ -293,7 +302,8 @@ macro_rules! wrapping_impl {
293302 Wrapping ( 0 ) - self
294303 }
295304 }
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" ) ] }
297307 ) * )
298308}
299309
0 commit comments