about summary refs log tree commit diff
path: root/src/comp/front/ast.rs
diff options
context:
space:
mode:
authorRafael Avila de Espindola <espindola@dream.(none)>2011-02-16 14:02:02 -0500
committerRafael Avila de Espindola <espindola@dream.(none)>2011-02-16 14:02:02 -0500
commit012fa69ea500aa31cb3dd2cd3df67ecd3eefd44e (patch)
tree565b715c332f4eaa83460e37c542ff914be77854 /src/comp/front/ast.rs
parentd4bf67dde638fdeea4361daf16bee421d479628e (diff)
downloadrust-012fa69ea500aa31cb3dd2cd3df67ecd3eefd44e.tar.gz
rust-012fa69ea500aa31cb3dd2cd3df67ecd3eefd44e.zip
More typechecking for native types and the needed plumbing in codegen.
Diffstat (limited to 'src/comp/front/ast.rs')
-rw-r--r--src/comp/front/ast.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/comp/front/ast.rs b/src/comp/front/ast.rs
index 03ccc216e2e..ee358432ff1 100644
--- a/src/comp/front/ast.rs
+++ b/src/comp/front/ast.rs
@@ -263,7 +263,7 @@ tag item_ {
 type native_item = spanned[native_item_];
 tag native_item_ {
     native_item_ty(ident, def_id);
-    native_item_fn(ident, fn_decl, vec[ty_param], def_id);
+    native_item_fn(ident, fn_decl, vec[ty_param], def_id, ann);
 }
 
 fn index_view_item(mod_index index, @view_item it) {
@@ -314,7 +314,7 @@ fn index_native_item(native_mod_index index, @native_item it) {
         case (ast.native_item_ty(?id, _)) {
             index.insert(id, it);
         }
-        case (ast.native_item_fn(?id, _, _, _)) {
+        case (ast.native_item_fn(?id, _, _, _, _)) {
             index.insert(id, it);
         }
     }