diff options
| author | Brian Anderson <banderson@mozilla.com> | 2015-04-15 16:11:56 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2015-04-15 16:13:26 -0700 |
| commit | 5a3a599428f5af024857d19b5d360b148e885fa2 (patch) | |
| tree | 7b2ab2354712d561cb814bc3156e2203a404ad21 /src/libsyntax/parse | |
| parent | dabf0c6371d3b193664f58746fa27c1835a010f3 (diff) | |
| download | rust-5a3a599428f5af024857d19b5d360b148e885fa2.tar.gz rust-5a3a599428f5af024857d19b5d360b148e885fa2.zip | |
Forbid is/us suffixes. Fixes #22496
It was an oversight that this was not done in the great int upheaval. [breaking-change]
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/mod.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/libsyntax/parse/mod.rs b/src/libsyntax/parse/mod.rs index 226e2037b2f..4b7b7b66582 100644 --- a/src/libsyntax/parse/mod.rs +++ b/src/libsyntax/parse/mod.rs @@ -714,8 +714,6 @@ pub fn integer_lit(s: &str, suffix: Option<&str>, sd: &SpanHandler, sp: Span) -> "u16" => ast::UnsignedIntLit(ast::TyU16), "u32" => ast::UnsignedIntLit(ast::TyU32), "u64" => ast::UnsignedIntLit(ast::TyU64), - "is" => ast::SignedIntLit(ast::TyIs, ast::Plus), - "us" => ast::UnsignedIntLit(ast::TyUs), _ => { // i<digits> and u<digits> look like widths, so lets // give an error message along those lines |
