From 0847ff7d429569fd5a5e1d992b4fdb4328b423f9 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Mon, 22 Nov 2010 11:43:25 -0800 Subject: [PATCH] rustc: "expectied" -> "expected" in parser.rs; also say what was found --- src/comp/front/parser.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/comp/front/parser.rs b/src/comp/front/parser.rs index a0b7eef2627..e44d090e177 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; }