Skip to content

Commit 252ef28

Browse files
committed
std: Update stable since for core::char
Also add `#[doc(hidden)]` to a few internal functions.
1 parent b4a2823 commit 252ef28

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/libcore/char.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
1515
#![allow(non_snake_case)]
1616
#![doc(primitive = "char")]
17-
#![stable(feature = "rust1", since = "1.0.0")]
17+
#![stable(feature = "core_char", since = "1.2.0")]
1818

1919
use iter::Iterator;
2020
use mem::transmute;
@@ -225,6 +225,7 @@ impl CharExt for char {
225225
#[inline]
226226
#[unstable(feature = "char_internals",
227227
reason = "this function should not be exposed publicly")]
228+
#[doc(hidden)]
228229
pub fn encode_utf8_raw(code: u32, dst: &mut [u8]) -> Option<usize> {
229230
// Marked #[inline] to allow llvm optimizing it away
230231
if code < MAX_ONE_B && !dst.is_empty() {
@@ -258,6 +259,7 @@ pub fn encode_utf8_raw(code: u32, dst: &mut [u8]) -> Option<usize> {
258259
#[inline]
259260
#[unstable(feature = "char_internals",
260261
reason = "this function should not be exposed publicly")]
262+
#[doc(hidden)]
261263
pub fn encode_utf16_raw(mut ch: u32, dst: &mut [u16]) -> Option<usize> {
262264
// Marked #[inline] to allow llvm optimizing it away
263265
if (ch & 0xFFFF) == ch && !dst.is_empty() {

0 commit comments

Comments
 (0)