fn has_custom_linkage(tcx: TyCtxt<'_>, def_id: LocalDefId) -> bool