@@ -1776,7 +1776,7 @@ mod traits {
1776
1776
}
1777
1777
}
1778
1778
1779
- #[ unstable ( feature = "str_checked_slicing" , issue = "39932 " ) ]
1779
+ #[ stable ( feature = "str_checked_slicing" , since = "1.20.0 " ) ]
1780
1780
impl SliceIndex < str > for ops:: RangeFull {
1781
1781
type Output = str ;
1782
1782
#[ inline]
@@ -1805,7 +1805,7 @@ mod traits {
1805
1805
}
1806
1806
}
1807
1807
1808
- #[ unstable ( feature = "str_checked_slicing" , issue = "39932 " ) ]
1808
+ #[ stable ( feature = "str_checked_slicing" , since = "1.20.0 " ) ]
1809
1809
impl SliceIndex < str > for ops:: Range < usize > {
1810
1810
type Output = str ;
1811
1811
#[ inline]
@@ -1859,7 +1859,7 @@ mod traits {
1859
1859
}
1860
1860
}
1861
1861
1862
- #[ unstable ( feature = "str_checked_slicing" , issue = "39932 " ) ]
1862
+ #[ stable ( feature = "str_checked_slicing" , since = "1.20.0 " ) ]
1863
1863
impl SliceIndex < str > for ops:: RangeTo < usize > {
1864
1864
type Output = str ;
1865
1865
#[ inline]
@@ -1904,7 +1904,7 @@ mod traits {
1904
1904
}
1905
1905
}
1906
1906
1907
- #[ unstable ( feature = "str_checked_slicing" , issue = "39932 " ) ]
1907
+ #[ stable ( feature = "str_checked_slicing" , since = "1.20.0 " ) ]
1908
1908
impl SliceIndex < str > for ops:: RangeFrom < usize > {
1909
1909
type Output = str ;
1910
1910
#[ inline]
@@ -1951,7 +1951,7 @@ mod traits {
1951
1951
}
1952
1952
}
1953
1953
1954
- #[ unstable ( feature = "str_checked_slicing" , issue = "39932 " ) ]
1954
+ #[ stable ( feature = "str_checked_slicing" , since = "1.20.0 " ) ]
1955
1955
impl SliceIndex < str > for ops:: RangeInclusive < usize > {
1956
1956
type Output = str ;
1957
1957
#[ inline]
@@ -1994,7 +1994,7 @@ mod traits {
1994
1994
1995
1995
1996
1996
1997
- #[ unstable ( feature = "str_checked_slicing" , issue = "39932 " ) ]
1997
+ #[ stable ( feature = "str_checked_slicing" , since = "1.20.0 " ) ]
1998
1998
impl SliceIndex < str > for ops:: RangeToInclusive < usize > {
1999
1999
type Output = str ;
2000
2000
#[ inline]
@@ -2094,13 +2094,13 @@ pub trait StrExt {
2094
2094
#[ rustc_deprecated( since = "1.6.0" , reason = "use lines() instead now" ) ]
2095
2095
#[ allow( deprecated) ]
2096
2096
fn lines_any ( & self ) -> LinesAny ;
2097
- #[ unstable ( feature = "str_checked_slicing" , issue = "39932 " ) ]
2097
+ #[ stable ( feature = "str_checked_slicing" , since = "1.20.0 " ) ]
2098
2098
fn get < I : SliceIndex < str > > ( & self , i : I ) -> Option < & I :: Output > ;
2099
- #[ unstable ( feature = "str_checked_slicing" , issue = "39932 " ) ]
2099
+ #[ stable ( feature = "str_checked_slicing" , since = "1.20.0 " ) ]
2100
2100
fn get_mut < I : SliceIndex < str > > ( & mut self , i : I ) -> Option < & mut I :: Output > ;
2101
- #[ unstable ( feature = "str_checked_slicing" , issue = "39932 " ) ]
2101
+ #[ stable ( feature = "str_checked_slicing" , since = "1.20.0 " ) ]
2102
2102
unsafe fn get_unchecked < I : SliceIndex < str > > ( & self , i : I ) -> & I :: Output ;
2103
- #[ unstable ( feature = "str_checked_slicing" , issue = "39932 " ) ]
2103
+ #[ stable ( feature = "str_checked_slicing" , since = "1.20.0 " ) ]
2104
2104
unsafe fn get_unchecked_mut < I : SliceIndex < str > > ( & mut self , i : I ) -> & mut I :: Output ;
2105
2105
#[ stable( feature = "core" , since = "1.6.0" ) ]
2106
2106
unsafe fn slice_unchecked ( & self , begin : usize , end : usize ) -> & str ;
0 commit comments