diff options
| author | Graydon Hoare <[email protected]> | 2010-11-29 15:29:55 -0800 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-11-29 15:29:55 -0800 |
| commit | 3e08171fc21f7fcc403aa315d8fb54f04c552841 (patch) | |
| tree | b4ff7c529374fe4680c70b9d26d95a3b0499afbb /src/comp/middle/trans.rs | |
| parent | Change from bool to tag ast.mutability. (diff) | |
| download | rust-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.rs | 8 |
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; } } |