Skip to content

Commit 583e475

Browse files
authored
Update library/core/src/iter/adapters/step_by.rs
1 parent d41de3f commit 583e475

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

library/core/src/iter/adapters/step_by.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ impl<I> StepBy<I> {
4949
/// The `step` that was originally passed to `Iterator::step_by(step)`,
5050
/// aka `self.step_minus_one + 1`.
5151
#[inline]
52-
#[requires(self.step_minus_one != usize::MAX)]
5352
fn original_step(&self) -> NonZero<usize> {
5453
// SAFETY: By type invariant, `step_minus_one` cannot be `MAX`, which
5554
// means the addition cannot overflow and the result cannot be zero.

0 commit comments

Comments
 (0)