Skip to content

Commit d8d1462

Browse files
committed
remove overflow checks
1 parent 55d7776 commit d8d1462

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

library/core/src/iter/traits/accum.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ macro_rules! saturating_integer_sum_product {
106106
fn sum<I: Iterator<Item=Self>>(iter: I) -> Self {
107107
iter.fold(
108108
$zero,
109-
#[rustc_inherit_overflow_checks]
110109
|a, b| a + b,
111110
)
112111
}
@@ -118,7 +117,6 @@ macro_rules! saturating_integer_sum_product {
118117
fn product<I: Iterator<Item=Self>>(iter: I) -> Self {
119118
iter.fold(
120119
$one,
121-
#[rustc_inherit_overflow_checks]
122120
|a, b| a * b,
123121
)
124122
}
@@ -130,7 +128,6 @@ macro_rules! saturating_integer_sum_product {
130128
fn sum<I: Iterator<Item=&'a Self>>(iter: I) -> Self {
131129
iter.fold(
132130
$zero,
133-
#[rustc_inherit_overflow_checks]
134131
|a, b| a + b,
135132
)
136133
}
@@ -142,7 +139,6 @@ macro_rules! saturating_integer_sum_product {
142139
fn product<I: Iterator<Item=&'a Self>>(iter: I) -> Self {
143140
iter.fold(
144141
$one,
145-
#[rustc_inherit_overflow_checks]
146142
|a, b| a * b,
147143
)
148144
}

0 commit comments

Comments
 (0)