Skip to content

Commit d95d3a8

Browse files
committed
Fix Step feature flag, make tidy lint more useful to find things like this
1 parent 0f6e31b commit d95d3a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/iter/range.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ pub unsafe trait Step: Clone + PartialOrd + Sized {
106106
/// For any `a` and `n`, where no overflow occurs:
107107
///
108108
/// * `Step::forward_unchecked(a, n)` is equivalent to `Step::forward(a, n)`
109-
#[unstable(feature = "unchecked_math", reason = "niche optimization path", issue = "none")]
109+
#[unstable(feature = "step_trait_ext", reason = "recently added", issue = "42168")]
110110
unsafe fn forward_unchecked(start: Self, count: usize) -> Self {
111111
Step::forward(start, count)
112112
}
@@ -178,7 +178,7 @@ pub unsafe trait Step: Clone + PartialOrd + Sized {
178178
/// For any `a` and `n`, where no overflow occurs:
179179
///
180180
/// * `Step::backward_unchecked(a, n)` is equivalent to `Step::backward(a, n)`
181-
#[unstable(feature = "unchecked_math", reason = "niche optimization path", issue = "none")]
181+
#[unstable(feature = "step_trait_ext", reason = "recently added", issue = "42168")]
182182
unsafe fn backward_unchecked(start: Self, count: usize) -> Self {
183183
Step::backward(start, count)
184184
}

0 commit comments

Comments
 (0)