Skip to content

Commit 5b7961b

Browse files
committed
Encode ty_native ebml node for native types so typechecker has something to work with.
1 parent c077da5 commit 5b7961b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/comp/middle/metadata.rs

+1
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,7 @@ fn encode_info_for_native_item(@trans.crate_ctxt cx, &ebml.writer ebml_w,
457457
case (ast.native_item_ty(_, ?did)) {
458458
encode_def_id(ebml_w, did);
459459
encode_kind(ebml_w, 'T' as u8);
460+
encode_type(ebml_w, ty.plain_ty(ty.ty_native));
460461
}
461462
case (ast.native_item_fn(_, _, _, ?tps, ?did, ?ann)) {
462463
encode_def_id(ebml_w, did);

0 commit comments

Comments
 (0)