convert the remaining ast record types into structs

These are: region,arg,fn_decl,method,_mod,foreign_mod,
variant_arg,enum_def_,variant_,trait_ref.
This commit is contained in:
Erick Tryzelaar
2013-01-15 16:05:20 -08:00
committed by Tim Chevalier
parent 5ba7e55a4c
commit d5d77b9351
17 changed files with 334 additions and 204 deletions

View File

@@ -443,8 +443,11 @@ fn operator_prec(op: ast::binop) -> uint {
fn dtor_dec() -> fn_decl {
let nil_t = @ast::Ty { id: 0, node: ty_nil, span: dummy_sp() };
// dtor has no args
{inputs: ~[],
output: nil_t, cf: return_val}
ast::fn_decl {
inputs: ~[],
output: nil_t,
cf: return_val,
}
}
// ______________________________________________________________________