Skip to content

Commit 0847ff7

Browse files
committed
rustc: "expectied" -> "expected" in parser.rs; also say what was found
1 parent ccc21fd commit 0847ff7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/comp/front/parser.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1025,8 +1025,10 @@ impure fn parse_item(parser p) -> tup(ast.ident, @ast.item) {
10251025
case (token.TYPE) {
10261026
ret parse_item_type(p);
10271027
}
1028+
case (?t) {
1029+
p.err("expected item but found " + token.to_str(t));
1030+
}
10281031
}
1029-
p.err("expectied item");
10301032
fail;
10311033
}
10321034

0 commit comments

Comments
 (0)