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:
commit
1692c0b587
64 changed files with 438 additions and 156 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue