about summary refs log tree commit diff
path: root/src/libsyntax/parse/common.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-05-27 12:38:12 -0700
committerbors <bors@rust-lang.org>2013-05-27 12:38:12 -0700
commitb0f3686515410c013f6cd12ce4fc5236e3dee3f2 (patch)
treed8c26fa0f1db08519245c29c5c8d9775fa00cf73 /src/libsyntax/parse/common.rs
parentd98cc9995fb5c87230f57eeffb8061df25d85190 (diff)
parent8f80323f09ef150efc5cf729100f99981afc96e1 (diff)
downloadrust-b0f3686515410c013f6cd12ce4fc5236e3dee3f2.tar.gz
rust-b0f3686515410c013f6cd12ce4fc5236e3dee3f2.zip
auto merge of #6703 : sanxiyn/rust/allocation-lint, r=sanxiyn
Fix #6145. In particular, handle operator overloading.
Diffstat (limited to 'src/libsyntax/parse/common.rs')
-rw-r--r--src/libsyntax/parse/common.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/common.rs b/src/libsyntax/parse/common.rs
index 6a868fbf173..bdbe91e4112 100644
--- a/src/libsyntax/parse/common.rs
+++ b/src/libsyntax/parse/common.rs
@@ -194,9 +194,9 @@ pub impl Parser {
         } else {
             let mut s: ~str = ~"expected `";
             s += self.token_to_str(&token::GT);
-            s += ~"`, found `";
+            s += "`, found `";
             s += self.this_token_to_str();
-            s += ~"`";
+            s += "`";
             self.fatal(s);
         }
     }