We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d41de3f commit 583e475Copy full SHA for 583e475
library/core/src/iter/adapters/step_by.rs
@@ -49,7 +49,6 @@ impl<I> StepBy<I> {
49
/// The `step` that was originally passed to `Iterator::step_by(step)`,
50
/// aka `self.step_minus_one + 1`.
51
#[inline]
52
- #[requires(self.step_minus_one != usize::MAX)]
53
fn original_step(&self) -> NonZero<usize> {
54
// SAFETY: By type invariant, `step_minus_one` cannot be `MAX`, which
55
// means the addition cannot overflow and the result cannot be zero.
0 commit comments