@@ -354,7 +354,7 @@ impl str {
354
354
/// ```
355
355
#[ must_use]
356
356
#[ stable( feature = "is_char_boundary" , since = "1.9.0" ) ]
357
- #[ rustc_const_stable( feature = "const_is_char_boundary" , since = "CURRENT_RUSTC_VERSION " ) ]
357
+ #[ rustc_const_stable( feature = "const_is_char_boundary" , since = "1.86.0 " ) ]
358
358
#[ inline]
359
359
pub const fn is_char_boundary ( & self , index : usize ) -> bool {
360
360
// 0 is always ok.
@@ -811,7 +811,7 @@ impl str {
811
811
#[ inline]
812
812
#[ must_use]
813
813
#[ stable( feature = "str_split_at" , since = "1.4.0" ) ]
814
- #[ rustc_const_stable( feature = "const_str_split_at" , since = "CURRENT_RUSTC_VERSION " ) ]
814
+ #[ rustc_const_stable( feature = "const_str_split_at" , since = "1.86.0 " ) ]
815
815
pub const fn split_at ( & self , mid : usize ) -> ( & str , & str ) {
816
816
match self . split_at_checked ( mid) {
817
817
None => slice_error_fail ( self , 0 , mid) ,
@@ -852,7 +852,7 @@ impl str {
852
852
#[ inline]
853
853
#[ must_use]
854
854
#[ stable( feature = "str_split_at" , since = "1.4.0" ) ]
855
- #[ rustc_const_stable( feature = "const_str_split_at" , since = "CURRENT_RUSTC_VERSION " ) ]
855
+ #[ rustc_const_stable( feature = "const_str_split_at" , since = "1.86.0 " ) ]
856
856
pub const fn split_at_mut ( & mut self , mid : usize ) -> ( & mut str , & mut str ) {
857
857
// is_char_boundary checks that the index is in [0, .len()]
858
858
if self . is_char_boundary ( mid) {
@@ -892,7 +892,7 @@ impl str {
892
892
#[ inline]
893
893
#[ must_use]
894
894
#[ stable( feature = "split_at_checked" , since = "1.80.0" ) ]
895
- #[ rustc_const_stable( feature = "const_str_split_at" , since = "CURRENT_RUSTC_VERSION " ) ]
895
+ #[ rustc_const_stable( feature = "const_str_split_at" , since = "1.86.0 " ) ]
896
896
pub const fn split_at_checked ( & self , mid : usize ) -> Option < ( & str , & str ) > {
897
897
// is_char_boundary checks that the index is in [0, .len()]
898
898
if self . is_char_boundary ( mid) {
@@ -933,7 +933,7 @@ impl str {
933
933
#[ inline]
934
934
#[ must_use]
935
935
#[ stable( feature = "split_at_checked" , since = "1.80.0" ) ]
936
- #[ rustc_const_stable( feature = "const_str_split_at" , since = "CURRENT_RUSTC_VERSION " ) ]
936
+ #[ rustc_const_stable( feature = "const_str_split_at" , since = "1.86.0 " ) ]
937
937
pub const fn split_at_mut_checked ( & mut self , mid : usize ) -> Option < ( & mut str , & mut str ) > {
938
938
// is_char_boundary checks that the index is in [0, .len()]
939
939
if self . is_char_boundary ( mid) {
0 commit comments