@@ -633,8 +633,6 @@ pub trait Iterator {
633
633
/// Basic usage:
634
634
///
635
635
/// ```
636
- /// #![feature(iter_intersperse)]
637
- ///
638
636
/// let mut a = [0, 1, 2].iter().intersperse(&100);
639
637
/// assert_eq!(a.next(), Some(&0)); // The first element from `a`.
640
638
/// assert_eq!(a.next(), Some(&100)); // The separator.
@@ -646,16 +644,14 @@ pub trait Iterator {
646
644
///
647
645
/// `intersperse` can be very useful to join an iterator's items using a common element:
648
646
/// ```
649
- /// #![feature(iter_intersperse)]
650
- ///
651
647
/// let hello = ["Hello", "World", "!"].iter().copied().intersperse(" ").collect::<String>();
652
648
/// assert_eq!(hello, "Hello World !");
653
649
/// ```
654
650
///
655
651
/// [`Clone`]: crate::clone::Clone
656
652
/// [`intersperse_with`]: Iterator::intersperse_with
657
653
#[ inline]
658
- #[ unstable ( feature = "iter_intersperse" , reason = "recently added" , issue = "79524 ") ]
654
+ #[ stable ( feature = "iter_intersperse" , since = "1.64.0 " ) ]
659
655
fn intersperse ( self , separator : Self :: Item ) -> Intersperse < Self >
660
656
where
661
657
Self : Sized ,
@@ -680,8 +676,6 @@ pub trait Iterator {
680
676
/// Basic usage:
681
677
///
682
678
/// ```
683
- /// #![feature(iter_intersperse)]
684
- ///
685
679
/// #[derive(PartialEq, Debug)]
686
680
/// struct NotClone(usize);
687
681
///
@@ -699,8 +693,6 @@ pub trait Iterator {
699
693
/// `intersperse_with` can be used in situations where the separator needs
700
694
/// to be computed:
701
695
/// ```
702
- /// #![feature(iter_intersperse)]
703
- ///
704
696
/// let src = ["Hello", "to", "all", "people", "!!"].iter().copied();
705
697
///
706
698
/// // The closure mutably borrows its context to generate an item.
@@ -713,7 +705,7 @@ pub trait Iterator {
713
705
/// [`Clone`]: crate::clone::Clone
714
706
/// [`intersperse`]: Iterator::intersperse
715
707
#[ inline]
716
- #[ unstable ( feature = "iter_intersperse" , reason = "recently added" , issue = "79524 ") ]
708
+ #[ stable ( feature = "iter_intersperse" , since = "1.64.0 " ) ]
717
709
fn intersperse_with < G > ( self , separator : G ) -> IntersperseWith < Self , G >
718
710
where
719
711
Self : Sized ,
0 commit comments