diff options
| -rw-r--r-- | src/libcore/iter/mod.rs | 2 | ||||
| -rw-r--r-- | src/libcore/iter/sources.rs | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/libcore/iter/mod.rs b/src/libcore/iter/mod.rs index ac3fb5a57dd..d929d1d65a9 100644 --- a/src/libcore/iter/mod.rs +++ b/src/libcore/iter/mod.rs @@ -333,7 +333,7 @@ pub use self::range::Step; #[stable(feature = "rust1", since = "1.0.0")] pub use self::sources::{Repeat, repeat}; -#[unstable(feature = "iterator_repeat_with", issue = "0")] +#[unstable(feature = "iterator_repeat_with", issue = "48169")] pub use self::sources::{RepeatWith, repeat_with}; #[stable(feature = "iter_empty", since = "1.2.0")] pub use self::sources::{Empty, empty}; diff --git a/src/libcore/iter/sources.rs b/src/libcore/iter/sources.rs index abf2befa9cd..eb8a22709b0 100644 --- a/src/libcore/iter/sources.rs +++ b/src/libcore/iter/sources.rs @@ -113,12 +113,12 @@ pub fn repeat<T: Clone>(elt: T) -> Repeat<T> { /// /// [`repeat_with`]: fn.repeat_with.html #[derive(Copy, Clone, Debug)] -#[unstable(feature = "iterator_repeat_with", issue = "0")] +#[unstable(feature = "iterator_repeat_with", issue = "48169")] pub struct RepeatWith<F> { repeater: F } -#[unstable(feature = "iterator_repeat_with", issue = "0")] +#[unstable(feature = "iterator_repeat_with", issue = "48169")] impl<A, F: FnMut() -> A> Iterator for RepeatWith<F> { type Item = A; @@ -129,7 +129,7 @@ impl<A, F: FnMut() -> A> Iterator for RepeatWith<F> { fn size_hint(&self) -> (usize, Option<usize>) { (usize::MAX, None) } } -#[unstable(feature = "iterator_repeat_with", issue = "0")] +#[unstable(feature = "iterator_repeat_with", issue = "48169")] impl<A, F: FnMut() -> A> DoubleEndedIterator for RepeatWith<F> { #[inline] fn next_back(&mut self) -> Option<A> { self.next() } @@ -209,7 +209,7 @@ unsafe impl<A, F: FnMut() -> A> TrustedLen for RepeatWith<F> {} /// assert_eq!(None, pow2.next()); /// ``` #[inline] -#[unstable(feature = "iterator_repeat_with", issue = "0")] +#[unstable(feature = "iterator_repeat_with", issue = "48169")] pub fn repeat_with<A, F: FnMut() -> A>(repeater: F) -> RepeatWith<F> { RepeatWith { repeater } } |
