File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -673,7 +673,7 @@ impl char {
673
673
/// 'ß'.encode_utf8(&mut b);
674
674
/// ```
675
675
#[ stable( feature = "unicode_encode_char" , since = "1.15.0" ) ]
676
- #[ rustc_const_stable ( feature = "const_char_encode_utf8" , issue = "130512" ) ]
676
+ #[ rustc_const_unstable ( feature = "const_char_encode_utf8" , issue = "130512" ) ]
677
677
#[ inline]
678
678
pub const fn encode_utf8 ( self , dst : & mut [ u8 ] ) -> & mut str {
679
679
// SAFETY: `char` is not a surrogate, so this is valid UTF-8.
@@ -1762,6 +1762,7 @@ const fn len_utf8(code: u32) -> usize {
1762
1762
/// Panics if the buffer is not large enough.
1763
1763
/// A buffer of length four is large enough to encode any `char`.
1764
1764
#[ unstable( feature = "char_internals" , reason = "exposed only for libstd" , issue = "none" ) ]
1765
+ #[ rustc_const_unstable( feature = "const_char_encode_utf8" , issue = "130512" ) ]
1765
1766
#[ doc( hidden) ]
1766
1767
#[ inline]
1767
1768
pub const fn encode_utf8_raw ( code : u32 , dst : & mut [ u8 ] ) -> & mut [ u8 ] {
You can’t perform that action at this time.
0 commit comments