Begin vec() -> [] transition.

This commit is contained in:
Graydon Hoare 2011-05-16 15:25:10 -07:00
parent 9ac29480ce
commit ae030c5bf2
2 changed files with 5 additions and 3 deletions

View file

@ -765,13 +765,13 @@ fn parse_bottom_expr(parser p) -> @ast::expr {
pf, p);
hi = es.span.hi;
ex = ast::expr_tup(es.node, p.get_ann());
} else if (eat_word(p, "vec")) {
} else if (p.peek() == token::LBRACKET) {
p.bump();
auto pf = parse_expr;
expect(p, token::LPAREN);
auto mut = parse_mutability(p);
auto es = parse_seq_to_end[@ast::expr](token::RPAREN,
auto es = parse_seq_to_end[@ast::expr](token::RBRACKET,
some(token::COMMA),
pf, hi, p);
ex = ast::expr_vec(es, mut, p.get_ann());

View file

@ -1,3 +1,5 @@
T
S 2011-05-12 b1d3364
linux-i386 7671ac0de19d9ea981616b3c58c1d48f1b43820a
macos-i386 bc7ee4d146ef6e0236afbd7cc4a9241582fd2952