@@ -19,7 +19,7 @@ macro_rules! sh_impl_signed {
19
19
impl Shl <$f> for Wrapping <$t> {
20
20
type Output = Wrapping <$t>;
21
21
22
- #[ inline( always ) ]
22
+ #[ inline]
23
23
fn shl( self , other: $f) -> Wrapping <$t> {
24
24
if other < 0 {
25
25
Wrapping ( self . 0 . wrapping_shr( ( -other & self :: shift_max:: $t as $f) as u32 ) )
@@ -31,7 +31,7 @@ macro_rules! sh_impl_signed {
31
31
32
32
#[ stable( feature = "op_assign_traits" , since = "1.8.0" ) ]
33
33
impl ShlAssign <$f> for Wrapping <$t> {
34
- #[ inline( always ) ]
34
+ #[ inline]
35
35
fn shl_assign( & mut self , other: $f) {
36
36
* self = * self << other;
37
37
}
@@ -41,7 +41,7 @@ macro_rules! sh_impl_signed {
41
41
impl Shr <$f> for Wrapping <$t> {
42
42
type Output = Wrapping <$t>;
43
43
44
- #[ inline( always ) ]
44
+ #[ inline]
45
45
fn shr( self , other: $f) -> Wrapping <$t> {
46
46
if other < 0 {
47
47
Wrapping ( self . 0 . wrapping_shl( ( -other & self :: shift_max:: $t as $f) as u32 ) )
@@ -53,7 +53,7 @@ macro_rules! sh_impl_signed {
53
53
54
54
#[ stable( feature = "op_assign_traits" , since = "1.8.0" ) ]
55
55
impl ShrAssign <$f> for Wrapping <$t> {
56
- #[ inline( always ) ]
56
+ #[ inline]
57
57
fn shr_assign( & mut self , other: $f) {
58
58
* self = * self >> other;
59
59
}
@@ -67,15 +67,15 @@ macro_rules! sh_impl_unsigned {
67
67
impl Shl <$f> for Wrapping <$t> {
68
68
type Output = Wrapping <$t>;
69
69
70
- #[ inline( always ) ]
70
+ #[ inline]
71
71
fn shl( self , other: $f) -> Wrapping <$t> {
72
72
Wrapping ( self . 0 . wrapping_shl( ( other & self :: shift_max:: $t as $f) as u32 ) )
73
73
}
74
74
}
75
75
76
76
#[ stable( feature = "op_assign_traits" , since = "1.8.0" ) ]
77
77
impl ShlAssign <$f> for Wrapping <$t> {
78
- #[ inline( always ) ]
78
+ #[ inline]
79
79
fn shl_assign( & mut self , other: $f) {
80
80
* self = * self << other;
81
81
}
@@ -85,15 +85,15 @@ macro_rules! sh_impl_unsigned {
85
85
impl Shr <$f> for Wrapping <$t> {
86
86
type Output = Wrapping <$t>;
87
87
88
- #[ inline( always ) ]
88
+ #[ inline]
89
89
fn shr( self , other: $f) -> Wrapping <$t> {
90
90
Wrapping ( self . 0 . wrapping_shr( ( other & self :: shift_max:: $t as $f) as u32 ) )
91
91
}
92
92
}
93
93
94
94
#[ stable( feature = "op_assign_traits" , since = "1.8.0" ) ]
95
95
impl ShrAssign <$f> for Wrapping <$t> {
96
- #[ inline( always ) ]
96
+ #[ inline]
97
97
fn shr_assign( & mut self , other: $f) {
98
98
* self = * self >> other;
99
99
}
@@ -127,7 +127,7 @@ macro_rules! wrapping_impl {
127
127
impl Add for Wrapping <$t> {
128
128
type Output = Wrapping <$t>;
129
129
130
- #[ inline( always ) ]
130
+ #[ inline]
131
131
fn add( self , other: Wrapping <$t>) -> Wrapping <$t> {
132
132
Wrapping ( self . 0 . wrapping_add( other. 0 ) )
133
133
}
@@ -137,7 +137,7 @@ macro_rules! wrapping_impl {
137
137
138
138
#[ stable( feature = "op_assign_traits" , since = "1.8.0" ) ]
139
139
impl AddAssign for Wrapping <$t> {
140
- #[ inline( always ) ]
140
+ #[ inline]
141
141
fn add_assign( & mut self , other: Wrapping <$t>) {
142
142
* self = * self + other;
143
143
}
@@ -147,7 +147,7 @@ macro_rules! wrapping_impl {
147
147
impl Sub for Wrapping <$t> {
148
148
type Output = Wrapping <$t>;
149
149
150
- #[ inline( always ) ]
150
+ #[ inline]
151
151
fn sub( self , other: Wrapping <$t>) -> Wrapping <$t> {
152
152
Wrapping ( self . 0 . wrapping_sub( other. 0 ) )
153
153
}
@@ -157,7 +157,7 @@ macro_rules! wrapping_impl {
157
157
158
158
#[ stable( feature = "op_assign_traits" , since = "1.8.0" ) ]
159
159
impl SubAssign for Wrapping <$t> {
160
- #[ inline( always ) ]
160
+ #[ inline]
161
161
fn sub_assign( & mut self , other: Wrapping <$t>) {
162
162
* self = * self - other;
163
163
}
@@ -167,7 +167,7 @@ macro_rules! wrapping_impl {
167
167
impl Mul for Wrapping <$t> {
168
168
type Output = Wrapping <$t>;
169
169
170
- #[ inline( always ) ]
170
+ #[ inline]
171
171
fn mul( self , other: Wrapping <$t>) -> Wrapping <$t> {
172
172
Wrapping ( self . 0 . wrapping_mul( other. 0 ) )
173
173
}
@@ -177,7 +177,7 @@ macro_rules! wrapping_impl {
177
177
178
178
#[ stable( feature = "op_assign_traits" , since = "1.8.0" ) ]
179
179
impl MulAssign for Wrapping <$t> {
180
- #[ inline( always ) ]
180
+ #[ inline]
181
181
fn mul_assign( & mut self , other: Wrapping <$t>) {
182
182
* self = * self * other;
183
183
}
@@ -187,7 +187,7 @@ macro_rules! wrapping_impl {
187
187
impl Div for Wrapping <$t> {
188
188
type Output = Wrapping <$t>;
189
189
190
- #[ inline( always ) ]
190
+ #[ inline]
191
191
fn div( self , other: Wrapping <$t>) -> Wrapping <$t> {
192
192
Wrapping ( self . 0 . wrapping_div( other. 0 ) )
193
193
}
@@ -197,7 +197,7 @@ macro_rules! wrapping_impl {
197
197
198
198
#[ stable( feature = "op_assign_traits" , since = "1.8.0" ) ]
199
199
impl DivAssign for Wrapping <$t> {
200
- #[ inline( always ) ]
200
+ #[ inline]
201
201
fn div_assign( & mut self , other: Wrapping <$t>) {
202
202
* self = * self / other;
203
203
}
@@ -207,7 +207,7 @@ macro_rules! wrapping_impl {
207
207
impl Rem for Wrapping <$t> {
208
208
type Output = Wrapping <$t>;
209
209
210
- #[ inline( always ) ]
210
+ #[ inline]
211
211
fn rem( self , other: Wrapping <$t>) -> Wrapping <$t> {
212
212
Wrapping ( self . 0 . wrapping_rem( other. 0 ) )
213
213
}
@@ -217,7 +217,7 @@ macro_rules! wrapping_impl {
217
217
218
218
#[ stable( feature = "op_assign_traits" , since = "1.8.0" ) ]
219
219
impl RemAssign for Wrapping <$t> {
220
- #[ inline( always ) ]
220
+ #[ inline]
221
221
fn rem_assign( & mut self , other: Wrapping <$t>) {
222
222
* self = * self % other;
223
223
}
@@ -227,7 +227,7 @@ macro_rules! wrapping_impl {
227
227
impl Not for Wrapping <$t> {
228
228
type Output = Wrapping <$t>;
229
229
230
- #[ inline( always ) ]
230
+ #[ inline]
231
231
fn not( self ) -> Wrapping <$t> {
232
232
Wrapping ( !self . 0 )
233
233
}
@@ -239,7 +239,7 @@ macro_rules! wrapping_impl {
239
239
impl BitXor for Wrapping <$t> {
240
240
type Output = Wrapping <$t>;
241
241
242
- #[ inline( always ) ]
242
+ #[ inline]
243
243
fn bitxor( self , other: Wrapping <$t>) -> Wrapping <$t> {
244
244
Wrapping ( self . 0 ^ other. 0 )
245
245
}
@@ -249,7 +249,7 @@ macro_rules! wrapping_impl {
249
249
250
250
#[ stable( feature = "op_assign_traits" , since = "1.8.0" ) ]
251
251
impl BitXorAssign for Wrapping <$t> {
252
- #[ inline( always ) ]
252
+ #[ inline]
253
253
fn bitxor_assign( & mut self , other: Wrapping <$t>) {
254
254
* self = * self ^ other;
255
255
}
@@ -259,7 +259,7 @@ macro_rules! wrapping_impl {
259
259
impl BitOr for Wrapping <$t> {
260
260
type Output = Wrapping <$t>;
261
261
262
- #[ inline( always ) ]
262
+ #[ inline]
263
263
fn bitor( self , other: Wrapping <$t>) -> Wrapping <$t> {
264
264
Wrapping ( self . 0 | other. 0 )
265
265
}
@@ -269,7 +269,7 @@ macro_rules! wrapping_impl {
269
269
270
270
#[ stable( feature = "op_assign_traits" , since = "1.8.0" ) ]
271
271
impl BitOrAssign for Wrapping <$t> {
272
- #[ inline( always ) ]
272
+ #[ inline]
273
273
fn bitor_assign( & mut self , other: Wrapping <$t>) {
274
274
* self = * self | other;
275
275
}
@@ -279,7 +279,7 @@ macro_rules! wrapping_impl {
279
279
impl BitAnd for Wrapping <$t> {
280
280
type Output = Wrapping <$t>;
281
281
282
- #[ inline( always ) ]
282
+ #[ inline]
283
283
fn bitand( self , other: Wrapping <$t>) -> Wrapping <$t> {
284
284
Wrapping ( self . 0 & other. 0 )
285
285
}
@@ -289,7 +289,7 @@ macro_rules! wrapping_impl {
289
289
290
290
#[ stable( feature = "op_assign_traits" , since = "1.8.0" ) ]
291
291
impl BitAndAssign for Wrapping <$t> {
292
- #[ inline( always ) ]
292
+ #[ inline]
293
293
fn bitand_assign( & mut self , other: Wrapping <$t>) {
294
294
* self = * self & other;
295
295
}
@@ -298,7 +298,7 @@ macro_rules! wrapping_impl {
298
298
#[ stable( feature = "wrapping_neg" , since = "1.10.0" ) ]
299
299
impl Neg for Wrapping <$t> {
300
300
type Output = Self ;
301
- #[ inline( always ) ]
301
+ #[ inline]
302
302
fn neg( self ) -> Self {
303
303
Wrapping ( 0 ) - self
304
304
}
0 commit comments