Encode ty_native ebml node for native types so typechecker has something to work with.

This commit is contained in:
Graydon Hoare 2011-04-01 18:34:13 -07:00
parent c077da553d
commit 5b7961b641

View File

@ -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);