diff options
| author | Maybe Waffle <waffle.lapkin@gmail.com> | 2021-11-18 14:04:01 +0300 |
|---|---|---|
| committer | Maybe Waffle <waffle.lapkin@gmail.com> | 2021-11-18 14:04:01 +0300 |
| commit | 573a00e3f9207a3be67921e1046cab95150b4ab4 (patch) | |
| tree | b699c6cfca0519ec03863a4748a908efc8975e6e | |
| parent | cf6f64a963f3cf630ca4bc3688cf461a98d2c9ce (diff) | |
| download | rust-573a00e3f9207a3be67921e1046cab95150b4ab4.tar.gz rust-573a00e3f9207a3be67921e1046cab95150b4ab4.zip | |
Fill in tracking issues for `const_str_from_utf8` and `const_str_from_utf8_unchecked_mut` features
| -rw-r--r-- | library/core/src/str/converts.rs | 6 | ||||
| -rw-r--r-- | library/core/src/str/error.rs | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/library/core/src/str/converts.rs b/library/core/src/str/converts.rs index 8ac28669b30..ef26cbfb640 100644 --- a/library/core/src/str/converts.rs +++ b/library/core/src/str/converts.rs @@ -82,7 +82,7 @@ use super::Utf8Error; /// assert_eq!("💖", sparkle_heart); /// ``` #[stable(feature = "rust1", since = "1.0.0")] -#[rustc_const_unstable(feature = "const_str_from_utf8", issue = "none")] +#[rustc_const_unstable(feature = "const_str_from_utf8", issue = "91006")] pub const fn from_utf8(v: &[u8]) -> Result<&str, Utf8Error> { // This should use `?` again, once it's `const` match run_utf8_validation(v) { @@ -125,7 +125,7 @@ pub const fn from_utf8(v: &[u8]) -> Result<&str, Utf8Error> { /// See the docs for [`Utf8Error`] for more details on the kinds of /// errors that can be returned. #[stable(feature = "str_mut_extras", since = "1.20.0")] -#[rustc_const_unstable(feature = "const_str_from_utf8", issue = "none")] +#[rustc_const_unstable(feature = "const_str_from_utf8", issue = "91006")] pub const fn from_utf8_mut(v: &mut [u8]) -> Result<&mut str, Utf8Error> { // This should use `?` again, once it's `const` match run_utf8_validation(v) { @@ -196,7 +196,7 @@ pub const unsafe fn from_utf8_unchecked(v: &[u8]) -> &str { #[inline] #[must_use] #[stable(feature = "str_mut_extras", since = "1.20.0")] -#[rustc_const_unstable(feature = "const_str_from_utf8_unchecked_mut", issue = "none")] +#[rustc_const_unstable(feature = "const_str_from_utf8_unchecked_mut", issue = "91005")] pub const unsafe fn from_utf8_unchecked_mut(v: &mut [u8]) -> &mut str { // SAFETY: the caller must guarantee that the bytes `v` // are valid UTF-8, thus the cast to `*mut str` is safe. diff --git a/library/core/src/str/error.rs b/library/core/src/str/error.rs index 3d0aeb52016..a127dd57eee 100644 --- a/library/core/src/str/error.rs +++ b/library/core/src/str/error.rs @@ -72,7 +72,7 @@ impl Utf8Error { /// assert_eq!(1, error.valid_up_to()); /// ``` #[stable(feature = "utf8_error", since = "1.5.0")] - #[rustc_const_unstable(feature = "const_str_from_utf8", issue = "none")] + #[rustc_const_unstable(feature = "const_str_from_utf8", issue = "91006")] #[must_use] #[inline] pub const fn valid_up_to(&self) -> usize { @@ -95,7 +95,7 @@ impl Utf8Error { /// /// [U+FFFD]: ../../std/char/constant.REPLACEMENT_CHARACTER.html #[stable(feature = "utf8_error_error_len", since = "1.20.0")] - #[rustc_const_unstable(feature = "const_str_from_utf8", issue = "none")] + #[rustc_const_unstable(feature = "const_str_from_utf8", issue = "91006")] #[must_use] #[inline] pub const fn error_len(&self) -> Option<usize> { |
