mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
linkage: Change linkage to hidden on non-exported symbols
This commit is contained in:
+1
-1
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user