convert ast::ty into a struct

This commit is contained in:
Erick Tryzelaar
2013-01-15 14:59:39 -08:00
committed by Tim Chevalier
parent 8a3a1fc148
commit 8cdc3fda11
10 changed files with 149 additions and 80 deletions

View File

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