summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-06-11 09:54:43 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-06-17 09:07:17 -0700
commit252ef28593458b2479735b4f85c8568bb0f0a3d5 (patch)
treeb9e284fbe3ed9be0581df61d47f33ab43dd38142
parentb4a2823cd6c6f1a560469587f902f3a1f49d3c79 (diff)
downloadrust-252ef28593458b2479735b4f85c8568bb0f0a3d5.tar.gz
rust-252ef28593458b2479735b4f85c8568bb0f0a3d5.zip
std: Update stable since for `core::char`
Also add `#[doc(hidden)]` to a few internal functions.
-rw-r--r--src/libcore/char.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libcore/char.rs b/src/libcore/char.rs
index 9f5944d3c9c..12aa06667a1 100644
--- a/src/libcore/char.rs
+++ b/src/libcore/char.rs
@@ -14,7 +14,7 @@
 
 #![allow(non_snake_case)]
 #![doc(primitive = "char")]
-#![stable(feature = "rust1", since = "1.0.0")]
+#![stable(feature = "core_char", since = "1.2.0")]
 
 use iter::Iterator;
 use mem::transmute;
@@ -225,6 +225,7 @@ impl CharExt for char {
 #[inline]
 #[unstable(feature = "char_internals",
            reason = "this function should not be exposed publicly")]
+#[doc(hidden)]
 pub fn encode_utf8_raw(code: u32, dst: &mut [u8]) -> Option<usize> {
     // Marked #[inline] to allow llvm optimizing it away
     if code < MAX_ONE_B && !dst.is_empty() {
@@ -258,6 +259,7 @@ pub fn encode_utf8_raw(code: u32, dst: &mut [u8]) -> Option<usize> {
 #[inline]
 #[unstable(feature = "char_internals",
            reason = "this function should not be exposed publicly")]
+#[doc(hidden)]
 pub fn encode_utf16_raw(mut ch: u32, dst: &mut [u16]) -> Option<usize> {
     // Marked #[inline] to allow llvm optimizing it away
     if (ch & 0xFFFF) == ch && !dst.is_empty() {