Skip to content

Commit 573a00e

Browse files
committed
Fill in tracking issues for const_str_from_utf8 and const_str_from_utf8_unchecked_mut features
1 parent cf6f64a commit 573a00e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

library/core/src/str/converts.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ use super::Utf8Error;
8282
/// assert_eq!("💖", sparkle_heart);
8383
/// ```
8484
#[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")]
8686
pub const fn from_utf8(v: &[u8]) -> Result<&str, Utf8Error> {
8787
// This should use `?` again, once it's `const`
8888
match run_utf8_validation(v) {
@@ -125,7 +125,7 @@ pub const fn from_utf8(v: &[u8]) -> Result<&str, Utf8Error> {
125125
/// See the docs for [`Utf8Error`] for more details on the kinds of
126126
/// errors that can be returned.
127127
#[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")]
129129
pub const fn from_utf8_mut(v: &mut [u8]) -> Result<&mut str, Utf8Error> {
130130
// This should use `?` again, once it's `const`
131131
match run_utf8_validation(v) {
@@ -196,7 +196,7 @@ pub const unsafe fn from_utf8_unchecked(v: &[u8]) -> &str {
196196
#[inline]
197197
#[must_use]
198198
#[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")]
200200
pub const unsafe fn from_utf8_unchecked_mut(v: &mut [u8]) -> &mut str {
201201
// SAFETY: the caller must guarantee that the bytes `v`
202202
// are valid UTF-8, thus the cast to `*mut str` is safe.

library/core/src/str/error.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ impl Utf8Error {
7272
/// assert_eq!(1, error.valid_up_to());
7373
/// ```
7474
#[stable(feature = "utf8_error", since = "1.5.0")]
75-
#[rustc_const_unstable(feature = "const_str_from_utf8", issue = "none")]
75+
#[rustc_const_unstable(feature = "const_str_from_utf8", issue = "91006")]
7676
#[must_use]
7777
#[inline]
7878
pub const fn valid_up_to(&self) -> usize {
@@ -95,7 +95,7 @@ impl Utf8Error {
9595
///
9696
/// [U+FFFD]: ../../std/char/constant.REPLACEMENT_CHARACTER.html
9797
#[stable(feature = "utf8_error_error_len", since = "1.20.0")]
98-
#[rustc_const_unstable(feature = "const_str_from_utf8", issue = "none")]
98+
#[rustc_const_unstable(feature = "const_str_from_utf8", issue = "91006")]
9999
#[must_use]
100100
#[inline]
101101
pub const fn error_len(&self) -> Option<usize> {

0 commit comments

Comments
 (0)