Skip to content

Commit c116ae3

Browse files
committed
Auto merge of #32020 - alexcrichton:stabilize-into-ascii, r=brson
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`
2 parents 21fb3ce + 6f9afba commit c116ae3

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

Diff for: src/libstd/ascii.rs

+4-8
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,6 @@ pub trait AsciiExt {
169169
/// # Examples
170170
///
171171
/// ```
172-
/// #![feature(ascii)]
173-
///
174172
/// use std::ascii::AsciiExt;
175173
///
176174
/// let ascii: String = "a".to_owned();
@@ -179,7 +177,7 @@ pub trait AsciiExt {
179177
///
180178
/// assert_eq!(upper, "A");
181179
/// ```
182-
#[unstable(feature = "ascii", issue = "27809")]
180+
#[stable(feature = "into_ascii", since = "1.8.0")]
183181
fn into_ascii_uppercase(self) -> Self::Owned where Self: Sized {
184182
self.to_ascii_uppercase()
185183
}
@@ -192,8 +190,6 @@ pub trait AsciiExt {
192190
/// # Examples
193191
///
194192
/// ```
195-
/// #![feature(ascii)]
196-
///
197193
/// use std::ascii::AsciiExt;
198194
///
199195
/// let ascii: String = "A".to_owned();
@@ -202,15 +198,15 @@ pub trait AsciiExt {
202198
///
203199
/// assert_eq!(lower, "a");
204200
/// ```
205-
#[unstable(feature = "ascii", issue = "27809")]
201+
#[stable(feature = "into_ascii", since = "1.8.0")]
206202
fn into_ascii_lowercase(self) -> Self::Owned where Self: Sized {
207203
self.to_ascii_lowercase()
208204
}
209205
}
210206

211207
/// Implement `into_ascii_lowercase` and `into_ascii_uppercase` without memory allocation,
212208
/// defer other methods to `str`.
213-
#[unstable(feature = "ascii", issue = "27809")]
209+
#[stable(feature = "into_ascii", since = "1.8.0")]
214210
impl AsciiExt for String {
215211
type Owned = Self;
216212

@@ -242,7 +238,7 @@ impl AsciiExt for String {
242238

243239
/// Implement `into_ascii_lowercase` and `into_ascii_uppercase` without memory allocation,
244240
/// defer other methods to `[u8]`.
245-
#[unstable(feature = "ascii", issue = "27809")]
241+
#[stable(feature = "into_ascii", since = "1.8.0")]
246242
impl AsciiExt for Vec<u8> {
247243
type Owned = Self;
248244

0 commit comments

Comments
 (0)