@@ -396,7 +396,6 @@ impl str {
396
396
/// # Examples
397
397
///
398
398
/// ```
399
- /// #![feature(round_char_boundary)]
400
399
/// let s = "❤️🧡💛💚💙💜";
401
400
/// assert_eq!(s.len(), 26);
402
401
/// assert!(!s.is_char_boundary(13));
@@ -405,7 +404,8 @@ impl str {
405
404
/// assert_eq!(closest, 10);
406
405
/// assert_eq!(&s[..closest], "❤️🧡");
407
406
/// ```
408
- #[ unstable( feature = "round_char_boundary" , issue = "93743" ) ]
407
+ #[ stable( feature = "round_char_boundary" , since = "CURRENT_RUSTC_VERSION" ) ]
408
+ #[ rustc_const_stable( feature = "round_char_boundary" , since = "CURRENT_RUSTC_VERSION" ) ]
409
409
#[ inline]
410
410
pub const fn floor_char_boundary ( & self , index : usize ) -> usize {
411
411
if index >= self . len ( ) {
@@ -439,7 +439,6 @@ impl str {
439
439
/// # Examples
440
440
///
441
441
/// ```
442
- /// #![feature(round_char_boundary)]
443
442
/// let s = "❤️🧡💛💚💙💜";
444
443
/// assert_eq!(s.len(), 26);
445
444
/// assert!(!s.is_char_boundary(13));
@@ -448,7 +447,8 @@ impl str {
448
447
/// assert_eq!(closest, 14);
449
448
/// assert_eq!(&s[..closest], "❤️🧡💛");
450
449
/// ```
451
- #[ unstable( feature = "round_char_boundary" , issue = "93743" ) ]
450
+ #[ stable( feature = "round_char_boundary" , since = "CURRENT_RUSTC_VERSION" ) ]
451
+ #[ rustc_const_stable( feature = "round_char_boundary" , since = "CURRENT_RUSTC_VERSION" ) ]
452
452
#[ inline]
453
453
pub const fn ceil_char_boundary ( & self , index : usize ) -> usize {
454
454
if index >= self . len ( ) {
0 commit comments