@@ -2475,8 +2475,9 @@ impl str {
2475
2475
/// assert_eq!("GRüßE, JüRGEN ❤", s);
2476
2476
/// ```
2477
2477
#[ stable( feature = "ascii_methods_on_intrinsics" , since = "1.23.0" ) ]
2478
- #[ rustc_const_unstable ( feature = "const_make_ascii" , issue = "130698 " ) ]
2478
+ #[ rustc_const_stable ( feature = "const_make_ascii" , since = "CURRENT_RUSTC_VERSION " ) ]
2479
2479
#[ inline]
2480
+ #[ cfg_attr( bootstrap, rustc_allow_const_fn_unstable( const_mut_refs) ) ]
2480
2481
pub const fn make_ascii_uppercase ( & mut self ) {
2481
2482
// SAFETY: changing ASCII letters only does not invalidate UTF-8.
2482
2483
let me = unsafe { self . as_bytes_mut ( ) } ;
@@ -2503,8 +2504,9 @@ impl str {
2503
2504
/// assert_eq!("grÜße, jÜrgen ❤", s);
2504
2505
/// ```
2505
2506
#[ stable( feature = "ascii_methods_on_intrinsics" , since = "1.23.0" ) ]
2506
- #[ rustc_const_unstable ( feature = "const_make_ascii" , issue = "130698 " ) ]
2507
+ #[ rustc_const_stable ( feature = "const_make_ascii" , since = "CURRENT_RUSTC_VERSION " ) ]
2507
2508
#[ inline]
2509
+ #[ cfg_attr( bootstrap, rustc_allow_const_fn_unstable( const_mut_refs) ) ]
2508
2510
pub const fn make_ascii_lowercase ( & mut self ) {
2509
2511
// SAFETY: changing ASCII letters only does not invalidate UTF-8.
2510
2512
let me = unsafe { self . as_bytes_mut ( ) } ;
0 commit comments