Store deprecated status of i/u-suffixed literals.
This commit is contained in:
parent
2f99a41fe1
commit
e95779554e
18 changed files with 112 additions and 79 deletions
|
|
@ -702,14 +702,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::TyIs, ast::Plus),
|
||||
"is" => ast::SignedIntLit(ast::TyIs, ast::Plus),
|
||||
"i" => ast::SignedIntLit(ast::TyIs(true), ast::Plus),
|
||||
"is" => ast::SignedIntLit(ast::TyIs(false), 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::TyUs),
|
||||
"us" => ast::UnsignedIntLit(ast::TyUs),
|
||||
"u" => ast::UnsignedIntLit(ast::TyUs(true)),
|
||||
"us" => ast::UnsignedIntLit(ast::TyUs(false)),
|
||||
"u8" => ast::UnsignedIntLit(ast::TyU8),
|
||||
"u16" => ast::UnsignedIntLit(ast::TyU16),
|
||||
"u32" => ast::UnsignedIntLit(ast::TyU32),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue