diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-03-05 16:27:27 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-03-05 17:05:20 -0800 |
| commit | 0ee96de4ee21643546908065fbf3bc7a3f436a3f (patch) | |
| tree | c59e98ddc8504c23aa2eea3b11801475e9186cb6 /src/rustc/syntax/parse | |
| parent | 13a07ce1d4df500d18ce393a7b46775174560d01 (diff) | |
| download | rust-0ee96de4ee21643546908065fbf3bc7a3f436a3f.tar.gz rust-0ee96de4ee21643546908065fbf3bc7a3f436a3f.zip | |
rustc: Lower case error messages
Diffstat (limited to 'src/rustc/syntax/parse')
| -rw-r--r-- | src/rustc/syntax/parse/parser.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/rustc/syntax/parse/parser.rs b/src/rustc/syntax/parse/parser.rs index e8df2f86305..216c9bb9df9 100644 --- a/src/rustc/syntax/parse/parser.rs +++ b/src/rustc/syntax/parse/parser.rs @@ -312,7 +312,7 @@ fn parse_ty_field(p: parser) -> ast::ty_field { fn ident_index(p: parser, args: [ast::arg], i: ast::ident) -> uint { let j = 0u; for a: ast::arg in args { if a.ident == i { ret j; } j += 1u; } - p.fatal("Unbound variable " + i + " in constraint arg"); + p.fatal("unbound variable `" + i + "` in constraint arg"); } fn parse_type_constr_arg(p: parser) -> @ast::ty_constr_arg { @@ -918,7 +918,7 @@ fn parse_bottom_expr(p: parser) -> pexpr { if /*check*/ast_util::is_call_expr(e) { hi = e.span.hi; ex = ast::expr_be(e); - } else { p.fatal("Non-call expression in tail call"); } + } else { p.fatal("non-call expression in tail call"); } } else if eat_word(p, "copy") { let e = parse_expr(p); ex = ast::expr_copy(e); @@ -2008,7 +2008,9 @@ fn parse_item_class(p: parser, attrs: [ast::attribute]) -> @ast::item { /* Is it strange for the parser to check this? */ - none { /* parse error */ fail "Class with no ctor"; } + none { + p.fatal("class with no ctor"); + } } } |
