about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2013-01-22 15:13:23 -0800
committerTim Chevalier <chevalier@alum.wellesley.edu>2013-01-22 15:13:23 -0800
commit10260bee38fc41b5e089d0be0a217e5eb6ad9d12 (patch)
treea0d95786e9a059e5a32aaf24c07756792e7d1d4c /src/libsyntax
parenta36eacc4f9b68b99c5f8ed50b1519a410d77d6f0 (diff)
downloadrust-10260bee38fc41b5e089d0be0a217e5eb6ad9d12.tar.gz
rust-10260bee38fc41b5e089d0be0a217e5eb6ad9d12.zip
Change debuginfo to not use an option for the output type...
...now without a random libuv change.
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/ast_util.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libsyntax/ast_util.rs b/src/libsyntax/ast_util.rs
index fe0da2e17b8..3afceeef59e 100644
--- a/src/libsyntax/ast_util.rs
+++ b/src/libsyntax/ast_util.rs
@@ -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: ~[],