diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2017-07-20 15:38:59 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2017-07-25 07:09:31 -0700 |
| commit | 4c9c6e824b20cc31b2e6f5ec44ef03aac465f001 (patch) | |
| tree | 0289da076e612dafef6afd6e8c62f16797347029 /src/libstd_unicode | |
| parent | 5c126bdee6af3feef2d51956debab72f933078c6 (diff) | |
| download | rust-4c9c6e824b20cc31b2e6f5ec44ef03aac465f001.tar.gz rust-4c9c6e824b20cc31b2e6f5ec44ef03aac465f001.zip | |
std: Stabilize `char_escape_debug`
Stabilizes: * `<char>::escape_debug` * `std::char::EscapeDebug` Closes #35068
Diffstat (limited to 'src/libstd_unicode')
| -rw-r--r-- | src/libstd_unicode/char.rs | 5 | ||||
| -rw-r--r-- | src/libstd_unicode/lib.rs | 1 |
2 files changed, 1 insertions, 5 deletions
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)] |
