File tree 3 files changed +5
-3
lines changed
3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 151
151
#![ feature( const_slice_from_raw_parts_mut) ]
152
152
#![ feature( const_slice_from_ref) ]
153
153
#![ feature( const_slice_split_at_mut) ]
154
- #![ feature( const_str_as_mut) ]
155
154
#![ feature( const_strict_overflow_ops) ]
156
155
#![ feature( const_swap) ]
157
156
#![ feature( const_try) ]
Original file line number Diff line number Diff line change @@ -195,6 +195,7 @@ pub const unsafe fn from_utf8_unchecked(v: &[u8]) -> &str {
195
195
#[ inline]
196
196
#[ must_use]
197
197
#[ stable( feature = "str_mut_extras" , since = "1.20.0" ) ]
198
+ #[ cfg_attr( bootstrap, rustc_allow_const_fn_unstable( const_mut_refs) ) ]
198
199
#[ rustc_const_stable(
199
200
feature = "const_str_from_utf8_unchecked_mut" ,
200
201
since = "CURRENT_RUSTC_VERSION"
Original file line number Diff line number Diff line change @@ -339,7 +339,8 @@ impl str {
339
339
/// assert_eq!("🍔∈🌏", s);
340
340
/// ```
341
341
#[ stable( feature = "str_mut_extras" , since = "1.20.0" ) ]
342
- #[ rustc_const_unstable( feature = "const_str_as_mut" , issue = "130086" ) ]
342
+ #[ cfg_attr( bootstrap, rustc_allow_const_fn_unstable( const_mut_refs) ) ]
343
+ #[ rustc_const_stable( feature = "const_str_as_mut" , since = "CURRENT_RUSTC_VERSION" ) ]
343
344
#[ must_use]
344
345
#[ inline( always) ]
345
346
pub const unsafe fn as_bytes_mut ( & mut self ) -> & mut [ u8 ] {
@@ -385,7 +386,8 @@ impl str {
385
386
/// It is your responsibility to make sure that the string slice only gets
386
387
/// modified in a way that it remains valid UTF-8.
387
388
#[ stable( feature = "str_as_mut_ptr" , since = "1.36.0" ) ]
388
- #[ rustc_const_unstable( feature = "const_str_as_mut" , issue = "130086" ) ]
389
+ #[ cfg_attr( bootstrap, rustc_allow_const_fn_unstable( const_mut_refs) ) ]
390
+ #[ rustc_const_stable( feature = "const_str_as_mut" , since = "CURRENT_RUSTC_VERSION" ) ]
389
391
#[ rustc_never_returns_null_ptr]
390
392
#[ must_use]
391
393
#[ inline( always) ]
You can’t perform that action at this time.
0 commit comments