Support for passing native types through metadata/creader.

This commit is contained in:
Graydon Hoare 2011-04-01 17:04:51 -07:00
parent 2a2ea6351d
commit 0397c05f42
2 changed files with 5 additions and 1 deletions

View file

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