@@ -82,7 +82,7 @@ use super::Utf8Error;
82
82
/// assert_eq!("💖", sparkle_heart);
83
83
/// ```
84
84
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
85
- #[ rustc_const_unstable( feature = "const_str_from_utf8" , issue = "none " ) ]
85
+ #[ rustc_const_unstable( feature = "const_str_from_utf8" , issue = "91006 " ) ]
86
86
pub const fn from_utf8 ( v : & [ u8 ] ) -> Result < & str , Utf8Error > {
87
87
// This should use `?` again, once it's `const`
88
88
match run_utf8_validation ( v) {
@@ -125,7 +125,7 @@ pub const fn from_utf8(v: &[u8]) -> Result<&str, Utf8Error> {
125
125
/// See the docs for [`Utf8Error`] for more details on the kinds of
126
126
/// errors that can be returned.
127
127
#[ stable( feature = "str_mut_extras" , since = "1.20.0" ) ]
128
- #[ rustc_const_unstable( feature = "const_str_from_utf8" , issue = "none " ) ]
128
+ #[ rustc_const_unstable( feature = "const_str_from_utf8" , issue = "91006 " ) ]
129
129
pub const fn from_utf8_mut ( v : & mut [ u8 ] ) -> Result < & mut str , Utf8Error > {
130
130
// This should use `?` again, once it's `const`
131
131
match run_utf8_validation ( v) {
@@ -196,7 +196,7 @@ pub const unsafe fn from_utf8_unchecked(v: &[u8]) -> &str {
196
196
#[ inline]
197
197
#[ must_use]
198
198
#[ stable( feature = "str_mut_extras" , since = "1.20.0" ) ]
199
- #[ rustc_const_unstable( feature = "const_str_from_utf8_unchecked_mut" , issue = "none " ) ]
199
+ #[ rustc_const_unstable( feature = "const_str_from_utf8_unchecked_mut" , issue = "91005 " ) ]
200
200
pub const unsafe fn from_utf8_unchecked_mut ( v : & mut [ u8 ] ) -> & mut str {
201
201
// SAFETY: the caller must guarantee that the bytes `v`
202
202
// are valid UTF-8, thus the cast to `*mut str` is safe.
0 commit comments