diff --git a/src/liballoc/lib.rs b/src/liballoc/lib.rs index 80532bbdda157..7e6ee4bd49d92 100644 --- a/src/liballoc/lib.rs +++ b/src/liballoc/lib.rs @@ -79,7 +79,6 @@ #![cfg_attr(test, allow(deprecated))] // rand #![cfg_attr(test, feature(placement_in))] -#![cfg_attr(not(test), feature(char_escape_debug))] #![cfg_attr(not(test), feature(core_float))] #![cfg_attr(not(test), feature(exact_size_is_empty))] #![cfg_attr(not(test), feature(slice_rotate))] diff --git a/src/libcore/char.rs b/src/libcore/char.rs index bb4cb0ac3b215..e8b81db07067c 100644 --- a/src/libcore/char.rs +++ b/src/libcore/char.rs @@ -379,7 +379,7 @@ pub trait CharExt { fn escape_unicode(self) -> EscapeUnicode; #[stable(feature = "core", since = "1.6.0")] fn escape_default(self) -> EscapeDefault; - #[unstable(feature = "char_escape_debug", issue = "35068")] + #[stable(feature = "char_escape_debug", since = "1.20.0")] fn escape_debug(self) -> EscapeDebug; #[stable(feature = "core", since = "1.6.0")] fn len_utf8(self) -> usize; @@ -776,24 +776,24 @@ impl fmt::Display for EscapeDefault { /// /// [`escape_debug`]: ../../std/primitive.char.html#method.escape_debug /// [`char`]: ../../std/primitive.char.html -#[unstable(feature = "char_escape_debug", issue = "35068")] +#[stable(feature = "char_escape_debug", since = "1.20.0")] #[derive(Clone, Debug)] pub struct EscapeDebug(EscapeDefault); -#[unstable(feature = "char_escape_debug", issue = "35068")] +#[stable(feature = "char_escape_debug", since = "1.20.0")] impl Iterator for EscapeDebug { type Item = char; fn next(&mut self) -> Option { self.0.next() } fn size_hint(&self) -> (usize, Option) { self.0.size_hint() } } -#[unstable(feature = "char_escape_debug", issue = "35068")] +#[stable(feature = "char_escape_debug", since = "1.20.0")] impl ExactSizeIterator for EscapeDebug { } #[unstable(feature = "fused", issue = "35602")] impl FusedIterator for EscapeDebug {} -#[unstable(feature = "char_escape_debug", issue = "35068")] +#[stable(feature = "char_escape_debug", since = "1.20.0")] impl fmt::Display for EscapeDebug { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { fmt::Display::fmt(&self.0, f) diff --git a/src/libcore/tests/lib.rs b/src/libcore/tests/lib.rs index 26e4c21dc8f4d..a85c347146b05 100644 --- a/src/libcore/tests/lib.rs +++ b/src/libcore/tests/lib.rs @@ -11,7 +11,6 @@ #![deny(warnings)] #![feature(box_syntax)] -#![feature(char_escape_debug)] #![feature(const_fn)] #![feature(core_float)] #![feature(core_private_bignum)] diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs index a012f2f42c19c..8fe0ecfcf5397 100644 --- a/src/libstd/lib.rs +++ b/src/libstd/lib.rs @@ -249,7 +249,6 @@ #![feature(cfg_target_has_atomic)] #![feature(cfg_target_thread_local)] #![feature(cfg_target_vendor)] -#![feature(char_escape_debug)] #![feature(char_error_internals)] #![feature(char_internals)] #![feature(collections_range)] diff --git a/src/libstd_unicode/char.rs b/src/libstd_unicode/char.rs index d6836418b4b5c..5cf05bff8c5b1 100644 --- a/src/libstd_unicode/char.rs +++ b/src/libstd_unicode/char.rs @@ -326,7 +326,6 @@ impl char { /// As an iterator: /// /// ``` - /// # #![feature(char_escape_debug)] /// for c in '\n'.escape_debug() { /// print!("{}", c); /// } @@ -336,7 +335,6 @@ impl char { /// Using `println!` directly: /// /// ``` - /// # #![feature(char_escape_debug)] /// println!("{}", '\n'.escape_debug()); /// ``` /// @@ -349,10 +347,9 @@ impl char { /// Using `to_string`: /// /// ``` - /// # #![feature(char_escape_debug)] /// assert_eq!('\n'.escape_debug().to_string(), "\\n"); /// ``` - #[unstable(feature = "char_escape_debug", issue = "35068")] + #[stable(feature = "char_escape_debug", since = "1.20.0")] #[inline] pub fn escape_debug(self) -> EscapeDebug { C::escape_debug(self) diff --git a/src/libstd_unicode/lib.rs b/src/libstd_unicode/lib.rs index 98624800b4c6c..698210e83f3e3 100644 --- a/src/libstd_unicode/lib.rs +++ b/src/libstd_unicode/lib.rs @@ -32,7 +32,6 @@ #![deny(warnings)] #![no_std] -#![feature(char_escape_debug)] #![feature(core_char_ext)] #![feature(str_internals)] #![feature(core_intrinsics)]