@@ -1112,7 +1112,13 @@ $EndFeature, "
1112
1112
without modifying the original"]
1113
1113
#[ inline]
1114
1114
pub const fn wrapping_add( self , rhs: Self ) -> Self {
1115
- intrinsics:: overflowing_add( self , rhs)
1115
+ #[ cfg( boostrap_stdarch_ignore_this) ] {
1116
+ intrinsics:: overflowing_add( self , rhs)
1117
+ }
1118
+
1119
+ #[ cfg( not( boostrap_stdarch_ignore_this) ) ] {
1120
+ intrinsics:: wrapping_add( self , rhs)
1121
+ }
1116
1122
}
1117
1123
}
1118
1124
@@ -1135,7 +1141,13 @@ $EndFeature, "
1135
1141
without modifying the original"]
1136
1142
#[ inline]
1137
1143
pub const fn wrapping_sub( self , rhs: Self ) -> Self {
1138
- intrinsics:: overflowing_sub( self , rhs)
1144
+ #[ cfg( boostrap_stdarch_ignore_this) ] {
1145
+ intrinsics:: overflowing_sub( self , rhs)
1146
+ }
1147
+
1148
+ #[ cfg( not( boostrap_stdarch_ignore_this) ) ] {
1149
+ intrinsics:: wrapping_sub( self , rhs)
1150
+ }
1139
1151
}
1140
1152
}
1141
1153
@@ -1157,7 +1169,13 @@ $EndFeature, "
1157
1169
without modifying the original"]
1158
1170
#[ inline]
1159
1171
pub const fn wrapping_mul( self , rhs: Self ) -> Self {
1160
- intrinsics:: overflowing_mul( self , rhs)
1172
+ #[ cfg( boostrap_stdarch_ignore_this) ] {
1173
+ intrinsics:: overflowing_mul( self , rhs)
1174
+ }
1175
+
1176
+ #[ cfg( not( boostrap_stdarch_ignore_this) ) ] {
1177
+ intrinsics:: wrapping_mul( self , rhs)
1178
+ }
1161
1179
}
1162
1180
}
1163
1181
@@ -3031,7 +3049,13 @@ $EndFeature, "
3031
3049
without modifying the original"]
3032
3050
#[ inline]
3033
3051
pub const fn wrapping_add( self , rhs: Self ) -> Self {
3034
- intrinsics:: overflowing_add( self , rhs)
3052
+ #[ cfg( boostrap_stdarch_ignore_this) ] {
3053
+ intrinsics:: overflowing_add( self , rhs)
3054
+ }
3055
+
3056
+ #[ cfg( not( boostrap_stdarch_ignore_this) ) ] {
3057
+ intrinsics:: wrapping_add( self , rhs)
3058
+ }
3035
3059
}
3036
3060
}
3037
3061
@@ -3053,7 +3077,13 @@ $EndFeature, "
3053
3077
without modifying the original"]
3054
3078
#[ inline]
3055
3079
pub const fn wrapping_sub( self , rhs: Self ) -> Self {
3056
- intrinsics:: overflowing_sub( self , rhs)
3080
+ #[ cfg( boostrap_stdarch_ignore_this) ] {
3081
+ intrinsics:: overflowing_sub( self , rhs)
3082
+ }
3083
+
3084
+ #[ cfg( not( boostrap_stdarch_ignore_this) ) ] {
3085
+ intrinsics:: wrapping_sub( self , rhs)
3086
+ }
3057
3087
}
3058
3088
}
3059
3089
@@ -3076,7 +3106,13 @@ $EndFeature, "
3076
3106
without modifying the original"]
3077
3107
#[ inline]
3078
3108
pub const fn wrapping_mul( self , rhs: Self ) -> Self {
3079
- intrinsics:: overflowing_mul( self , rhs)
3109
+ #[ cfg( boostrap_stdarch_ignore_this) ] {
3110
+ intrinsics:: overflowing_mul( self , rhs)
3111
+ }
3112
+
3113
+ #[ cfg( not( boostrap_stdarch_ignore_this) ) ] {
3114
+ intrinsics:: wrapping_mul( self , rhs)
3115
+ }
3080
3116
}
3081
3117
3082
3118
doc_comment! {
0 commit comments