about summary refs log tree commit diff
path: root/src/comp/syntax
diff options
context:
space:
mode:
authorMarijn Haverbeke <marijnh@gmail.com>2012-01-26 10:29:47 +0100
committerMarijn Haverbeke <marijnh@gmail.com>2012-01-26 10:37:50 +0100
commitec4d05de3b71a6286b24f9223731b7bdcfc097f8 (patch)
treedb647b317599f2553a3fac20eb9fc991d516d7a3 /src/comp/syntax
parent566a4be1f892eee66f88b832ff04421ad70cb1ee (diff)
Remove ty_native_fn
It was being used as a clumsy synonym of ty_fn.
Diffstat (limited to 'src/comp/syntax')
-rw-r--r--src/comp/syntax/ast.rs1
-rw-r--r--src/comp/syntax/ast_util.rs2
2 files changed, 1 insertions, 2 deletions
diff --git a/src/comp/syntax/ast.rs b/src/comp/syntax/ast.rs
index e37116d53f5..4ff96c17daa 100644
--- a/src/comp/syntax/ast.rs
+++ b/src/comp/syntax/ast.rs
@@ -46,7 +46,6 @@ enum def {
     def_binding(def_id),
     def_use(def_id),
     def_native_ty(def_id),
-    def_native_fn(def_id, purity),
     def_upvar(def_id, @def, node_id), // node_id == expr_fn or expr_fn_block
 }
 
diff --git a/src/comp/syntax/ast_util.rs b/src/comp/syntax/ast_util.rs
index 53fb3e094d7..cb0545c07b7 100644
--- a/src/comp/syntax/ast_util.rs
+++ b/src/comp/syntax/ast_util.rs
@@ -29,7 +29,7 @@ fn def_id_of_def(d: def) -> def_id {
       def_native_mod(id) | def_const(id) | def_arg(id, _) | def_local(id, _) |
       def_variant(_, id) | def_ty(id) | def_ty_param(id, _) |
       def_binding(id) | def_use(id) | def_native_ty(id) |
-      def_native_fn(id, _) | def_upvar(id, _, _) { id }
+      def_upvar(id, _, _) { id }
     }
 }