From 4c9c6e824b20cc31b2e6f5ec44ef03aac465f001 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 20 Jul 2017 15:38:59 -0700 Subject: std: Stabilize `char_escape_debug` Stabilizes: * `::escape_debug` * `std::char::EscapeDebug` Closes #35068 --- src/libstd_unicode/char.rs | 5 +---- src/libstd_unicode/lib.rs | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) (limited to 'src/libstd_unicode') diff --git a/src/libstd_unicode/char.rs b/src/libstd_unicode/char.rs index d6836418b4b..5cf05bff8c5 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 98624800b4c..698210e83f3 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)] -- cgit 1.4.1-3-g733a5