From 60e1cead9bab129b1937a11c71ab2ab2fd751792 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Fri, 12 Aug 2011 16:23:33 -0700 Subject: [PATCH] Make [] and ~[] both construct ivecs It's no longer possible to create an exterior vec --- src/comp/syntax/parse/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs index e13ecca7232..f930af5e263 100644 --- a/src/comp/syntax/parse/parser.rs +++ b/src/comp/syntax/parse/parser.rs @@ -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);