about summary refs log tree commit diff
path: root/src/libsyntax/ext
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2014-01-10 18:06:23 -0800
committerBrian Anderson <banderson@mozilla.com>2014-01-10 18:06:35 -0800
commitcdc44940b73e3d1b10675f57f4bd37dc9b61bbd3 (patch)
treeee5032e884b88b528a89a673d8099470e6311b9b /src/libsyntax/ext
parent60e096a43fcf9df04e4bf38fe3de1d4a1f75ee87 (diff)
downloadrust-cdc44940b73e3d1b10675f57f4bd37dc9b61bbd3.tar.gz
rust-cdc44940b73e3d1b10675f57f4bd37dc9b61bbd3.zip
syntax: Fix capitalization in macro_parser errors
Diffstat (limited to 'src/libsyntax/ext')
-rw-r--r--src/libsyntax/ext/tt/macro_parser.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libsyntax/ext/tt/macro_parser.rs b/src/libsyntax/ext/tt/macro_parser.rs
index 22074a73a8b..514b8e6af99 100644
--- a/src/libsyntax/ext/tt/macro_parser.rs
+++ b/src/libsyntax/ext/tt/macro_parser.rs
@@ -351,9 +351,9 @@ pub fn parse(sess: @ParseSess,
                 }
                 return Success(nameize(sess, ms, v));
             } else if eof_eis.len() > 1u {
-                return Error(sp, ~"Ambiguity: multiple successful parses");
+                return Error(sp, ~"ambiguity: multiple successful parses");
             } else {
-                return Failure(sp, ~"Unexpected end of macro invocation");
+                return Failure(sp, ~"unexpected end of macro invocation");
             }
         } else {
             if (bb_eis.len() > 0u && next_eis.len() > 0u)
@@ -367,12 +367,12 @@ pub fn parse(sess: @ParseSess,
                       _ => fail!()
                     } }).connect(" or ");
                 return Error(sp, format!(
-                    "Local ambiguity: multiple parsing options: \
+                    "local ambiguity: multiple parsing options: \
                      built-in NTs {} or {} other options.",
                     nts, next_eis.len()));
             } else if (bb_eis.len() == 0u && next_eis.len() == 0u) {
-                return Failure(sp, ~"No rules expected the token: "
-                            + to_str(get_ident_interner(), &tok));
+                return Failure(sp, format!("no rules expected the token `{}`",
+                            to_str(get_ident_interner(), &tok)));
             } else if (next_eis.len() > 0u) {
                 /* Now process the next token */
                 while(next_eis.len() > 0u) {