Skip to content

Commit 8a5bbd9

Browse files
committed
Add tracking issue for unfold and successors
1 parent 641c490 commit 8a5bbd9

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/libcore/iter/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ pub use self::sources::{RepeatWith, repeat_with};
339339
pub use self::sources::{Empty, empty};
340340
#[stable(feature = "iter_once", since = "1.2.0")]
341341
pub use self::sources::{Once, once};
342-
#[unstable(feature = "iter_unfold", issue = /* FIXME */ "0")]
342+
#[unstable(feature = "iter_unfold", issue = "55977")]
343343
pub use self::sources::{Unfold, unfold, Successors, successors};
344344

345345
#[stable(feature = "rust1", since = "1.0.0")]

src/libcore/iter/sources.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ pub fn once<T>(value: T) -> Once<T> {
428428
/// assert_eq!(counter.collect::<Vec<_>>(), &[1, 2, 3, 4, 5]);
429429
/// ```
430430
#[inline]
431-
#[unstable(feature = "iter_unfold", issue = /* FIXME */ "0")]
431+
#[unstable(feature = "iter_unfold", issue = "55977")]
432432
pub fn unfold<St, T, F>(initial_state: St, f: F) -> Unfold<St, F>
433433
where F: FnMut(&mut St) -> Option<T>
434434
{
@@ -445,13 +445,13 @@ pub fn unfold<St, T, F>(initial_state: St, f: F) -> Unfold<St, F>
445445
///
446446
/// [`unfold`]: fn.unfold.html
447447
#[derive(Clone)]
448-
#[unstable(feature = "iter_unfold", issue = /* FIXME */ "0")]
448+
#[unstable(feature = "iter_unfold", issue = "55977")]
449449
pub struct Unfold<St, F> {
450450
state: St,
451451
f: F,
452452
}
453453

454-
#[unstable(feature = "iter_unfold", issue = /* FIXME */ "0")]
454+
#[unstable(feature = "iter_unfold", issue = "55977")]
455455
impl<St, T, F> Iterator for Unfold<St, F>
456456
where F: FnMut(&mut St) -> Option<T>
457457
{
@@ -463,7 +463,7 @@ impl<St, T, F> Iterator for Unfold<St, F>
463463
}
464464
}
465465

466-
#[unstable(feature = "iter_unfold", issue = /* FIXME */ "0")]
466+
#[unstable(feature = "iter_unfold", issue = "55977")]
467467
impl<St: fmt::Debug, F> fmt::Debug for Unfold<St, F> {
468468
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
469469
f.debug_struct("Unfold")
@@ -484,7 +484,7 @@ impl<St: fmt::Debug, F> fmt::Debug for Unfold<St, F> {
484484
/// let powers_of_10 = successors(Some(1_u16), |n| n.checked_mul(10));
485485
/// assert_eq!(powers_of_10.collect::<Vec<_>>(), &[1, 10, 100, 1_000, 10_000]);
486486
/// ```
487-
#[unstable(feature = "iter_unfold", issue = /* FIXME */ "0")]
487+
#[unstable(feature = "iter_unfold", issue = "55977")]
488488
pub fn successors<T, F>(first: Option<T>, succ: F) -> Successors<T, F>
489489
where F: FnMut(&T) -> Option<T>
490490
{
@@ -504,13 +504,13 @@ pub fn successors<T, F>(first: Option<T>, succ: F) -> Successors<T, F>
504504
///
505505
/// [`successors`]: fn.successors.html
506506
#[derive(Clone)]
507-
#[unstable(feature = "iter_unfold", issue = /* FIXME */ "0")]
507+
#[unstable(feature = "iter_unfold", issue = "55977")]
508508
pub struct Successors<T, F> {
509509
next: Option<T>,
510510
succ: F,
511511
}
512512

513-
#[unstable(feature = "iter_unfold", issue = /* FIXME */ "0")]
513+
#[unstable(feature = "iter_unfold", issue = "55977")]
514514
impl<T, F> Iterator for Successors<T, F>
515515
where F: FnMut(&T) -> Option<T>
516516
{
@@ -534,12 +534,12 @@ impl<T, F> Iterator for Successors<T, F>
534534
}
535535
}
536536

537-
#[unstable(feature = "iter_unfold", issue = /* FIXME */ "0")]
537+
#[unstable(feature = "iter_unfold", issue = "55977")]
538538
impl<T, F> FusedIterator for Successors<T, F>
539539
where F: FnMut(&T) -> Option<T>
540540
{}
541541

542-
#[unstable(feature = "iter_unfold", issue = /* FIXME */ "0")]
542+
#[unstable(feature = "iter_unfold", issue = "55977")]
543543
impl<T: fmt::Debug, F> fmt::Debug for Successors<T, F> {
544544
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
545545
f.debug_struct("Successors")

0 commit comments

Comments
 (0)