Make [] and ~[] both construct ivecs

It's no longer possible to create an exterior vec
This commit is contained in:
Brian Anderson 2011-08-12 16:23:33 -07:00
parent 34abbde694
commit 60e1cead9b

View File

@ -806,7 +806,7 @@ fn parse_bottom_expr(p: &parser) -> @ast::expr {
let es =
parse_seq_to_end(token::RBRACKET, some(token::COMMA), parse_expr,
p);
ex = ast::expr_vec(es, mut, ast::sk_rc);
ex = ast::expr_vec(es, mut, ast::sk_unique);
} else if (p.peek() == token::POUND_LT) {
p.bump();
let ty = parse_ty(p);