From e0eccaddb2bad87993505fffc523a47b68018e64 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Fri, 22 Apr 2011 17:00:46 -0700 Subject: rustc: Thread the type store through everything that needs to access type structures --- src/comp/front/creader.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/comp/front/creader.rs') diff --git a/src/comp/front/creader.rs b/src/comp/front/creader.rs index 857ed2d3..99dbf6ad 100644 --- a/src/comp/front/creader.rs +++ b/src/comp/front/creader.rs @@ -546,7 +546,7 @@ fn get_tag_variants(session.session sess, auto item = find_item(did._1, items); auto ctor_ty = item_type(item, external_crate_id, tystore); let vec[ty.t] arg_tys = vec(); - alt (ty.struct(ctor_ty)) { + alt (ty.struct(tystore, ctor_ty)) { case (ty.ty_fn(_, ?args, _)) { for (ty.arg a in args) { arg_tys += vec(a.ty); -- cgit v1.2.3