Skip to content

Commit cc96551

Browse files
committed
Fix stability attributes.
1 parent 2f8f5f0 commit cc96551

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

library/core/src/char/methods.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ impl char {
673673
/// 'ß'.encode_utf8(&mut b);
674674
/// ```
675675
#[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")]
677677
#[inline]
678678
pub const fn encode_utf8(self, dst: &mut [u8]) -> &mut str {
679679
// SAFETY: `char` is not a surrogate, so this is valid UTF-8.
@@ -1762,6 +1762,7 @@ const fn len_utf8(code: u32) -> usize {
17621762
/// Panics if the buffer is not large enough.
17631763
/// A buffer of length four is large enough to encode any `char`.
17641764
#[unstable(feature = "char_internals", reason = "exposed only for libstd", issue = "none")]
1765+
#[rustc_const_unstable(feature = "const_char_encode_utf8", issue = "130512")]
17651766
#[doc(hidden)]
17661767
#[inline]
17671768
pub const fn encode_utf8_raw(code: u32, dst: &mut [u8]) -> &mut [u8] {

0 commit comments

Comments
 (0)