File tree Expand file tree Collapse file tree 3 files changed +1
-3
lines changed Expand file tree Collapse file tree 3 files changed +1
-3
lines changed Original file line number Diff line number Diff line change 2828#![ feature( string_remove_matches) ]
2929#![ feature( const_btree_len) ]
3030#![ feature( const_trait_impl) ]
31- #![ feature( const_str_from_utf8) ]
3231#![ feature( panic_update_hook) ]
3332#![ feature( pointer_is_aligned_to) ]
3433#![ 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> {
126126/// See the docs for [`Utf8Error`] for more details on the kinds of
127127/// errors that can be returned.
128128#[ 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 " ) ]
130130#[ rustc_diagnostic_item = "str_from_utf8_mut" ]
131131pub const fn from_utf8_mut ( v : & mut [ u8 ] ) -> Result < & mut str , Utf8Error > {
132132 // FIXME(const-hack): This should use `?` again, once it's `const`
Original file line number Diff line number Diff line change @@ -273,7 +273,6 @@ impl str {
273273 /// See the docs for [`Utf8Error`] for more details on the kinds of
274274 /// errors that can be returned.
275275 #[ unstable( feature = "inherent_str_constructors" , issue = "131114" ) ]
276- #[ rustc_const_unstable( feature = "const_str_from_utf8" , issue = "91006" ) ]
277276 pub const fn from_utf8_mut ( v : & mut [ u8 ] ) -> Result < & mut str , Utf8Error > {
278277 converts:: from_utf8_mut ( v)
279278 }
You can’t perform that action at this time.
0 commit comments