@@ -710,7 +710,7 @@ impl char {
710
710
/// '𝕊'.encode_utf16(&mut b);
711
711
/// ```
712
712
#[ stable( feature = "unicode_encode_char" , since = "1.15.0" ) ]
713
- #[ rustc_const_unstable ( feature = "const_char_encode_utf16" , issue = "130660 " ) ]
713
+ #[ rustc_const_stable ( feature = "const_char_encode_utf16" , since = "CURRENT_RUSTC_VERSION " ) ]
714
714
#[ inline]
715
715
pub const fn encode_utf16 ( self , dst : & mut [ u16 ] ) -> & mut [ u16 ] {
716
716
encode_utf16_raw ( self as u32 , dst)
@@ -1822,9 +1822,10 @@ pub const fn encode_utf8_raw(code: u32, dst: &mut [u8]) -> &mut [u8] {
1822
1822
/// Panics if the buffer is not large enough.
1823
1823
/// A buffer of length 2 is large enough to encode any `char`.
1824
1824
#[ unstable( feature = "char_internals" , reason = "exposed only for libstd" , issue = "none" ) ]
1825
- #[ rustc_const_unstable ( feature = "const_char_encode_utf16" , issue = "130660 " ) ]
1825
+ #[ rustc_const_stable ( feature = "const_char_encode_utf16" , since = "CURRENT_RUSTC_VERSION " ) ]
1826
1826
#[ doc( hidden) ]
1827
1827
#[ inline]
1828
+ #[ rustc_allow_const_fn_unstable( const_eval_select) ]
1828
1829
pub const fn encode_utf16_raw ( mut code : u32 , dst : & mut [ u16 ] ) -> & mut [ u16 ] {
1829
1830
const fn panic_at_const ( _code : u32 , _len : usize , _dst_len : usize ) {
1830
1831
// Note that we cannot format in constant expressions.
0 commit comments