File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed
library/core/src/iter/traits Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,6 @@ macro_rules! saturating_integer_sum_product {
106
106
fn sum<I : Iterator <Item =Self >>( iter: I ) -> Self {
107
107
iter. fold(
108
108
$zero,
109
- #[ rustc_inherit_overflow_checks]
110
109
|a, b| a + b,
111
110
)
112
111
}
@@ -118,7 +117,6 @@ macro_rules! saturating_integer_sum_product {
118
117
fn product<I : Iterator <Item =Self >>( iter: I ) -> Self {
119
118
iter. fold(
120
119
$one,
121
- #[ rustc_inherit_overflow_checks]
122
120
|a, b| a * b,
123
121
)
124
122
}
@@ -130,7 +128,6 @@ macro_rules! saturating_integer_sum_product {
130
128
fn sum<I : Iterator <Item =& ' a Self >>( iter: I ) -> Self {
131
129
iter. fold(
132
130
$zero,
133
- #[ rustc_inherit_overflow_checks]
134
131
|a, b| a + b,
135
132
)
136
133
}
@@ -142,7 +139,6 @@ macro_rules! saturating_integer_sum_product {
142
139
fn product<I : Iterator <Item =& ' a Self >>( iter: I ) -> Self {
143
140
iter. fold(
144
141
$one,
145
- #[ rustc_inherit_overflow_checks]
146
142
|a, b| a * b,
147
143
)
148
144
}
You can’t perform that action at this time.
0 commit comments