about summary refs log tree commit diff
path: root/src/libsyntax_ext
diff options
context:
space:
mode:
authorOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>2016-02-11 09:52:55 +0100
committerOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>2016-02-11 12:34:48 +0100
commitbfa66bb389ce1c7ce4aff09d1842b3428015bd4d (patch)
treef6252627aac7945dec962bacb43ed50186c8ab9b /src/libsyntax_ext
parent625e78b7001c6e20f29928a5da8c9d21e9aed6c5 (diff)
downloadrust-bfa66bb389ce1c7ce4aff09d1842b3428015bd4d.tar.gz
rust-bfa66bb389ce1c7ce4aff09d1842b3428015bd4d.zip
[breaking-change] remove the sign from integer literals in the ast
Diffstat (limited to 'src/libsyntax_ext')
-rw-r--r--src/libsyntax_ext/concat.rs8
1 files changed, 2 insertions, 6 deletions
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));
                     }