Skip to content

Commit 2f8f5f0

Browse files
committed
Add stability attribute.
1 parent 28e9756 commit 2f8f5f0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/core/src/char/methods.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -673,6 +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")]
676677
#[inline]
677678
pub const fn encode_utf8(self, dst: &mut [u8]) -> &mut str {
678679
// SAFETY: `char` is not a surrogate, so this is valid UTF-8.

0 commit comments

Comments
 (0)