Merge pull request #1077 from CohenArthur/fix-linkage-export-hidden
Change linkage to hidden on non-exported symbols
This commit is contained in:
commit
ec37225873
@ -25,7 +25,7 @@ pub(crate) fn get_static_linkage(tcx: TyCtxt<'_>, def_id: DefId) -> Linkage {
|
|||||||
if tcx.is_reachable_non_generic(def_id) {
|
if tcx.is_reachable_non_generic(def_id) {
|
||||||
Linkage::Export
|
Linkage::Export
|
||||||
} else {
|
} else {
|
||||||
Linkage::Export // FIXME use Linkage::Hidden
|
Linkage::Hidden
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user