Skip to content

Commit 91a4b90

Browse files
committed
core::iter::repeat_with: tracking issue is #48169
1 parent 9cee79a commit 91a4b90

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/libcore/iter/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ pub use self::range::Step;
333333

334334
#[stable(feature = "rust1", since = "1.0.0")]
335335
pub use self::sources::{Repeat, repeat};
336-
#[unstable(feature = "iterator_repeat_with", issue = "0")]
336+
#[unstable(feature = "iterator_repeat_with", issue = "48169")]
337337
pub use self::sources::{RepeatWith, repeat_with};
338338
#[stable(feature = "iter_empty", since = "1.2.0")]
339339
pub use self::sources::{Empty, empty};

src/libcore/iter/sources.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,12 @@ pub fn repeat<T: Clone>(elt: T) -> Repeat<T> {
113113
///
114114
/// [`repeat_with`]: fn.repeat_with.html
115115
#[derive(Copy, Clone, Debug)]
116-
#[unstable(feature = "iterator_repeat_with", issue = "0")]
116+
#[unstable(feature = "iterator_repeat_with", issue = "48169")]
117117
pub struct RepeatWith<F> {
118118
repeater: F
119119
}
120120

121-
#[unstable(feature = "iterator_repeat_with", issue = "0")]
121+
#[unstable(feature = "iterator_repeat_with", issue = "48169")]
122122
impl<A, F: FnMut() -> A> Iterator for RepeatWith<F> {
123123
type Item = A;
124124

@@ -129,7 +129,7 @@ impl<A, F: FnMut() -> A> Iterator for RepeatWith<F> {
129129
fn size_hint(&self) -> (usize, Option<usize>) { (usize::MAX, None) }
130130
}
131131

132-
#[unstable(feature = "iterator_repeat_with", issue = "0")]
132+
#[unstable(feature = "iterator_repeat_with", issue = "48169")]
133133
impl<A, F: FnMut() -> A> DoubleEndedIterator for RepeatWith<F> {
134134
#[inline]
135135
fn next_back(&mut self) -> Option<A> { self.next() }
@@ -209,7 +209,7 @@ unsafe impl<A, F: FnMut() -> A> TrustedLen for RepeatWith<F> {}
209209
/// assert_eq!(None, pow2.next());
210210
/// ```
211211
#[inline]
212-
#[unstable(feature = "iterator_repeat_with", issue = "0")]
212+
#[unstable(feature = "iterator_repeat_with", issue = "48169")]
213213
pub fn repeat_with<A, F: FnMut() -> A>(repeater: F) -> RepeatWith<F> {
214214
RepeatWith { repeater }
215215
}

0 commit comments

Comments
 (0)