diff options
| author | Patrick Walton <[email protected]> | 2010-11-22 11:43:25 -0800 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2010-11-22 11:43:25 -0800 |
| commit | 0847ff7d429569fd5a5e1d992b4fdb4328b423f9 (patch) | |
| tree | 6f28c128361cdc51c0a286b895e20d018a88d42c /src/comp | |
| parent | Fix lexer bug, enable 5 more tests on rustc. (diff) | |
| download | rust-0847ff7d429569fd5a5e1d992b4fdb4328b423f9.tar.xz rust-0847ff7d429569fd5a5e1d992b4fdb4328b423f9.zip | |
rustc: "expectied" -> "expected" in parser.rs; also say what was found
Diffstat (limited to 'src/comp')
| -rw-r--r-- | src/comp/front/parser.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/comp/front/parser.rs b/src/comp/front/parser.rs index a0b7eef2..e44d090e 100644 --- a/src/comp/front/parser.rs +++ b/src/comp/front/parser.rs @@ -1025,8 +1025,10 @@ impure fn parse_item(parser p) -> tup(ast.ident, @ast.item) { case (token.TYPE) { ret parse_item_type(p); } + case (?t) { + p.err("expected item but found " + token.to_str(t)); + } } - p.err("expectied item"); fail; } |