diff options
| author | bors <bors@rust-lang.org> | 2014-12-27 21:51:43 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-12-27 21:51:43 +0000 |
| commit | 070ab63807dc80fa6a6c5ee80531284761ab42de (patch) | |
| tree | 52706298e8d708cccdea4ad1781d58ea26887db1 /src/libsyntax/ext | |
| parent | 0201334439393bed205c1148bed425b80aab8c22 (diff) | |
| parent | 12e60719c4cd2f1f4f8790eb0452869c5816f7dd (diff) | |
| download | rust-070ab63807dc80fa6a6c5ee80531284761ab42de.tar.gz rust-070ab63807dc80fa6a6c5ee80531284761ab42de.zip | |
auto merge of #19916 : SimonSapin/rust/ascii-reform, r=sfackler
Implements [RFC 486](https://github.com/rust-lang/rfcs/pull/486). Fixes #19908.
* Rename `to_ascii_{lower,upper}` to `to_ascii_{lower,upper}case`, per #14401
* Remove the `Ascii` type and associated traits: `AsciiCast`, `OwnedAsciiCast`, `AsciiStr`, `IntoBytes`, and `IntoString`.
* As a replacement, add `.is_ascii()` to `AsciiExt`, and implement `AsciiExt` for `u8` and `char`.
[breaking-change]
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/bytes.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsyntax/ext/bytes.rs b/src/libsyntax/ext/bytes.rs index 2d1d13f16d0..2844c0b523e 100644 --- a/src/libsyntax/ext/bytes.rs +++ b/src/libsyntax/ext/bytes.rs @@ -15,6 +15,7 @@ use codemap::Span; use ext::base::*; use ext::base; use ext::build::AstBuilder; +use std::ascii::AsciiExt; pub fn expand_syntax_ext<'cx>(cx: &'cx mut ExtCtxt, |
