@@ -446,15 +446,13 @@ impl<T, P> FusedIterator for Split<'_, T, P> where P: FnMut(&T) -> bool {}
446446/// # Example
447447///
448448/// ```
449- /// #![feature(split_inclusive)]
450- ///
451449/// let slice = [10, 40, 33, 20];
452450/// let mut iter = slice.split_inclusive(|num| num % 3 == 0);
453451/// ```
454452///
455453/// [`split_inclusive`]: ../../std/primitive.slice.html#method.split_inclusive
456454/// [slices]: ../../std/primitive.slice.html
457- #[ unstable ( feature = "split_inclusive" , issue = "72360 " ) ]
455+ #[ stable ( feature = "split_inclusive" , since = "1.49.0 " ) ]
458456pub struct SplitInclusive < ' a , T : ' a , P >
459457where
460458 P : FnMut ( & T ) -> bool ,
@@ -471,7 +469,7 @@ impl<'a, T: 'a, P: FnMut(&T) -> bool> SplitInclusive<'a, T, P> {
471469 }
472470}
473471
474- #[ unstable ( feature = "split_inclusive" , issue = "72360 " ) ]
472+ #[ stable ( feature = "split_inclusive" , since = "1.49.0 " ) ]
475473impl < T : fmt:: Debug , P > fmt:: Debug for SplitInclusive < ' _ , T , P >
476474where
477475 P : FnMut ( & T ) -> bool ,
@@ -485,7 +483,7 @@ where
485483}
486484
487485// FIXME(#26925) Remove in favor of `#[derive(Clone)]`
488- #[ unstable ( feature = "split_inclusive" , issue = "72360 " ) ]
486+ #[ stable ( feature = "split_inclusive" , since = "1.49.0 " ) ]
489487impl < T , P > Clone for SplitInclusive < ' _ , T , P >
490488where
491489 P : Clone + FnMut ( & T ) -> bool ,
@@ -495,7 +493,7 @@ where
495493 }
496494}
497495
498- #[ unstable ( feature = "split_inclusive" , issue = "72360 " ) ]
496+ #[ stable ( feature = "split_inclusive" , since = "1.49.0 " ) ]
499497impl < ' a , T , P > Iterator for SplitInclusive < ' a , T , P >
500498where
501499 P : FnMut ( & T ) -> bool ,
@@ -524,7 +522,7 @@ where
524522 }
525523}
526524
527- #[ unstable ( feature = "split_inclusive" , issue = "72360 " ) ]
525+ #[ stable ( feature = "split_inclusive" , since = "1.49.0 " ) ]
528526impl < ' a , T , P > DoubleEndedIterator for SplitInclusive < ' a , T , P >
529527where
530528 P : FnMut ( & T ) -> bool ,
@@ -549,7 +547,7 @@ where
549547 }
550548}
551549
552- #[ unstable ( feature = "split_inclusive" , issue = "72360 " ) ]
550+ #[ stable ( feature = "split_inclusive" , since = "1.49.0 " ) ]
553551impl < T , P > FusedIterator for SplitInclusive < ' _ , T , P > where P : FnMut ( & T ) -> bool { }
554552
555553/// An iterator over the mutable subslices of the vector which are separated
@@ -689,15 +687,13 @@ impl<T, P> FusedIterator for SplitMut<'_, T, P> where P: FnMut(&T) -> bool {}
689687/// # Example
690688///
691689/// ```
692- /// #![feature(split_inclusive)]
693- ///
694690/// let mut v = [10, 40, 30, 20, 60, 50];
695691/// let iter = v.split_inclusive_mut(|num| *num % 3 == 0);
696692/// ```
697693///
698694/// [`split_inclusive_mut`]: ../../std/primitive.slice.html#method.split_inclusive_mut
699695/// [slices]: ../../std/primitive.slice.html
700- #[ unstable ( feature = "split_inclusive" , issue = "72360 " ) ]
696+ #[ stable ( feature = "split_inclusive" , since = "1.49.0 " ) ]
701697pub struct SplitInclusiveMut < ' a , T : ' a , P >
702698where
703699 P : FnMut ( & T ) -> bool ,
@@ -714,7 +710,7 @@ impl<'a, T: 'a, P: FnMut(&T) -> bool> SplitInclusiveMut<'a, T, P> {
714710 }
715711}
716712
717- #[ unstable ( feature = "split_inclusive" , issue = "72360 " ) ]
713+ #[ stable ( feature = "split_inclusive" , since = "1.49.0 " ) ]
718714impl < T : fmt:: Debug , P > fmt:: Debug for SplitInclusiveMut < ' _ , T , P >
719715where
720716 P : FnMut ( & T ) -> bool ,
@@ -727,7 +723,7 @@ where
727723 }
728724}
729725
730- #[ unstable ( feature = "split_inclusive" , issue = "72360 " ) ]
726+ #[ stable ( feature = "split_inclusive" , since = "1.49.0 " ) ]
731727impl < ' a , T , P > Iterator for SplitInclusiveMut < ' a , T , P >
732728where
733729 P : FnMut ( & T ) -> bool ,
@@ -767,7 +763,7 @@ where
767763 }
768764}
769765
770- #[ unstable ( feature = "split_inclusive" , issue = "72360 " ) ]
766+ #[ stable ( feature = "split_inclusive" , since = "1.49.0 " ) ]
771767impl < ' a , T , P > DoubleEndedIterator for SplitInclusiveMut < ' a , T , P >
772768where
773769 P : FnMut ( & T ) -> bool ,
@@ -801,7 +797,7 @@ where
801797 }
802798}
803799
804- #[ unstable ( feature = "split_inclusive" , issue = "72360 " ) ]
800+ #[ stable ( feature = "split_inclusive" , since = "1.49.0 " ) ]
805801impl < T , P > FusedIterator for SplitInclusiveMut < ' _ , T , P > where P : FnMut ( & T ) -> bool { }
806802
807803/// An iterator over subslices separated by elements that match a predicate
0 commit comments