diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-01-06 15:07:48 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-01-06 15:07:48 -0800 |
| commit | 5f27b500800fc2720c5caa4a0cd5dcc46c0b911f (patch) | |
| tree | dd42329ccb6a18d64ba7ce983605e3e67f507d81 /src/libsyntax/parse | |
| parent | 1afe8a4fb86fe54be8008b033de166d9c1f8f650 (diff) | |
| parent | 5a4ca319185a3f399986bc5e5a2d0a96fac583ae (diff) | |
| download | rust-5f27b500800fc2720c5caa4a0cd5dcc46c0b911f.tar.gz rust-5f27b500800fc2720c5caa4a0cd5dcc46c0b911f.zip | |
rollup merge of #20609: cmr/mem
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/mod.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libsyntax/parse/mod.rs b/src/libsyntax/parse/mod.rs index d4650a4bb03..b79f59cc0c1 100644 --- a/src/libsyntax/parse/mod.rs +++ b/src/libsyntax/parse/mod.rs @@ -701,12 +701,14 @@ pub fn integer_lit(s: &str, suffix: Option<&str>, sd: &SpanHandler, sp: Span) -> if let Some(suf) = suffix { if suf.is_empty() { sd.span_bug(sp, "found empty literal suffix in Some")} ty = match suf { - "i" => ast::SignedIntLit(ast::TyI, ast::Plus), + "i" => ast::SignedIntLit(ast::TyIs, ast::Plus), + "is" => ast::SignedIntLit(ast::TyIs, ast::Plus), "i8" => ast::SignedIntLit(ast::TyI8, ast::Plus), "i16" => ast::SignedIntLit(ast::TyI16, ast::Plus), "i32" => ast::SignedIntLit(ast::TyI32, ast::Plus), "i64" => ast::SignedIntLit(ast::TyI64, ast::Plus), - "u" => ast::UnsignedIntLit(ast::TyU), + "u" => ast::UnsignedIntLit(ast::TyUs), + "us" => ast::UnsignedIntLit(ast::TyUs), "u8" => ast::UnsignedIntLit(ast::TyU8), "u16" => ast::UnsignedIntLit(ast::TyU16), "u32" => ast::UnsignedIntLit(ast::TyU32), |
