]> git.lizzy.rs Git - rust.git/commitdiff
std: Stabilize `into_*` ASCII methods
authorAlex Crichton <alex@alexcrichton.com>
Thu, 3 Mar 2016 01:03:00 +0000 (17:03 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Thu, 3 Mar 2016 17:11:59 +0000 (09:11 -0800)
These were intended to land in stable 1.8 but were just waiting for the
implementation PR, so now they're landing. Specifically this PR stabilizes:

* `AsciiExt::into_ascii_uppercase`
* `AsciiExt::into_ascii_lowercase`
* `AsciiExt for Vec<u8>`
* `AsciiExt for String`

src/libstd/ascii.rs

index 587d1d422587b189d60fed6004caeb6a0c8627b6..98685cae870725c0e7dbf91e66f369d75a4d8389 100644 (file)
@@ -169,8 +169,6 @@ pub trait AsciiExt {
     /// # Examples
     ///
     /// ```
-    /// #![feature(ascii)]
-    ///
     /// use std::ascii::AsciiExt;
     ///
     /// let ascii: String = "a".to_owned();
@@ -179,7 +177,7 @@ pub trait AsciiExt {
     ///
     /// assert_eq!(upper, "A");
     /// ```
-    #[unstable(feature = "ascii", issue = "27809")]
+    #[stable(feature = "into_ascii", since = "1.8.0")]
     fn into_ascii_uppercase(self) -> Self::Owned where Self: Sized {
         self.to_ascii_uppercase()
     }
@@ -192,8 +190,6 @@ fn into_ascii_uppercase(self) -> Self::Owned where Self: Sized {
     /// # Examples
     ///
     /// ```
-    /// #![feature(ascii)]
-    ///
     /// use std::ascii::AsciiExt;
     ///
     /// let ascii: String = "A".to_owned();
@@ -202,7 +198,7 @@ fn into_ascii_uppercase(self) -> Self::Owned where Self: Sized {
     ///
     /// assert_eq!(lower, "a");
     /// ```
-    #[unstable(feature = "ascii", issue = "27809")]
+    #[stable(feature = "into_ascii", since = "1.8.0")]
     fn into_ascii_lowercase(self) -> Self::Owned where Self: Sized {
         self.to_ascii_lowercase()
     }
@@ -210,7 +206,7 @@ fn into_ascii_lowercase(self) -> Self::Owned where Self: Sized {
 
 /// Implement `into_ascii_lowercase` and `into_ascii_uppercase` without memory allocation,
 /// defer other methods to `str`.
-#[unstable(feature = "ascii", issue = "27809")]
+#[stable(feature = "into_ascii", since = "1.8.0")]
 impl AsciiExt for String {
     type Owned = Self;
 
@@ -242,7 +238,7 @@ fn into_ascii_uppercase(mut self) -> Self {
 
 /// Implement `into_ascii_lowercase` and `into_ascii_uppercase` without memory allocation,
 /// defer other methods to `[u8]`.
-#[unstable(feature = "ascii", issue = "27809")]
+#[stable(feature = "into_ascii", since = "1.8.0")]
 impl AsciiExt for Vec<u8> {
     type Owned = Self;