@@ -56,7 +56,7 @@ use crate::num::NonZero;
56
56
/// assert_eq!(None, it.next());
57
57
/// ```
58
58
#[ inline]
59
- #[ stable( feature = "iter_repeat_n" , since = "CURRENT_RUSTC_VERSION " ) ]
59
+ #[ stable( feature = "iter_repeat_n" , since = "1.82.0 " ) ]
60
60
pub fn repeat_n < T : Clone > ( element : T , count : usize ) -> RepeatN < T > {
61
61
let mut element = ManuallyDrop :: new ( element) ;
62
62
@@ -75,7 +75,7 @@ pub fn repeat_n<T: Clone>(element: T, count: usize) -> RepeatN<T> {
75
75
/// This `struct` is created by the [`repeat_n()`] function.
76
76
/// See its documentation for more.
77
77
#[ derive( Clone , Debug ) ]
78
- #[ stable( feature = "iter_repeat_n" , since = "CURRENT_RUSTC_VERSION " ) ]
78
+ #[ stable( feature = "iter_repeat_n" , since = "1.82.0 " ) ]
79
79
pub struct RepeatN < A > {
80
80
count : usize ,
81
81
// Invariant: has been dropped iff count == 0.
@@ -99,14 +99,14 @@ impl<A> RepeatN<A> {
99
99
}
100
100
}
101
101
102
- #[ stable( feature = "iter_repeat_n" , since = "CURRENT_RUSTC_VERSION " ) ]
102
+ #[ stable( feature = "iter_repeat_n" , since = "1.82.0 " ) ]
103
103
impl < A > Drop for RepeatN < A > {
104
104
fn drop ( & mut self ) {
105
105
self . take_element ( ) ;
106
106
}
107
107
}
108
108
109
- #[ stable( feature = "iter_repeat_n" , since = "CURRENT_RUSTC_VERSION " ) ]
109
+ #[ stable( feature = "iter_repeat_n" , since = "1.82.0 " ) ]
110
110
impl < A : Clone > Iterator for RepeatN < A > {
111
111
type Item = A ;
112
112
@@ -154,14 +154,14 @@ impl<A: Clone> Iterator for RepeatN<A> {
154
154
}
155
155
}
156
156
157
- #[ stable( feature = "iter_repeat_n" , since = "CURRENT_RUSTC_VERSION " ) ]
157
+ #[ stable( feature = "iter_repeat_n" , since = "1.82.0 " ) ]
158
158
impl < A : Clone > ExactSizeIterator for RepeatN < A > {
159
159
fn len ( & self ) -> usize {
160
160
self . count
161
161
}
162
162
}
163
163
164
- #[ stable( feature = "iter_repeat_n" , since = "CURRENT_RUSTC_VERSION " ) ]
164
+ #[ stable( feature = "iter_repeat_n" , since = "1.82.0 " ) ]
165
165
impl < A : Clone > DoubleEndedIterator for RepeatN < A > {
166
166
#[ inline]
167
167
fn next_back ( & mut self ) -> Option < A > {
@@ -179,12 +179,12 @@ impl<A: Clone> DoubleEndedIterator for RepeatN<A> {
179
179
}
180
180
}
181
181
182
- #[ stable( feature = "iter_repeat_n" , since = "CURRENT_RUSTC_VERSION " ) ]
182
+ #[ stable( feature = "iter_repeat_n" , since = "1.82.0 " ) ]
183
183
impl < A : Clone > FusedIterator for RepeatN < A > { }
184
184
185
185
#[ unstable( feature = "trusted_len" , issue = "37572" ) ]
186
186
unsafe impl < A : Clone > TrustedLen for RepeatN < A > { }
187
- #[ stable( feature = "iter_repeat_n" , since = "CURRENT_RUSTC_VERSION " ) ]
187
+ #[ stable( feature = "iter_repeat_n" , since = "1.82.0 " ) ]
188
188
impl < A : Clone > UncheckedIterator for RepeatN < A > {
189
189
#[ inline]
190
190
unsafe fn next_unchecked ( & mut self ) -> Self :: Item {
0 commit comments