rustc: Pass a "type context" around instead of directly passing the type store; prep for removing type annotations

This commit is contained in:
Patrick Walton 2011-04-25 12:15:55 -07:00
parent b258060a94
commit e102413aad
7 changed files with 787 additions and 834 deletions

View file

@ -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]);
}