Skip to content

Commit 60e1cea

Browse files
committed
Make [] and ~[] both construct ivecs
It's no longer possible to create an exterior vec
1 parent 34abbde commit 60e1cea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/comp/syntax/parse/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ fn parse_bottom_expr(p: &parser) -> @ast::expr {
806806
let es =
807807
parse_seq_to_end(token::RBRACKET, some(token::COMMA), parse_expr,
808808
p);
809-
ex = ast::expr_vec(es, mut, ast::sk_rc);
809+
ex = ast::expr_vec(es, mut, ast::sk_unique);
810810
} else if (p.peek() == token::POUND_LT) {
811811
p.bump();
812812
let ty = parse_ty(p);

0 commit comments

Comments
 (0)