From 8a5bbd9a4e85e1383b87796f871a9020410bbd10 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Thu, 15 Nov 2018 14:33:47 +0100 Subject: [PATCH] Add tracking issue for unfold and successors --- src/libcore/iter/mod.rs | 2 +- src/libcore/iter/sources.rs | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/libcore/iter/mod.rs b/src/libcore/iter/mod.rs index 5f45cd927b897..8ae4b53da95be 100644 --- a/src/libcore/iter/mod.rs +++ b/src/libcore/iter/mod.rs @@ -339,7 +339,7 @@ pub use self::sources::{RepeatWith, repeat_with}; pub use self::sources::{Empty, empty}; #[stable(feature = "iter_once", since = "1.2.0")] pub use self::sources::{Once, once}; -#[unstable(feature = "iter_unfold", issue = /* FIXME */ "0")] +#[unstable(feature = "iter_unfold", issue = "55977")] pub use self::sources::{Unfold, unfold, Successors, successors}; #[stable(feature = "rust1", since = "1.0.0")] diff --git a/src/libcore/iter/sources.rs b/src/libcore/iter/sources.rs index 7f55965239222..6d35d54641531 100644 --- a/src/libcore/iter/sources.rs +++ b/src/libcore/iter/sources.rs @@ -428,7 +428,7 @@ pub fn once(value: T) -> Once { /// assert_eq!(counter.collect::>(), &[1, 2, 3, 4, 5]); /// ``` #[inline] -#[unstable(feature = "iter_unfold", issue = /* FIXME */ "0")] +#[unstable(feature = "iter_unfold", issue = "55977")] pub fn unfold(initial_state: St, f: F) -> Unfold where F: FnMut(&mut St) -> Option { @@ -445,13 +445,13 @@ pub fn unfold(initial_state: St, f: F) -> Unfold /// /// [`unfold`]: fn.unfold.html #[derive(Clone)] -#[unstable(feature = "iter_unfold", issue = /* FIXME */ "0")] +#[unstable(feature = "iter_unfold", issue = "55977")] pub struct Unfold { state: St, f: F, } -#[unstable(feature = "iter_unfold", issue = /* FIXME */ "0")] +#[unstable(feature = "iter_unfold", issue = "55977")] impl Iterator for Unfold where F: FnMut(&mut St) -> Option { @@ -463,7 +463,7 @@ impl Iterator for Unfold } } -#[unstable(feature = "iter_unfold", issue = /* FIXME */ "0")] +#[unstable(feature = "iter_unfold", issue = "55977")] impl fmt::Debug for Unfold { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { f.debug_struct("Unfold") @@ -484,7 +484,7 @@ impl fmt::Debug for Unfold { /// let powers_of_10 = successors(Some(1_u16), |n| n.checked_mul(10)); /// assert_eq!(powers_of_10.collect::>(), &[1, 10, 100, 1_000, 10_000]); /// ``` -#[unstable(feature = "iter_unfold", issue = /* FIXME */ "0")] +#[unstable(feature = "iter_unfold", issue = "55977")] pub fn successors(first: Option, succ: F) -> Successors where F: FnMut(&T) -> Option { @@ -504,13 +504,13 @@ pub fn successors(first: Option, succ: F) -> Successors /// /// [`successors`]: fn.successors.html #[derive(Clone)] -#[unstable(feature = "iter_unfold", issue = /* FIXME */ "0")] +#[unstable(feature = "iter_unfold", issue = "55977")] pub struct Successors { next: Option, succ: F, } -#[unstable(feature = "iter_unfold", issue = /* FIXME */ "0")] +#[unstable(feature = "iter_unfold", issue = "55977")] impl Iterator for Successors where F: FnMut(&T) -> Option { @@ -534,12 +534,12 @@ impl Iterator for Successors } } -#[unstable(feature = "iter_unfold", issue = /* FIXME */ "0")] +#[unstable(feature = "iter_unfold", issue = "55977")] impl FusedIterator for Successors where F: FnMut(&T) -> Option {} -#[unstable(feature = "iter_unfold", issue = /* FIXME */ "0")] +#[unstable(feature = "iter_unfold", issue = "55977")] impl fmt::Debug for Successors { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { f.debug_struct("Successors")