Skip to content

Commit f305372

Browse files
committed
---
yaml --- r: 30131 b: refs/heads/incoming c: 2bb056f h: refs/heads/master i: 30129: 1cc7a97 30127: 2c29598 v: v3
1 parent 9007ebc commit f305372

File tree

9 files changed

+111
-115
lines changed

9 files changed

+111
-115
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df
9-
refs/heads/incoming: 8453097dd52f6fdd6a710c382978af02d7f55844
9+
refs/heads/incoming: 2bb056f4ab416b08a499b2229a3cca6404ce3c54
1010
refs/heads/dist-snap: 2f32a1581f522e524009138b33b1c7049ced668d
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/incoming/src/rustc/middle/trans/alt.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ fn extract_variant_args(bcx: block, pat_id: ast::node_id,
317317
if size > 0u && (*variants).len() != 1u {
318318
let enumptr =
319319
PointerCast(bcx, val, T_opaque_enum_ptr(ccx));
320-
blobptr = GEPi(bcx, enumptr, ~[0u, 1u]);
320+
blobptr = GEPi(bcx, enumptr, [0u, 1u]);
321321
}
322322
let vdefs_tg = vdefs.enm;
323323
let vdefs_var = vdefs.var;
@@ -525,7 +525,7 @@ fn compile_submatch(bcx: block, m: match_, vals: ~[ValueRef],
525525
let mut rec_vals = ~[];
526526
for vec::each(rec_fields) |field_name| {
527527
let ix = option::get(ty::field_idx(field_name, fields));
528-
vec::push(rec_vals, GEPi(bcx, val, ~[0u, ix]));
528+
vec::push(rec_vals, GEPi(bcx, val, [0u, ix]));
529529
}
530530
compile_submatch(bcx,
531531
enter_rec_or_struct(bcx, dm, m, col, rec_fields,
@@ -581,7 +581,7 @@ fn compile_submatch(bcx: block, m: match_, vals: ~[ValueRef],
581581
};
582582
let mut tup_vals = ~[], i = 0u;
583583
while i < n_tup_elts {
584-
vec::push(tup_vals, GEPi(bcx, val, ~[0u, i]));
584+
vec::push(tup_vals, GEPi(bcx, val, [0u, i]));
585585
i += 1u;
586586
}
587587
compile_submatch(bcx, enter_tup(bcx, dm, m, col, val, n_tup_elts),
@@ -594,7 +594,7 @@ fn compile_submatch(bcx: block, m: match_, vals: ~[ValueRef],
594594
let llbox = Load(bcx, val);
595595
let box_no_addrspace = non_gc_box_cast(bcx, llbox);
596596
let unboxed =
597-
GEPi(bcx, box_no_addrspace, ~[0u, abi::box_field_body]);
597+
GEPi(bcx, box_no_addrspace, [0u, abi::box_field_body]);
598598
compile_submatch(bcx, enter_box(bcx, dm, m, col, val),
599599
vec::append(~[unboxed], vals_left), chk, exits);
600600
return;
@@ -604,7 +604,7 @@ fn compile_submatch(bcx: block, m: match_, vals: ~[ValueRef],
604604
let llbox = Load(bcx, val);
605605
let box_no_addrspace = non_gc_box_cast(bcx, llbox);
606606
let unboxed =
607-
GEPi(bcx, box_no_addrspace, ~[0u, abi::box_field_body]);
607+
GEPi(bcx, box_no_addrspace, [0u, abi::box_field_body]);
608608
compile_submatch(bcx, enter_uniq(bcx, dm, m, col, val),
609609
vec::append(~[unboxed], vals_left), chk, exits);
610610
return;
@@ -623,7 +623,7 @@ fn compile_submatch(bcx: block, m: match_, vals: ~[ValueRef],
623623
} else {
624624
let enumptr =
625625
PointerCast(bcx, val, T_opaque_enum_ptr(ccx));
626-
let discrimptr = GEPi(bcx, enumptr, ~[0u, 0u]);
626+
let discrimptr = GEPi(bcx, enumptr, [0u, 0u]);
627627
test_val = Load(bcx, discrimptr);
628628
kind = switch;
629629
}
@@ -932,7 +932,7 @@ fn bind_irrefutable_pat(bcx: block, pat: @ast::pat, val: ValueRef,
932932
let rec_fields = ty::get_fields(node_id_type(bcx, pat.id));
933933
for vec::each(fields) |f| {
934934
let ix = option::get(ty::field_idx(f.ident, rec_fields));
935-
let fldptr = GEPi(bcx, val, ~[0u, ix]);
935+
let fldptr = GEPi(bcx, val, [0u, ix]);
936936
bcx = bind_irrefutable_pat(bcx, f.pat, fldptr, make_copy);
937937
}
938938
}
@@ -967,21 +967,21 @@ fn bind_irrefutable_pat(bcx: block, pat: @ast::pat, val: ValueRef,
967967
ast::pat_tup(elems) => {
968968
let mut i = 0u;
969969
for vec::each(elems) |elem| {
970-
let fldptr = GEPi(bcx, val, ~[0u, i]);
970+
let fldptr = GEPi(bcx, val, [0u, i]);
971971
bcx = bind_irrefutable_pat(bcx, elem, fldptr, make_copy);
972972
i += 1u;
973973
}
974974
}
975975
ast::pat_box(inner) => {
976976
let llbox = Load(bcx, val);
977977
let unboxed =
978-
GEPi(bcx, llbox, ~[0u, abi::box_field_body]);
978+
GEPi(bcx, llbox, [0u, abi::box_field_body]);
979979
bcx = bind_irrefutable_pat(bcx, inner, unboxed, true);
980980
}
981981
ast::pat_uniq(inner) => {
982982
let llbox = Load(bcx, val);
983983
let unboxed =
984-
GEPi(bcx, llbox, ~[0u, abi::box_field_body]);
984+
GEPi(bcx, llbox, [0u, abi::box_field_body]);
985985
bcx = bind_irrefutable_pat(bcx, inner, unboxed, true);
986986
}
987987
ast::pat_wild | ast::pat_lit(_) | ast::pat_range(_, _) => ()

0 commit comments

Comments
 (0)