aboutsummaryrefslogtreecommitdiff
path: root/src/comp/middle/trans.rs
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-11-29 15:29:55 -0800
committerGraydon Hoare <[email protected]>2010-11-29 15:29:55 -0800
commit3e08171fc21f7fcc403aa315d8fb54f04c552841 (patch)
treeb4ff7c529374fe4680c70b9d26d95a3b0499afbb /src/comp/middle/trans.rs
parentChange from bool to tag ast.mutability. (diff)
downloadrust-3e08171fc21f7fcc403aa315d8fb54f04c552841.tar.xz
rust-3e08171fc21f7fcc403aa315d8fb54f04c552841.zip
Change mutability into a type constructor.
Diffstat (limited to 'src/comp/middle/trans.rs')
-rw-r--r--src/comp/middle/trans.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs
index 01e73a6e..9aa367d5 100644
--- a/src/comp/middle/trans.rs
+++ b/src/comp/middle/trans.rs
@@ -275,8 +275,8 @@ fn type_of_inner(@crate_ctxt cx, @typeck.ty t) -> TypeRef {
}
case (typeck.ty_tup(?elts)) {
let vec[TypeRef] tys = vec();
- for (tup(ast.mutability, @typeck.ty) elt in elts) {
- tys += type_of(cx, elt._1);
+ for (@typeck.ty elt in elts) {
+ tys += type_of(cx, elt);
}
ret T_struct(tys);
}
@@ -493,9 +493,9 @@ fn iter_structural_ty(@block_ctxt cx,
alt (t.struct) {
case (typeck.ty_tup(?args)) {
let int i = 0;
- for (tup(ast.mutability, @typeck.ty) arg in args) {
+ for (@typeck.ty arg in args) {
auto elt = r.bcx.build.GEP(v, vec(C_int(0), C_int(i)));
- r = f(r.bcx, elt, arg._1);
+ r = f(r.bcx, elt, arg);
i += 1;
}
}