@@ -365,7 +365,7 @@ impl str {
365
365
/// ```
366
366
#[ must_use]
367
367
#[ stable( feature = "is_char_boundary" , since = "1.9.0" ) ]
368
- #[ rustc_const_stable( feature = "const_is_char_boundary" , since = "CURRENT_RUSTC_VERSION " ) ]
368
+ #[ rustc_const_stable( feature = "const_is_char_boundary" , since = "1.86.0 " ) ]
369
369
#[ inline]
370
370
pub const fn is_char_boundary ( & self , index : usize ) -> bool {
371
371
// 0 is always ok.
@@ -822,7 +822,7 @@ impl str {
822
822
#[ inline]
823
823
#[ must_use]
824
824
#[ stable( feature = "str_split_at" , since = "1.4.0" ) ]
825
- #[ rustc_const_stable( feature = "const_str_split_at" , since = "CURRENT_RUSTC_VERSION " ) ]
825
+ #[ rustc_const_stable( feature = "const_str_split_at" , since = "1.86.0 " ) ]
826
826
pub const fn split_at ( & self , mid : usize ) -> ( & str , & str ) {
827
827
match self . split_at_checked ( mid) {
828
828
None => slice_error_fail ( self , 0 , mid) ,
@@ -863,7 +863,7 @@ impl str {
863
863
#[ inline]
864
864
#[ must_use]
865
865
#[ stable( feature = "str_split_at" , since = "1.4.0" ) ]
866
- #[ rustc_const_stable( feature = "const_str_split_at" , since = "CURRENT_RUSTC_VERSION " ) ]
866
+ #[ rustc_const_stable( feature = "const_str_split_at" , since = "1.86.0 " ) ]
867
867
pub const fn split_at_mut ( & mut self , mid : usize ) -> ( & mut str , & mut str ) {
868
868
// is_char_boundary checks that the index is in [0, .len()]
869
869
if self . is_char_boundary ( mid) {
@@ -903,7 +903,7 @@ impl str {
903
903
#[ inline]
904
904
#[ must_use]
905
905
#[ stable( feature = "split_at_checked" , since = "1.80.0" ) ]
906
- #[ rustc_const_stable( feature = "const_str_split_at" , since = "CURRENT_RUSTC_VERSION " ) ]
906
+ #[ rustc_const_stable( feature = "const_str_split_at" , since = "1.86.0 " ) ]
907
907
pub const fn split_at_checked ( & self , mid : usize ) -> Option < ( & str , & str ) > {
908
908
// is_char_boundary checks that the index is in [0, .len()]
909
909
if self . is_char_boundary ( mid) {
@@ -944,7 +944,7 @@ impl str {
944
944
#[ inline]
945
945
#[ must_use]
946
946
#[ stable( feature = "split_at_checked" , since = "1.80.0" ) ]
947
- #[ rustc_const_stable( feature = "const_str_split_at" , since = "CURRENT_RUSTC_VERSION " ) ]
947
+ #[ rustc_const_stable( feature = "const_str_split_at" , since = "1.86.0 " ) ]
948
948
pub const fn split_at_mut_checked ( & mut self , mid : usize ) -> Option < ( & mut str , & mut str ) > {
949
949
// is_char_boundary checks that the index is in [0, .len()]
950
950
if self . is_char_boundary ( mid) {
0 commit comments