@@ -57,7 +57,6 @@ pub trait Step: Clone + PartialOrd + Sized {
57
57
///
58
58
/// * `Step::forward_checked(a, n) == (0..n).try_fold(a, |x, _| Step::forward_checked(&x, 1))`
59
59
/// * Corollary: `Step::forward_checked(&a, 0) == Some(a)`
60
- #[ unstable( feature = "step_trait_ext" , reason = "recently added" , issue = "42168" ) ]
61
60
fn forward_checked ( start : Self , count : usize ) -> Option < Self > ;
62
61
63
62
/// Returns the value that would be obtained by taking the *successor*
@@ -83,7 +82,6 @@ pub trait Step: Clone + PartialOrd + Sized {
83
82
/// * Corollary: `Step::forward(a, 0) == a`
84
83
/// * `Step::forward(a, n) >= a`
85
84
/// * `Step::backward(Step::forward(a, n), n) == a`
86
- #[ unstable( feature = "step_trait_ext" , reason = "recently added" , issue = "42168" ) ]
87
85
fn forward ( start : Self , count : usize ) -> Self {
88
86
Step :: forward_checked ( start, count) . expect ( "overflow in `Step::forward`" )
89
87
}
@@ -108,7 +106,6 @@ pub trait Step: Clone + PartialOrd + Sized {
108
106
/// For any `a` and `n`, where no overflow occurs:
109
107
///
110
108
/// * `Step::forward_unchecked(a, n)` is equivalent to `Step::forward(a, n)`
111
- #[ unstable( feature = "step_trait_ext" , reason = "recently added" , issue = "42168" ) ]
112
109
unsafe fn forward_unchecked ( start : Self , count : usize ) -> Self {
113
110
Step :: forward ( start, count)
114
111
}
@@ -129,7 +126,6 @@ pub trait Step: Clone + PartialOrd + Sized {
129
126
///
130
127
/// * `Step::backward_checked(a, n) == (0..n).try_fold(a, |x, _| Step::backward_checked(&x, 1))`
131
128
/// * Corollary: `Step::backward_checked(&a, 0) == Some(a)`
132
- #[ unstable( feature = "step_trait_ext" , reason = "recently added" , issue = "42168" ) ]
133
129
fn backward_checked ( start : Self , count : usize ) -> Option < Self > ;
134
130
135
131
/// Returns the value that would be obtained by taking the *predecessor*
@@ -155,7 +151,6 @@ pub trait Step: Clone + PartialOrd + Sized {
155
151
/// * Corollary: `Step::backward(a, 0) == a`
156
152
/// * `Step::backward(a, n) <= a`
157
153
/// * `Step::forward(Step::backward(a, n), n) == a`
158
- #[ unstable( feature = "step_trait_ext" , reason = "recently added" , issue = "42168" ) ]
159
154
fn backward ( start : Self , count : usize ) -> Self {
160
155
Step :: backward_checked ( start, count) . expect ( "overflow in `Step::backward`" )
161
156
}
@@ -180,7 +175,6 @@ pub trait Step: Clone + PartialOrd + Sized {
180
175
/// For any `a` and `n`, where no overflow occurs:
181
176
///
182
177
/// * `Step::backward_unchecked(a, n)` is equivalent to `Step::backward(a, n)`
183
- #[ unstable( feature = "step_trait_ext" , reason = "recently added" , issue = "42168" ) ]
184
178
unsafe fn backward_unchecked ( start : Self , count : usize ) -> Self {
185
179
Step :: backward ( start, count)
186
180
}
0 commit comments