Skip to content

Commit 9906a9b

Browse files
committed
---
yaml --- r: 271867 b: refs/heads/beta c: 4d1140b h: refs/heads/master i: 271865: c823397 271863: 7d62193
1 parent 5e09878 commit 9906a9b

File tree

2 files changed

+1
-107
lines changed

2 files changed

+1
-107
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ refs/tags/0.9: 36870b185fc5f5486636d4515f0e22677493f225
2323
refs/tags/0.10: ac33f2b15782272ae348dbd7b14b8257b2148b5a
2424
refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26-
refs/heads/beta: 2879d940a16adeaccc1bff4ad0eeb14ad7c91b37
26+
refs/heads/beta: 4d1140b749754c38efcfe485d96f89687e7b0e81
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
2828
refs/heads/tmp: e06d2ad9fcd5027bcaac5b08fc9aa39a49d0ecd3
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f

branches/beta/src/libstd/ascii.rs

Lines changed: 0 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -160,112 +160,6 @@ pub trait AsciiExt {
160160
/// ```
161161
#[unstable(feature = "ascii", issue = "27809")]
162162
fn make_ascii_lowercase(&mut self);
163-
164-
/// Converts this type to its ASCII upper case,
165-
/// consuming the value to avoid allocating memory where `to_ascii_uppercase` would.
166-
///
167-
/// See `to_ascii_uppercase` for more information.
168-
///
169-
/// # Examples
170-
///
171-
/// ```
172-
/// #![feature(ascii)]
173-
///
174-
/// use std::ascii::AsciiExt;
175-
///
176-
/// let ascii: String = "a".to_owned();
177-
///
178-
/// let upper = ascii.into_ascii_uppercase();
179-
///
180-
/// assert_eq!(upper, "A");
181-
/// ```
182-
#[unstable(feature = "ascii", issue = "27809")]
183-
fn into_ascii_uppercase(self) -> Self::Owned where Self: Sized {
184-
self.to_ascii_uppercase()
185-
}
186-
187-
/// Converts this type to its ASCII lower case,
188-
/// consuming the value to avoid allocating memory where `to_ascii_lowercase` would.
189-
///
190-
/// See `to_ascii_lowercase` for more information.
191-
///
192-
/// # Examples
193-
///
194-
/// ```
195-
/// #![feature(ascii)]
196-
///
197-
/// use std::ascii::AsciiExt;
198-
///
199-
/// let ascii: String = "A".to_owned();
200-
///
201-
/// let lower = ascii.into_ascii_lowercase();
202-
///
203-
/// assert_eq!(lower, "a");
204-
/// ```
205-
#[unstable(feature = "ascii", issue = "27809")]
206-
fn into_ascii_lowercase(self) -> Self::Owned where Self: Sized {
207-
self.to_ascii_lowercase()
208-
}
209-
}
210-
211-
/// Implement `into_ascii_lowercase` and `into_ascii_uppercase` without memory allocation,
212-
/// defer other methods to `str`.
213-
#[unstable(feature = "ascii", issue = "27809")]
214-
impl AsciiExt for String {
215-
type Owned = Self;
216-
217-
#[inline] fn is_ascii(&self) -> bool { (**self).is_ascii() }
218-
#[inline] fn to_ascii_uppercase(&self) -> Self { (**self).to_ascii_uppercase() }
219-
#[inline] fn to_ascii_lowercase(&self) -> Self { (**self).to_ascii_lowercase() }
220-
#[inline] fn eq_ignore_ascii_case(&self, o: &Self) -> bool { (**self).eq_ignore_ascii_case(o) }
221-
#[inline] fn make_ascii_uppercase(&mut self) { (**self).make_ascii_uppercase() }
222-
#[inline] fn make_ascii_lowercase(&mut self) { (**self).make_ascii_lowercase() }
223-
224-
fn into_ascii_lowercase(mut self) -> Self {
225-
unsafe {
226-
for byte in self.as_mut_vec() {
227-
*byte = byte.to_ascii_lowercase()
228-
}
229-
}
230-
self
231-
}
232-
233-
fn into_ascii_uppercase(mut self) -> Self {
234-
unsafe {
235-
for byte in self.as_mut_vec() {
236-
*byte = byte.to_ascii_uppercase()
237-
}
238-
}
239-
self
240-
}
241-
}
242-
243-
/// Implement `into_ascii_lowercase` and `into_ascii_uppercase` without memory allocation,
244-
/// defer other methods to `[u8]`.
245-
#[unstable(feature = "ascii", issue = "27809")]
246-
impl AsciiExt for Vec<u8> {
247-
type Owned = Self;
248-
249-
#[inline] fn is_ascii(&self) -> bool { (**self).is_ascii() }
250-
#[inline] fn to_ascii_uppercase(&self) -> Self { (**self).to_ascii_uppercase() }
251-
#[inline] fn to_ascii_lowercase(&self) -> Self { (**self).to_ascii_lowercase() }
252-
#[inline] fn eq_ignore_ascii_case(&self, o: &Self) -> bool { (**self).eq_ignore_ascii_case(o) }
253-
#[inline] fn make_ascii_uppercase(&mut self) { (**self).make_ascii_uppercase() }
254-
#[inline] fn make_ascii_lowercase(&mut self) { (**self).make_ascii_lowercase() }
255-
256-
fn into_ascii_lowercase(mut self) -> Self {
257-
for byte in &mut self {
258-
*byte = byte.to_ascii_lowercase()
259-
}
260-
self
261-
}
262-
263-
fn into_ascii_uppercase(mut self) -> Self {
264-
for byte in &mut self {
265-
*byte = byte.to_ascii_uppercase()
266-
}
267-
self
268-
}
269163
}
270164

271165
#[stable(feature = "rust1", since = "1.0.0")]

0 commit comments

Comments
 (0)