]> git.lizzy.rs Git - rust.git/commitdiff
core::iter::repeat_with: tracking issue is #48169
authorMazdak Farrokhzad <twingoow@gmail.com>
Mon, 12 Feb 2018 20:47:59 +0000 (21:47 +0100)
committerMazdak Farrokhzad <twingoow@gmail.com>
Mon, 12 Feb 2018 20:47:59 +0000 (21:47 +0100)
src/libcore/iter/mod.rs
src/libcore/iter/sources.rs

index ac3fb5a57dd38e244c298dacc5a1cd7904dd5249..d929d1d65a91892a55d47305298b261ef2a151cc 100644 (file)
 
 #[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};
index abf2befa9cd1d7aa4f5406b406bfa1186114802f..eb8a22709b06e62491ed36d357f313ca8f594ffc 100644 (file)
@@ -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 @@ fn next(&mut self) -> Option<A> { Some((self.repeater)()) }
     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 }
 }