File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -82,9 +82,9 @@ 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 = "91006 " ) ]
85
+ #[ rustc_const_stable ( feature = "const_str_from_utf8_shared " , since = "1.63.0 " ) ]
86
86
pub const fn from_utf8 ( v : & [ u8 ] ) -> Result < & str , Utf8Error > {
87
- // This should use `?` again, once it's `const`
87
+ // FIXME: This should use `?` again, once it's `const`
88
88
match run_utf8_validation ( v) {
89
89
Ok ( _) => {
90
90
// SAFETY: validation succeeded.
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ impl Utf8Error {
72
72
/// assert_eq!(1, error.valid_up_to());
73
73
/// ```
74
74
#[ stable( feature = "utf8_error" , since = "1.5.0" ) ]
75
- #[ rustc_const_unstable ( feature = "const_str_from_utf8 " , issue = "91006 " ) ]
75
+ #[ rustc_const_stable ( feature = "const_str_from_utf8_shared " , since = "1.63.0 " ) ]
76
76
#[ must_use]
77
77
#[ inline]
78
78
pub const fn valid_up_to ( & self ) -> usize {
@@ -95,11 +95,11 @@ impl Utf8Error {
95
95
///
96
96
/// [U+FFFD]: ../../std/char/constant.REPLACEMENT_CHARACTER.html
97
97
#[ stable( feature = "utf8_error_error_len" , since = "1.20.0" ) ]
98
- #[ rustc_const_unstable ( feature = "const_str_from_utf8 " , issue = "91006 " ) ]
98
+ #[ rustc_const_stable ( feature = "const_str_from_utf8_shared " , since = "1.63.0 " ) ]
99
99
#[ must_use]
100
100
#[ inline]
101
101
pub const fn error_len ( & self ) -> Option < usize > {
102
- // This should become `map` again, once it's `const`
102
+ // FIXME: This should become `map` again, once it's `const`
103
103
match self . error_len {
104
104
Some ( len) => Some ( len as usize ) ,
105
105
None => None ,
You can’t perform that action at this time.
0 commit comments