From bfa66bb389ce1c7ce4aff09d1842b3428015bd4d Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Thu, 11 Feb 2016 09:52:55 +0100 Subject: [breaking-change] remove the sign from integer literals in the ast --- src/libsyntax_ext/concat.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/libsyntax_ext/concat.rs') diff --git a/src/libsyntax_ext/concat.rs b/src/libsyntax_ext/concat.rs index f5c2805c4ca..9f6cf73ed64 100644 --- a/src/libsyntax_ext/concat.rs +++ b/src/libsyntax_ext/concat.rs @@ -38,14 +38,10 @@ pub fn expand_syntax_ext(cx: &mut base::ExtCtxt, accumulator.push(c); } ast::LitInt(i, ast::UnsignedIntLit(_)) | - ast::LitInt(i, ast::SignedIntLit(_, ast::Plus)) | - ast::LitInt(i, ast::UnsuffixedIntLit(ast::Plus)) => { + ast::LitInt(i, ast::SignedIntLit(_)) | + ast::LitInt(i, ast::UnsuffixedIntLit) => { accumulator.push_str(&format!("{}", i)); } - ast::LitInt(i, ast::SignedIntLit(_, ast::Minus)) | - ast::LitInt(i, ast::UnsuffixedIntLit(ast::Minus)) => { - accumulator.push_str(&format!("-{}", i)); - } ast::LitBool(b) => { accumulator.push_str(&format!("{}", b)); } -- cgit 1.4.1-3-g733a5