diff options
| author | Brian Anderson <banderson@mozilla.com> | 2011-08-12 16:23:33 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-08-12 16:23:33 -0700 |
| commit | 60e1cead9bab129b1937a11c71ab2ab2fd751792 (patch) | |
| tree | abadaeb47a96d4c6af298005783842e0580d37b8 /src/comp/syntax | |
| parent | 34abbde694e7f46ff681c0ab3770eee8d71f37a6 (diff) | |
| download | rust-60e1cead9bab129b1937a11c71ab2ab2fd751792.tar.gz rust-60e1cead9bab129b1937a11c71ab2ab2fd751792.zip | |
Make [] and ~[] both construct ivecs
It's no longer possible to create an exterior vec
Diffstat (limited to 'src/comp/syntax')
| -rw-r--r-- | src/comp/syntax/parse/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
