Merge pull request #1077 from CohenArthur/fix-linkage-export-hidden

Change linkage to hidden on non-exported symbols
This commit is contained in:
bjorn3 2020-08-22 19:59:41 +02:00 committed by GitHub
commit ec37225873
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,7 +25,7 @@ pub(crate) fn get_static_linkage(tcx: TyCtxt<'_>, def_id: DefId) -> Linkage {
if tcx.is_reachable_non_generic(def_id) {
Linkage::Export
} else {
Linkage::Export // FIXME use Linkage::Hidden
Linkage::Hidden
}
}
}