infer when types are region parameterized rather than requiring /&

- removes various fields from various variants in the AST
- also update tests not to use this notation
This commit is contained in:
Niko Matsakis
2012-07-11 10:28:30 -07:00
parent 9b094c0baf
commit b9aa9def85
59 changed files with 602 additions and 387 deletions

View File

@@ -128,8 +128,7 @@ impl ast_builder for ext_ctxt {
+ty_params: ~[ast::ty_param]) -> @ast::item {
self.item(name,
ast::item_enum(variants,
ty_params,
ast::rp_none))
ty_params))
}
fn item_enum(name: ident,
@@ -167,12 +166,10 @@ impl ast_builder for ext_ctxt {
fn item_ty_poly(name: ident,
ty: @ast::ty,
+params: ~[ast::ty_param]) -> @ast::item {
self.item(name,
ast::item_ty(ty, params, ast::rp_none))
self.item(name, ast::item_ty(ty, params))
}
fn item_ty(name: ident,
ty: @ast::ty) -> @ast::item {
fn item_ty(name: ident, ty: @ast::ty) -> @ast::item {
self.item_ty_poly(name, ty, ~[])
}