aboutsummaryrefslogtreecommitdiff
path: root/src/comp
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2010-11-22 11:43:25 -0800
committerPatrick Walton <[email protected]>2010-11-22 11:43:25 -0800
commit0847ff7d429569fd5a5e1d992b4fdb4328b423f9 (patch)
tree6f28c128361cdc51c0a286b895e20d018a88d42c /src/comp
parentFix lexer bug, enable 5 more tests on rustc. (diff)
downloadrust-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.rs4
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;
}