@@ -446,15 +446,13 @@ impl<T, P> FusedIterator for Split<'_, T, P> where P: FnMut(&T) -> bool {}
446
446
/// # Example
447
447
///
448
448
/// ```
449
- /// #![feature(split_inclusive)]
450
- ///
451
449
/// let slice = [10, 40, 33, 20];
452
450
/// let mut iter = slice.split_inclusive(|num| num % 3 == 0);
453
451
/// ```
454
452
///
455
453
/// [`split_inclusive`]: ../../std/primitive.slice.html#method.split_inclusive
456
454
/// [slices]: ../../std/primitive.slice.html
457
- #[ unstable ( feature = "split_inclusive" , issue = "72360 " ) ]
455
+ #[ stable ( feature = "split_inclusive" , since = "1.49.0 " ) ]
458
456
pub struct SplitInclusive < ' a , T : ' a , P >
459
457
where
460
458
P : FnMut ( & T ) -> bool ,
@@ -471,7 +469,7 @@ impl<'a, T: 'a, P: FnMut(&T) -> bool> SplitInclusive<'a, T, P> {
471
469
}
472
470
}
473
471
474
- #[ unstable ( feature = "split_inclusive" , issue = "72360 " ) ]
472
+ #[ stable ( feature = "split_inclusive" , since = "1.49.0 " ) ]
475
473
impl < T : fmt:: Debug , P > fmt:: Debug for SplitInclusive < ' _ , T , P >
476
474
where
477
475
P : FnMut ( & T ) -> bool ,
@@ -485,7 +483,7 @@ where
485
483
}
486
484
487
485
// FIXME(#26925) Remove in favor of `#[derive(Clone)]`
488
- #[ unstable ( feature = "split_inclusive" , issue = "72360 " ) ]
486
+ #[ stable ( feature = "split_inclusive" , since = "1.49.0 " ) ]
489
487
impl < T , P > Clone for SplitInclusive < ' _ , T , P >
490
488
where
491
489
P : Clone + FnMut ( & T ) -> bool ,
@@ -495,7 +493,7 @@ where
495
493
}
496
494
}
497
495
498
- #[ unstable ( feature = "split_inclusive" , issue = "72360 " ) ]
496
+ #[ stable ( feature = "split_inclusive" , since = "1.49.0 " ) ]
499
497
impl < ' a , T , P > Iterator for SplitInclusive < ' a , T , P >
500
498
where
501
499
P : FnMut ( & T ) -> bool ,
@@ -524,7 +522,7 @@ where
524
522
}
525
523
}
526
524
527
- #[ unstable ( feature = "split_inclusive" , issue = "72360 " ) ]
525
+ #[ stable ( feature = "split_inclusive" , since = "1.49.0 " ) ]
528
526
impl < ' a , T , P > DoubleEndedIterator for SplitInclusive < ' a , T , P >
529
527
where
530
528
P : FnMut ( & T ) -> bool ,
@@ -549,7 +547,7 @@ where
549
547
}
550
548
}
551
549
552
- #[ unstable ( feature = "split_inclusive" , issue = "72360 " ) ]
550
+ #[ stable ( feature = "split_inclusive" , since = "1.49.0 " ) ]
553
551
impl < T , P > FusedIterator for SplitInclusive < ' _ , T , P > where P : FnMut ( & T ) -> bool { }
554
552
555
553
/// 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 {}
689
687
/// # Example
690
688
///
691
689
/// ```
692
- /// #![feature(split_inclusive)]
693
- ///
694
690
/// let mut v = [10, 40, 30, 20, 60, 50];
695
691
/// let iter = v.split_inclusive_mut(|num| *num % 3 == 0);
696
692
/// ```
697
693
///
698
694
/// [`split_inclusive_mut`]: ../../std/primitive.slice.html#method.split_inclusive_mut
699
695
/// [slices]: ../../std/primitive.slice.html
700
- #[ unstable ( feature = "split_inclusive" , issue = "72360 " ) ]
696
+ #[ stable ( feature = "split_inclusive" , since = "1.49.0 " ) ]
701
697
pub struct SplitInclusiveMut < ' a , T : ' a , P >
702
698
where
703
699
P : FnMut ( & T ) -> bool ,
@@ -714,7 +710,7 @@ impl<'a, T: 'a, P: FnMut(&T) -> bool> SplitInclusiveMut<'a, T, P> {
714
710
}
715
711
}
716
712
717
- #[ unstable ( feature = "split_inclusive" , issue = "72360 " ) ]
713
+ #[ stable ( feature = "split_inclusive" , since = "1.49.0 " ) ]
718
714
impl < T : fmt:: Debug , P > fmt:: Debug for SplitInclusiveMut < ' _ , T , P >
719
715
where
720
716
P : FnMut ( & T ) -> bool ,
@@ -727,7 +723,7 @@ where
727
723
}
728
724
}
729
725
730
- #[ unstable ( feature = "split_inclusive" , issue = "72360 " ) ]
726
+ #[ stable ( feature = "split_inclusive" , since = "1.49.0 " ) ]
731
727
impl < ' a , T , P > Iterator for SplitInclusiveMut < ' a , T , P >
732
728
where
733
729
P : FnMut ( & T ) -> bool ,
@@ -767,7 +763,7 @@ where
767
763
}
768
764
}
769
765
770
- #[ unstable ( feature = "split_inclusive" , issue = "72360 " ) ]
766
+ #[ stable ( feature = "split_inclusive" , since = "1.49.0 " ) ]
771
767
impl < ' a , T , P > DoubleEndedIterator for SplitInclusiveMut < ' a , T , P >
772
768
where
773
769
P : FnMut ( & T ) -> bool ,
@@ -801,7 +797,7 @@ where
801
797
}
802
798
}
803
799
804
- #[ unstable ( feature = "split_inclusive" , issue = "72360 " ) ]
800
+ #[ stable ( feature = "split_inclusive" , since = "1.49.0 " ) ]
805
801
impl < T , P > FusedIterator for SplitInclusiveMut < ' _ , T , P > where P : FnMut ( & T ) -> bool { }
806
802
807
803
/// An iterator over subslices separated by elements that match a predicate
0 commit comments