diff options
| author | Simon Sapin <simon.sapin@exyr.org> | 2018-11-15 14:33:47 +0100 |
|---|---|---|
| committer | Simon Sapin <simon.sapin@exyr.org> | 2018-11-20 18:22:40 +0100 |
| commit | 8a5bbd9a4e85e1383b87796f871a9020410bbd10 (patch) | |
| tree | 3ce967953a4911f2dadd78106d87b1f4307dd894 /src | |
| parent | 641c4909e4de0334c83372b4795388d98cfd257a (diff) | |
| download | rust-8a5bbd9a4e85e1383b87796f871a9020410bbd10.tar.gz rust-8a5bbd9a4e85e1383b87796f871a9020410bbd10.zip | |
Add tracking issue for unfold and successors
Diffstat (limited to 'src')
| -rw-r--r-- | src/libcore/iter/mod.rs | 2 | ||||
| -rw-r--r-- | 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 5f45cd927b8..8ae4b53da95 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 7f559652392..6d35d546415 100644 --- a/src/libcore/iter/sources.rs +++ b/src/libcore/iter/sources.rs @@ -428,7 +428,7 @@ pub fn once<T>(value: T) -> Once<T> { /// assert_eq!(counter.collect::<Vec<_>>(), &[1, 2, 3, 4, 5]); /// ``` #[inline] -#[unstable(feature = "iter_unfold", issue = /* FIXME */ "0")] +#[unstable(feature = "iter_unfold", issue = "55977")] pub fn unfold<St, T, F>(initial_state: St, f: F) -> Unfold<St, F> where F: FnMut(&mut St) -> Option<T> { @@ -445,13 +445,13 @@ pub fn unfold<St, T, F>(initial_state: St, f: F) -> Unfold<St, F> /// /// [`unfold`]: fn.unfold.html #[derive(Clone)] -#[unstable(feature = "iter_unfold", issue = /* FIXME */ "0")] +#[unstable(feature = "iter_unfold", issue = "55977")] pub struct Unfold<St, F> { state: St, f: F, } -#[unstable(feature = "iter_unfold", issue = /* FIXME */ "0")] +#[unstable(feature = "iter_unfold", issue = "55977")] impl<St, T, F> Iterator for Unfold<St, F> where F: FnMut(&mut St) -> Option<T> { @@ -463,7 +463,7 @@ impl<St, T, F> Iterator for Unfold<St, F> } } -#[unstable(feature = "iter_unfold", issue = /* FIXME */ "0")] +#[unstable(feature = "iter_unfold", issue = "55977")] impl<St: fmt::Debug, F> fmt::Debug for Unfold<St, F> { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { f.debug_struct("Unfold") @@ -484,7 +484,7 @@ impl<St: fmt::Debug, F> fmt::Debug for Unfold<St, F> { /// let powers_of_10 = successors(Some(1_u16), |n| n.checked_mul(10)); /// assert_eq!(powers_of_10.collect::<Vec<_>>(), &[1, 10, 100, 1_000, 10_000]); /// ``` -#[unstable(feature = "iter_unfold", issue = /* FIXME */ "0")] +#[unstable(feature = "iter_unfold", issue = "55977")] pub fn successors<T, F>(first: Option<T>, succ: F) -> Successors<T, F> where F: FnMut(&T) -> Option<T> { @@ -504,13 +504,13 @@ pub fn successors<T, F>(first: Option<T>, succ: F) -> Successors<T, F> /// /// [`successors`]: fn.successors.html #[derive(Clone)] -#[unstable(feature = "iter_unfold", issue = /* FIXME */ "0")] +#[unstable(feature = "iter_unfold", issue = "55977")] pub struct Successors<T, F> { next: Option<T>, succ: F, } -#[unstable(feature = "iter_unfold", issue = /* FIXME */ "0")] +#[unstable(feature = "iter_unfold", issue = "55977")] impl<T, F> Iterator for Successors<T, F> where F: FnMut(&T) -> Option<T> { @@ -534,12 +534,12 @@ impl<T, F> Iterator for Successors<T, F> } } -#[unstable(feature = "iter_unfold", issue = /* FIXME */ "0")] +#[unstable(feature = "iter_unfold", issue = "55977")] impl<T, F> FusedIterator for Successors<T, F> where F: FnMut(&T) -> Option<T> {} -#[unstable(feature = "iter_unfold", issue = /* FIXME */ "0")] +#[unstable(feature = "iter_unfold", issue = "55977")] impl<T: fmt::Debug, F> fmt::Debug for Successors<T, F> { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { f.debug_struct("Successors") |
