aboutsummaryrefslogtreecommitdiff
path: root/src/comp/middle
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2011-04-01 17:04:51 -0700
committerGraydon Hoare <[email protected]>2011-04-01 17:04:51 -0700
commit0397c05f429937e07d4cd39e97e8a9413336cd98 (patch)
treeeb71d956d50b2275748eb9013e2c45414d0eda77 /src/comp/middle
parentComment out import for not-yet-compiling typestate_check. (diff)
downloadrust-0397c05f429937e07d4cd39e97e8a9413336cd98.tar.xz
rust-0397c05f429937e07d4cd39e97e8a9413336cd98.zip
Support for passing native types through metadata/creader.
Diffstat (limited to 'src/comp/middle')
-rw-r--r--src/comp/middle/trans.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs
index e9695b35..b9ebc167 100644
--- a/src/comp/middle/trans.rs
+++ b/src/comp/middle/trans.rs
@@ -6211,7 +6211,9 @@ fn collect_native_item(&@crate_ctxt cx, @ast.native_item i) -> @crate_ctxt {
decl_native_fn_and_pair(cx, name, ann, fid);
}
}
- case (_) { /* fall through */ }
+ case (ast.native_item_ty(_, ?tid)) {
+ cx.native_items.insert(tid, i);
+ }
}
ret cx;
}