diff options
| author | Patrick Walton <[email protected]> | 2011-04-25 12:15:55 -0700 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2011-04-25 12:15:55 -0700 |
| commit | e102413aadf4cb0e2740b26d249a710ad98cbd14 (patch) | |
| tree | 6c47e65fddf38f01b3a1b32259ca70d595c2bef5 /src/comp/util | |
| parent | Avoid type_store hashtable access for a variety of cases, probably only ty_va... (diff) | |
| download | rust-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.rs | 4 |
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]); } |