aboutsummaryrefslogtreecommitdiff
path: root/src/comp/util
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2011-04-25 12:15:55 -0700
committerPatrick Walton <[email protected]>2011-04-25 12:15:55 -0700
commite102413aadf4cb0e2740b26d249a710ad98cbd14 (patch)
tree6c47e65fddf38f01b3a1b32259ca70d595c2bef5 /src/comp/util
parentAvoid type_store hashtable access for a variety of cases, probably only ty_va... (diff)
downloadrust-e102413aadf4cb0e2740b26d249a710ad98cbd14.tar.xz
rust-e102413aadf4cb0e2740b26d249a710ad98cbd14.zip
rustc: Pass a "type context" around instead of directly passing the type store; prep for removing type annotations
Diffstat (limited to 'src/comp/util')
-rw-r--r--src/comp/util/common.rs4
1 files changed, 2 insertions, 2 deletions
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]);
}