Skip to content

Commit 25256a5

Browse files
committed
---
yaml --- r: 4800 b: refs/heads/master c: ec89824 h: refs/heads/master v: v3
1 parent f747cd9 commit 25256a5

File tree

16 files changed

+28
-35
lines changed

16 files changed

+28
-35
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 250cc45c3bf4fc3e623e72b8b36d66a4e0fb1dcf
2+
refs/heads/master: ec898244f7b543dfe4c5a04fd42e638d7c521f7b

trunk/src/comp/front/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ fn mk_test_desc_vec(cx: &test_ctxt) -> @ast::expr {
236236
}
237237

238238
ret @{id: cx.next_node_id(),
239-
node: ast::expr_vec(descs, ast::imm, ast::sk_unique),
239+
node: ast::expr_vec(descs, ast::imm),
240240
span: ast::dummy_sp()};
241241
}
242242

trunk/src/comp/middle/trans.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5123,8 +5123,7 @@ fn trans_expr_out(cx: &@block_ctxt, e: &@ast::expr, output: out_method) ->
51235123
ret trans_call(cx, f, none::<ValueRef>, args, e.id);
51245124
}
51255125
ast::expr_cast(val, _) { ret trans_cast(cx, val, e.id); }
5126-
ast::expr_vec(args, _, ast::sk_rc.) { ret trans_vec(cx, args, e.id); }
5127-
ast::expr_vec(args, _, ast::sk_unique.) {
5126+
ast::expr_vec(args, _) {
51285127
ret trans_ivec(cx, args, e.id);
51295128
}
51305129
ast::expr_rec(args, base) { ret trans_rec(cx, args, base, e.id); }

trunk/src/comp/middle/tstate/pre_post_conditions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ fn find_pre_post_expr(fcx: &fn_ctxt, e: @expr) {
357357
_ { }
358358
}
359359
}
360-
expr_vec(args, _, _) { find_pre_post_exprs(fcx, args, e.id); }
360+
expr_vec(args, _) { find_pre_post_exprs(fcx, args, e.id); }
361361
expr_path(p) {
362362
let rslt = expr_pp(fcx.ccx, e);
363363
clear_pp(rslt);

trunk/src/comp/middle/tstate/states.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ fn find_pre_post_state_expr(fcx: &fn_ctxt, pres: &prestate, e: @expr) ->
312312

313313

314314
alt e.node {
315-
expr_vec(elts, _, _) {
315+
expr_vec(elts, _) {
316316
ret find_pre_post_state_exprs(fcx, pres, e.id,
317317
vec::init_elt(init_assign,
318318
vec::len(elts)),

trunk/src/comp/middle/typeck.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2181,18 +2181,12 @@ fn check_expr_with_unifier(fcx: &@fn_ctxt, expr: &@ast::expr,
21812181
}
21822182
write::ty_only_fixup(fcx, id, t_1);
21832183
}
2184-
ast::expr_vec(args, mut, kind) {
2184+
ast::expr_vec(args, mut) {
21852185
let t: ty::t = next_ty_var(fcx);
21862186
for e: @ast::expr in args {
21872187
bot |= check_expr_with(fcx, e, t);
21882188
}
2189-
let typ;
2190-
alt kind {
2191-
ast::sk_rc. { typ = ty::mk_vec(tcx, {ty: t, mut: mut}); }
2192-
ast::sk_unique. {
2193-
typ = ty::mk_ivec(tcx, {ty: t, mut: mut});
2194-
}
2195-
}
2189+
let typ = ty::mk_ivec(tcx, {ty: t, mut: mut});
21962190
write::ty_only_fixup(fcx, id, typ);
21972191
}
21982192
ast::expr_tup(elts) {

trunk/src/comp/syntax/ast.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ tag seq_kind { sk_unique; sk_rc; }
292292
type expr = {id: node_id, node: expr_, span: span};
293293
294294
tag expr_ {
295-
expr_vec([@expr], mutability, seq_kind);
295+
expr_vec([@expr], mutability);
296296
expr_rec([field], option::t<@expr>);
297297
expr_call(@expr, [@expr]);
298298
expr_tup([@expr]);

trunk/src/comp/syntax/ext/concat_idents.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import syntax::ast;
55
fn expand_syntax_ext(cx: &ext_ctxt, sp: codemap::span, arg: @ast::expr,
66
_body: option::t<str>) -> @ast::expr {
77
let args: [@ast::expr] = alt arg.node {
8-
ast::expr_vec(elts, _, _) { elts }
8+
ast::expr_vec(elts, _) { elts }
99
_ { cx.span_fatal(sp, "#concat_idents requires a vector argument .") }
1010
};
1111
let res: ast::ident = "";

trunk/src/comp/syntax/ext/env.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export expand_syntax_ext;
1313
fn expand_syntax_ext(cx: &ext_ctxt, sp: codemap::span, arg: @ast::expr,
1414
_body: option::t<str>) -> @ast::expr {
1515
let args: [@ast::expr] = alt arg.node {
16-
ast::expr_vec(elts, _, _) { elts }
16+
ast::expr_vec(elts, _) { elts }
1717
_ { cx.span_fatal(sp, "#env requires arguments of the form `[...]`.") }
1818
};
1919
if vec::len::<@ast::expr>(args) != 1u {

trunk/src/comp/syntax/ext/fmt.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export expand_syntax_ext;
1818
fn expand_syntax_ext(cx: &ext_ctxt, sp: span, arg: @ast::expr,
1919
_body: option::t<str>) -> @ast::expr {
2020
let args: [@ast::expr] = alt arg.node {
21-
ast::expr_vec(elts, _, _) { elts }
21+
ast::expr_vec(elts, _) { elts }
2222
_ { cx.span_fatal(sp, "#fmt requires arguments of the form `[...]`.") }
2323
};
2424
if vec::len::<@ast::expr>(args) == 0u {
@@ -73,7 +73,7 @@ fn pieces_to_expr(cx: &ext_ctxt, sp: span, pieces: &[piece],
7373
}
7474
fn make_vec_expr(cx: &ext_ctxt, sp: span, exprs: &[@ast::expr]) ->
7575
@ast::expr {
76-
let vecexpr = ast::expr_vec(exprs, ast::imm, ast::sk_unique);
76+
let vecexpr = ast::expr_vec(exprs, ast::imm);
7777
ret @{id: cx.next_id(), node: vecexpr, span: sp};
7878
}
7979
fn make_call(cx: &ext_ctxt, sp: span, fn_path: &[ast::ident],

0 commit comments

Comments
 (0)