@@ -95,8 +95,8 @@ macro_rules! add_impl {
95
95
impl Add for $t {
96
96
type Output = $t;
97
97
98
- #[ inline]
99
98
#[ rustc_inherit_overflow_checks]
99
+ #[ inline( always) ]
100
100
fn add( self , other: $t) -> $t { self + other }
101
101
}
102
102
@@ -193,7 +193,7 @@ macro_rules! sub_impl {
193
193
impl Sub for $t {
194
194
type Output = $t;
195
195
196
- #[ inline]
196
+ #[ inline( always ) ]
197
197
#[ rustc_inherit_overflow_checks]
198
198
fn sub( self , other: $t) -> $t { self - other }
199
199
}
@@ -313,7 +313,7 @@ macro_rules! mul_impl {
313
313
impl Mul for $t {
314
314
type Output = $t;
315
315
316
- #[ inline]
316
+ #[ inline( always ) ]
317
317
#[ rustc_inherit_overflow_checks]
318
318
fn mul( self , other: $t) -> $t { self * other }
319
319
}
@@ -439,7 +439,7 @@ macro_rules! div_impl_integer {
439
439
impl Div for $t {
440
440
type Output = $t;
441
441
442
- #[ inline]
442
+ #[ inline( always ) ]
443
443
fn div( self , other: $t) -> $t { self / other }
444
444
}
445
445
@@ -455,7 +455,7 @@ macro_rules! div_impl_float {
455
455
impl Div for $t {
456
456
type Output = $t;
457
457
458
- #[ inline]
458
+ #[ inline( always ) ]
459
459
fn div( self , other: $t) -> $t { self / other }
460
460
}
461
461
@@ -524,7 +524,7 @@ macro_rules! rem_impl_integer {
524
524
impl Rem for $t {
525
525
type Output = $t;
526
526
527
- #[ inline]
527
+ #[ inline( always ) ]
528
528
fn rem( self , other: $t) -> $t { self % other }
529
529
}
530
530
@@ -556,7 +556,7 @@ macro_rules! rem_impl_float {
556
556
impl Rem for $t {
557
557
type Output = $t;
558
558
559
- #[ inline]
559
+ #[ inline( always ) ]
560
560
fn rem( self , other: $t) -> $t { self % other }
561
561
}
562
562
@@ -624,7 +624,7 @@ macro_rules! neg_impl_core {
624
624
impl Neg for $t {
625
625
type Output = $t;
626
626
627
- #[ inline]
627
+ #[ inline( always ) ]
628
628
#[ rustc_inherit_overflow_checks]
629
629
fn neg( self ) -> $t { let $id = self ; $body }
630
630
}
@@ -693,7 +693,7 @@ macro_rules! add_assign_impl {
693
693
( $( $t: ty) +) => ( $(
694
694
#[ stable( feature = "op_assign_traits" , since = "1.8.0" ) ]
695
695
impl AddAssign for $t {
696
- #[ inline]
696
+ #[ inline( always ) ]
697
697
#[ rustc_inherit_overflow_checks]
698
698
fn add_assign( & mut self , other: $t) { * self += other }
699
699
}
@@ -749,7 +749,7 @@ macro_rules! sub_assign_impl {
749
749
( $( $t: ty) +) => ( $(
750
750
#[ stable( feature = "op_assign_traits" , since = "1.8.0" ) ]
751
751
impl SubAssign for $t {
752
- #[ inline]
752
+ #[ inline( always ) ]
753
753
#[ rustc_inherit_overflow_checks]
754
754
fn sub_assign( & mut self , other: $t) { * self -= other }
755
755
}
@@ -796,7 +796,7 @@ macro_rules! mul_assign_impl {
796
796
( $( $t: ty) +) => ( $(
797
797
#[ stable( feature = "op_assign_traits" , since = "1.8.0" ) ]
798
798
impl MulAssign for $t {
799
- #[ inline]
799
+ #[ inline( always ) ]
800
800
#[ rustc_inherit_overflow_checks]
801
801
fn mul_assign( & mut self , other: $t) { * self *= other }
802
802
}
@@ -843,7 +843,7 @@ macro_rules! div_assign_impl {
843
843
( $( $t: ty) +) => ( $(
844
844
#[ stable( feature = "op_assign_traits" , since = "1.8.0" ) ]
845
845
impl DivAssign for $t {
846
- #[ inline]
846
+ #[ inline( always ) ]
847
847
fn div_assign( & mut self , other: $t) { * self /= other }
848
848
}
849
849
@@ -893,7 +893,7 @@ macro_rules! rem_assign_impl {
893
893
( $( $t: ty) +) => ( $(
894
894
#[ stable( feature = "op_assign_traits" , since = "1.8.0" ) ]
895
895
impl RemAssign for $t {
896
- #[ inline]
896
+ #[ inline( always ) ]
897
897
fn rem_assign( & mut self , other: $t) { * self %= other }
898
898
}
899
899
0 commit comments