@@ -1877,7 +1877,7 @@ impl<T> [T] {
1877
1877
/// Some(b"llo".as_ref()));
1878
1878
/// ```
1879
1879
#[ must_use = "returns the subslice without modifying the original" ]
1880
- #[ stable( feature = "slice_strip" , since = "1.50 .0" ) ]
1880
+ #[ stable( feature = "slice_strip" , since = "1.51 .0" ) ]
1881
1881
pub fn strip_prefix < P : SlicePattern < Item = T > + ?Sized > ( & self , prefix : & P ) -> Option < & [ T ] >
1882
1882
where
1883
1883
T : PartialEq ,
@@ -1911,7 +1911,7 @@ impl<T> [T] {
1911
1911
/// assert_eq!(v.strip_suffix(&[50, 30]), None);
1912
1912
/// ```
1913
1913
#[ must_use = "returns the subslice without modifying the original" ]
1914
- #[ stable( feature = "slice_strip" , since = "1.50 .0" ) ]
1914
+ #[ stable( feature = "slice_strip" , since = "1.51 .0" ) ]
1915
1915
pub fn strip_suffix < P : SlicePattern < Item = T > + ?Sized > ( & self , suffix : & P ) -> Option < & [ T ] >
1916
1916
where
1917
1917
T : PartialEq ,
@@ -3323,7 +3323,7 @@ pub trait SlicePattern {
3323
3323
fn as_slice ( & self ) -> & [ Self :: Item ] ;
3324
3324
}
3325
3325
3326
- #[ stable( feature = "slice_strip" , since = "1.50 .0" ) ]
3326
+ #[ stable( feature = "slice_strip" , since = "1.51 .0" ) ]
3327
3327
impl < T > SlicePattern for [ T ] {
3328
3328
type Item = T ;
3329
3329
@@ -3333,7 +3333,7 @@ impl<T> SlicePattern for [T] {
3333
3333
}
3334
3334
}
3335
3335
3336
- #[ stable( feature = "slice_strip" , since = "1.50 .0" ) ]
3336
+ #[ stable( feature = "slice_strip" , since = "1.51 .0" ) ]
3337
3337
impl < T , const N : usize > SlicePattern for [ T ; N ] {
3338
3338
type Item = T ;
3339
3339
0 commit comments