We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0491e74 commit f238148Copy full SHA for f238148
library/core/src/iter/range.rs
@@ -200,6 +200,7 @@ macro_rules! step_identical_methods {
200
}
201
202
#[inline]
203
+ #[allow(arithmetic_overflow)]
204
fn forward(start: Self, n: usize) -> Self {
205
// In debug builds, trigger a panic on overflow.
206
// This should optimize completely out in release builds.
@@ -211,6 +212,7 @@ macro_rules! step_identical_methods {
211
212
213
214
215
216
fn backward(start: Self, n: usize) -> Self {
217
218
0 commit comments