Skip to content

Commit 48fd993

Browse files
committed
std: Stabilize into_* ASCII methods
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`
1 parent b9e61c9 commit 48fd993

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libstd/ascii.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ pub trait AsciiExt {
179179
///
180180
/// assert_eq!(upper, "A");
181181
/// ```
182-
#[unstable(feature = "ascii", issue = "27809")]
182+
#[stable(feature = "into_ascii", since = "1.8.0")]
183183
fn into_ascii_uppercase(self) -> Self::Owned where Self: Sized {
184184
self.to_ascii_uppercase()
185185
}
@@ -202,15 +202,15 @@ pub trait AsciiExt {
202202
///
203203
/// assert_eq!(lower, "a");
204204
/// ```
205-
#[unstable(feature = "ascii", issue = "27809")]
205+
#[stable(feature = "into_ascii", since = "1.8.0")]
206206
fn into_ascii_lowercase(self) -> Self::Owned where Self: Sized {
207207
self.to_ascii_lowercase()
208208
}
209209
}
210210

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

@@ -242,7 +242,7 @@ impl AsciiExt for String {
242242

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

0 commit comments

Comments
 (0)