From e102413aadf4cb0e2740b26d249a710ad98cbd14 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Mon, 25 Apr 2011 12:15:55 -0700 Subject: rustc: Pass a "type context" around instead of directly passing the type store; prep for removing type annotations --- src/comp/util/common.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/comp/util/common.rs') diff --git a/src/comp/util/common.rs b/src/comp/util/common.rs index 0d0ca05d..a9e02c20 100644 --- a/src/comp/util/common.rs +++ b/src/comp/util/common.rs @@ -110,8 +110,8 @@ fn field_exprs(vec[ast.field] fields) -> vec [@ast.expr] { ret _vec.map[ast.field, @ast.expr](f, fields); } -fn plain_ann(@middle.ty.type_store tystore) -> ast.ann { - ret ast.ann_type(middle.ty.mk_nil(tystore), +fn plain_ann(middle.ty.ctxt tcx) -> ast.ann { + ret ast.ann_type(middle.ty.mk_nil(tcx), none[vec[middle.ty.t]], none[@ts_ann]); } -- cgit v1.2.3