From 5a3a599428f5af024857d19b5d360b148e885fa2 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Wed, 15 Apr 2015 16:11:56 -0700 Subject: Forbid is/us suffixes. Fixes #22496 It was an oversight that this was not done in the great int upheaval. [breaking-change] --- src/libsyntax/parse/mod.rs | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/libsyntax') 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 and u look like widths, so lets // give an error message along those lines -- cgit 1.4.1-3-g733a5