Skip to content

Commit 47f5cad

Browse files
committed
---
yaml --- r: 4643 b: refs/heads/master c: 594c7fb h: refs/heads/master i: 4641: 6869acf 4639: 42de812 v: v3
1 parent 6b0e915 commit 47f5cad

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
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: 12b03dd3d444f8b78bef2d69c1aab88e5b1cbf4b
2+
refs/heads/master: 594c7fb0c6eb997afa7da32a2a6b4f0f78522c3f

trunk/src/comp/middle/ty.rs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3064,11 +3064,14 @@ fn is_binopable(cx: &ctxt, ty: t, op: ast::binop) -> bool {
30643064
/*vec*/
30653065
/*bot*/
30663066
tbl =
3067-
[[f, f, f, f, t, t, f, f], [f, f, f, f, t, t, t, t],
3068-
[t, t, t, t, t, t, t, f], [t, t, t, f, t, t, f, f],
3069-
[t, f, f, f, t, t, f, f], [t, f, f, f, t, t, f, f],
3070-
[f, f, f, f, t, t, f, f],
3071-
[t, t, t, t, t, t, t, t]]; /*struct*/
3067+
~[~[f, f, f, f, t, t, f, f],
3068+
~[f, f, f, f, t, t, t, t],
3069+
~[t, t, t, t, t, t, t, f],
3070+
~[t, t, t, f, t, t, f, f],
3071+
~[t, f, f, f, t, t, f, f],
3072+
~[t, f, f, f, t, t, f, f],
3073+
~[f, f, f, f, t, t, f, f],
3074+
~[t, t, t, t, t, t, t, t]]; /*struct*/
30723075

30733076
ret tbl.(tycat(cx, ty)).(opcat(op));
30743077
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -583,15 +583,15 @@ fn p_t_s_r_ellipses(cx: &ext_ctxt, repeat_me: @expr, offset: uint,
583583
match_expr(e) {
584584
alt e.node {
585585
expr_vec(arg_elts, _, _) {
586-
let elts = [];
586+
let elts = ~[];
587587
let idx = offset;
588588
while idx < ivec::len(arg_elts) {
589-
elts += [leaf(match_expr(arg_elts.(idx)))];
589+
elts += ~[leaf(match_expr(arg_elts.(idx)))];
590590
idx += 1u;
591591
}
592592
// using repeat_me.span is a little wacky, but the
593593
// error we want to report is one in the macro def
594-
some(seq(@ivec::from_vec(elts), repeat_me.span))
594+
some(seq(@elts, repeat_me.span))
595595
}
596596
_ { none }
597597
}

0 commit comments

Comments
 (0)