diff options
| author | Simon Sapin <simon.sapin@exyr.org> | 2014-12-07 01:55:34 +0000 |
|---|---|---|
| committer | Simon Sapin <simon.sapin@exyr.org> | 2014-12-25 12:19:37 +0100 |
| commit | 3a6ccdc263d9a169c2d317a6f78664e1f18d3b15 (patch) | |
| tree | b8a6d0b4ee3fdf62acf30ef38106306d3421ff61 /src/libsyntax | |
| parent | 1e5811ef9271644db0d0ddaae351976b0d4abdd2 (diff) | |
| download | rust-3a6ccdc263d9a169c2d317a6f78664e1f18d3b15.tar.gz rust-3a6ccdc263d9a169c2d317a6f78664e1f18d3b15.zip | |
Remove Ascii, AsciiCast, OwnedAsciiCast, AsciiStr, IntoBytes, IntoString.
As a replacement, add is_ascii() to AsciiExt, and implement AsciiExt for u8 and char. [breaking-change]
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/ext/bytes.rs | 1 | ||||
| -rw-r--r-- | src/libsyntax/feature_gate.rs | 2 |
2 files changed, 3 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, diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index d53a4b0e8d1..28f7a78ddd0 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -31,6 +31,8 @@ use visit::Visitor; use parse::token; use std::slice; +use std::ascii::AsciiExt; + // if you change this list without updating src/doc/reference.md, @cmr will be sad static KNOWN_FEATURES: &'static [(&'static str, Status)] = &[ |
