Skip to content

Commit 56ae567

Browse files
committed
---
yaml --- r: 996 b: refs/heads/master c: 49b3cd7 h: refs/heads/master v: v3
1 parent 94b9977 commit 56ae567

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
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: a439f6ec682edffcfdb269a1cc3ba950f3c0fb25
2+
refs/heads/master: 49b3cd700ee6bd4b68346144129886478246311c

trunk/src/comp/middle/trans.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ type glue_fns = rec(ValueRef activate_glue,
4444
ValueRef exit_task_glue,
4545
vec[ValueRef] upcall_glues);
4646

47-
tag arity { nullary; n_ary(uint); }
47+
tag arity { nullary; n_ary; }
4848
type tag_info = rec(type_handle th,
4949
mutable vec[tup(ast.def_id,arity)] variants);
5050

@@ -1141,7 +1141,7 @@ fn trans_name(@block_ctxt cx, &ast.name n, &option.t[ast.def] dopt)
11411141
auto elems = vec(C_int(i));
11421142
ret tup(res(cx, C_struct(elems)), false);
11431143
}
1144-
case (n_ary(_)) {
1144+
case (n_ary) {
11451145
cx.fcx.ccx.sess.unimpl("n-ary tag " +
11461146
"constructor in " +
11471147
"trans");
@@ -1746,10 +1746,9 @@ fn resolve_tag_types_for_item(&@crate_ctxt cx, @ast.item i) -> @crate_ctxt {
17461746
}
17471747

17481748
variant_tys += vec(T_struct(lltys));
1749-
1750-
arity_info = n_ary(n_ary_idx);
1751-
n_ary_idx += 1u;
1749+
arity_info = n_ary;
17521750
} else {
1751+
variant_tys += vec(T_nil());
17531752
arity_info = nullary;
17541753
}
17551754

0 commit comments

Comments
 (0)