rustc: Make AST tuple types use interior vectors

This commit is contained in:
Patrick Walton
2011-07-06 15:53:47 -07:00
parent 401b6362d7
commit aad0bcc8d5
4 changed files with 5 additions and 9 deletions

View File

@@ -520,8 +520,8 @@ fn parse_ty(&parser p) -> @ast::ty {
expect(p, token::RBRACKET);
} else if (eat_word(p, "tup")) {
auto elems =
parse_seq(token::LPAREN, token::RPAREN, some(token::COMMA),
parse_mt, p);
parse_seq_ivec(token::LPAREN, token::RPAREN, some(token::COMMA),
parse_mt, p);
hi = elems.span.hi;
t = ast::ty_tup(elems.node);
} else if (eat_word(p, "rec")) {