1
Fork 0

Forbid is/us suffixes. Fixes #22496

It was an oversight that this was not done in the great int upheaval.

[breaking-change]
This commit is contained in:
Brian Anderson 2015-04-15 16:11:56 -07:00
parent dabf0c6371
commit 5a3a599428
8 changed files with 24 additions and 12 deletions

View file

@ -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