Clean up previous commit to not require an Option

This commit is contained in:
Tim Chevalier
2013-01-22 14:27:07 -08:00
parent 5b4e569bf3
commit 17ea548275
3 changed files with 10 additions and 9 deletions

View File

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