1
Fork 0

Auto merge of #37973 - vadimcn:dllimport, r=alexcrichton

Implement RFC 1717

Implement the first two points from #37403.

r? @alexcrichton
This commit is contained in:
bors 2016-12-06 10:54:45 +00:00
commit 1692c0b587
64 changed files with 438 additions and 156 deletions

View file

@ -1536,7 +1536,8 @@ pub fn find_exported_symbols(tcx: TyCtxt, reachable: NodeSet) -> NodeSet {
// let it through if it's included statically.
match tcx.map.get(id) {
hir_map::NodeForeignItem(..) => {
tcx.sess.cstore.is_statically_included_foreign_item(id)
let def_id = tcx.map.local_def_id(id);
tcx.sess.cstore.is_statically_included_foreign_item(def_id)
}
// Only consider nodes that actually have exported symbols.