File tree 2 files changed +2
-3
lines changed
2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -674,7 +674,7 @@ impl char {
674
674
/// 'ß'.encode_utf8(&mut b);
675
675
/// ```
676
676
#[ stable( feature = "unicode_encode_char" , since = "1.15.0" ) ]
677
- #[ rustc_const_unstable ( feature = "const_char_encode_utf8" , issue = "130512 " ) ]
677
+ #[ rustc_const_stable ( feature = "const_char_encode_utf8" , since = "CURRENT_RUSTC_VERSION " ) ]
678
678
#[ inline]
679
679
pub const fn encode_utf8 ( self , dst : & mut [ u8 ] ) -> & mut str {
680
680
// SAFETY: `char` is not a surrogate, so this is valid UTF-8.
@@ -1770,7 +1770,7 @@ const fn len_utf16(code: u32) -> usize {
1770
1770
/// Panics if the buffer is not large enough.
1771
1771
/// A buffer of length four is large enough to encode any `char`.
1772
1772
#[ unstable( feature = "char_internals" , reason = "exposed only for libstd" , issue = "none" ) ]
1773
- #[ rustc_const_unstable ( feature = "const_char_encode_utf8" , issue = "130512 " ) ]
1773
+ #[ rustc_const_stable ( feature = "const_char_encode_utf8" , since = "CURRENT_RUSTC_VERSION " ) ]
1774
1774
#[ doc( hidden) ]
1775
1775
#[ inline]
1776
1776
pub const fn encode_utf8_raw ( code : u32 , dst : & mut [ u8 ] ) -> & mut [ u8 ] {
Original file line number Diff line number Diff line change 119
119
#![ feature( const_bigint_helper_methods) ]
120
120
#![ feature( const_black_box) ]
121
121
#![ feature( const_char_encode_utf16) ]
122
- #![ feature( const_char_encode_utf8) ]
123
122
#![ feature( const_eval_select) ]
124
123
#![ feature( const_exact_div) ]
125
124
#![ feature( const_float_classify) ]
You can’t perform that action at this time.
0 commit comments