Skip to content

Commit a0cd2e0

Browse files
committed
Revert "make encode_utf8_raw_unchecked const-stable"
This reverts commit d83dbb5.
1 parent a2effde commit a0cd2e0

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

library/core/src/char/methods.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1824,10 +1824,8 @@ pub const fn encode_utf8_raw(code: u32, dst: &mut [u8]) -> &mut [u8] {
18241824
///
18251825
/// For a safe version of this function, see the [`encode_utf8_raw`] function.
18261826
#[unstable(feature = "char_internals", reason = "exposed only for libstd", issue = "none")]
1827-
#[rustc_const_stable(feature = "const_char_encode_utf8", since = "CURRENT_RUSTC_VERSION")]
18281827
#[doc(hidden)]
18291828
#[inline]
1830-
#[cfg_attr(bootstrap, rustc_allow_const_fn_unstable(const_mut_refs))]
18311829
pub const unsafe fn encode_utf8_raw_unchecked(code: u32, dst: *mut u8) {
18321830
let len = len_utf8(code);
18331831
// SAFETY: The caller must guarantee that the buffer pointed to by `dst`

0 commit comments

Comments
 (0)