From be9aa1cc5ecb59c62a80db9e5be355deac90d08e Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Fri, 13 May 2011 12:12:54 -0700 Subject: rustc: Fix the type of node_types; stub the write_type function --- src/comp/middle/ty.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/comp/middle/ty.rs') diff --git a/src/comp/middle/ty.rs b/src/comp/middle/ty.rs index ccbbeed0..388eed21 100644 --- a/src/comp/middle/ty.rs +++ b/src/comp/middle/ty.rs @@ -162,7 +162,8 @@ const uint idx_first_others = 20u; type type_store = rec(mutable vec[raw_t] others, hashmap[raw_t,uint] other_structural); -type node_type_table = vec[ty::ty_param_count_and_ty]; +type ty_param_substs_opt_and_ty = tup(option::t[vec[ty::t]], ty::t); +type node_type_table = vec[mutable option::t[ty::ty_param_substs_opt_and_ty]]; fn mk_type_store() -> @type_store { let vec[raw_t] others = vec(); -- cgit v1.2.3