aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2011-04-01 18:34:13 -0700
committerGraydon Hoare <[email protected]>2011-04-01 18:34:13 -0700
commit5b7961b64135bb0f3cd1d9f6f78dcec6bb0f598a (patch)
tree3b3c3bf3784ecbb203cdbfabd62bdb5c06735060 /src
parentRemove typestate_check reference to nonexistent ast.init node; rustc compilin... (diff)
downloadrust-5b7961b64135bb0f3cd1d9f6f78dcec6bb0f598a.tar.xz
rust-5b7961b64135bb0f3cd1d9f6f78dcec6bb0f598a.zip
Encode ty_native ebml node for native types so typechecker has something to work with.
Diffstat (limited to 'src')
-rw-r--r--src/comp/middle/metadata.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/comp/middle/metadata.rs b/src/comp/middle/metadata.rs
index 6ec670d4..9216786d 100644
--- a/src/comp/middle/metadata.rs
+++ b/src/comp/middle/metadata.rs
@@ -457,6 +457,7 @@ fn encode_info_for_native_item(@trans.crate_ctxt cx, &ebml.writer ebml_w,
case (ast.native_item_ty(_, ?did)) {
encode_def_id(ebml_w, did);
encode_kind(ebml_w, 'T' as u8);
+ encode_type(ebml_w, ty.plain_ty(ty.ty_native));
}
case (ast.native_item_fn(_, _, _, ?tps, ?did, ?ann)) {
encode_def_id(ebml_w, did);