File tree 3 files changed +2
-3
lines changed
3 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 29
29
#![ feature( string_remove_matches) ]
30
30
#![ feature( const_btree_len) ]
31
31
#![ feature( const_trait_impl) ]
32
- #![ feature( const_str_from_utf8) ]
33
32
#![ feature( panic_update_hook) ]
34
33
#![ feature( pointer_is_aligned_to) ]
35
34
#![ feature( test) ]
Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ pub const fn from_utf8(v: &[u8]) -> Result<&str, Utf8Error> {
126
126
/// See the docs for [`Utf8Error`] for more details on the kinds of
127
127
/// errors that can be returned.
128
128
#[ stable( feature = "str_mut_extras" , since = "1.20.0" ) ]
129
- #[ rustc_const_unstable ( feature = "const_str_from_utf8" , issue = "91006 " ) ]
129
+ #[ rustc_const_stable ( feature = "const_str_from_utf8" , since = "CURRENT_RUSTC_VERSION " ) ]
130
130
#[ rustc_diagnostic_item = "str_from_utf8_mut" ]
131
131
pub const fn from_utf8_mut ( v : & mut [ u8 ] ) -> Result < & mut str , Utf8Error > {
132
132
// FIXME(const-hack): This should use `?` again, once it's `const`
Original file line number Diff line number Diff line change @@ -265,7 +265,7 @@ impl str {
265
265
/// See the docs for [`Utf8Error`] for more details on the kinds of
266
266
/// errors that can be returned.
267
267
#[ stable( feature = "inherent_str_constructors" , since = "CURRENT_RUSTC_VERSION" ) ]
268
- #[ rustc_const_unstable ( feature = "const_str_from_utf8" , issue = "91006 " ) ]
268
+ #[ rustc_const_stable ( feature = "const_str_from_utf8" , since = "CURRENT_RUSTC_VERSION " ) ]
269
269
#[ rustc_diagnostic_item = "str_inherent_from_utf8_mut" ]
270
270
pub const fn from_utf8_mut ( v : & mut [ u8 ] ) -> Result < & mut str , Utf8Error > {
271
271
converts:: from_utf8_mut ( v)
You can’t perform that action at this time.
0 commit comments