File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 151151#![ feature( const_slice_from_raw_parts_mut) ]
152152#![ feature( const_slice_from_ref) ]
153153#![ feature( const_slice_split_at_mut) ]
154- #![ feature( const_str_as_mut) ]
155154#![ feature( const_strict_overflow_ops) ]
156155#![ feature( const_swap) ]
157156#![ 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 {
195195#[ inline]
196196#[ must_use]
197197#[ stable( feature = "str_mut_extras" , since = "1.20.0" ) ]
198+ #[ cfg_attr( bootstrap, rustc_allow_const_fn_unstable( const_mut_refs) ) ]
198199#[ rustc_const_stable(
199200 feature = "const_str_from_utf8_unchecked_mut" ,
200201 since = "CURRENT_RUSTC_VERSION"
Original file line number Diff line number Diff line change @@ -339,7 +339,8 @@ impl str {
339339 /// assert_eq!("🍔∈🌏", s);
340340 /// ```
341341 #[ 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" ) ]
343344 #[ must_use]
344345 #[ inline( always) ]
345346 pub const unsafe fn as_bytes_mut ( & mut self ) -> & mut [ u8 ] {
@@ -385,7 +386,8 @@ impl str {
385386 /// It is your responsibility to make sure that the string slice only gets
386387 /// modified in a way that it remains valid UTF-8.
387388 #[ 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" ) ]
389391 #[ rustc_never_returns_null_ptr]
390392 #[ must_use]
391393 #[ inline( always) ]
You can’t perform that action at this time.
0 commit comments