diff options
| author | Graydon Hoare <[email protected]> | 2011-04-01 18:34:13 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2011-04-01 18:34:13 -0700 |
| commit | 5b7961b64135bb0f3cd1d9f6f78dcec6bb0f598a (patch) | |
| tree | 3b3c3bf3784ecbb203cdbfabd62bdb5c06735060 /src/comp | |
| parent | Remove typestate_check reference to nonexistent ast.init node; rustc compilin... (diff) | |
| download | rust-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/comp')
| -rw-r--r-- | src/comp/middle/metadata.rs | 1 |
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); |