File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -765,13 +765,13 @@ fn parse_bottom_expr(parser p) -> @ast::expr {
765
765
pf, p) ;
766
766
hi = es. span . hi ;
767
767
ex = ast:: expr_tup ( es. node , p. get_ann ( ) ) ;
768
- } else if ( eat_word ( p, "vec" ) ) {
768
+ } else if ( p. peek ( ) == token:: LBRACKET ) {
769
+ p. bump ( ) ;
769
770
auto pf = parse_expr;
770
771
771
- expect ( p, token:: LPAREN ) ;
772
772
auto mut = parse_mutability ( p) ;
773
773
774
- auto es = parse_seq_to_end[ @ast:: expr] ( token:: RPAREN ,
774
+ auto es = parse_seq_to_end[ @ast:: expr] ( token:: RBRACKET ,
775
775
some ( token:: COMMA ) ,
776
776
pf, hi, p) ;
777
777
ex = ast:: expr_vec ( es, mut, p. get_ann ( ) ) ;
Original file line number Diff line number Diff line change
1
+ T
2
+
1
3
S 2011-05-12 b1d3364
2
4
linux-i386 7671ac0de19d9ea981616b3c58c1d48f1b43820a
3
5
macos-i386 bc7ee4d146ef6e0236afbd7cc4a9241582fd2952
You can’t perform that action at this time.
0 commit comments