Remove unneeded weak for optimized-c function

`weak` is only used with `no_mangle`
This commit is contained in:
Amjad Alsharafi 2024-05-02 21:50:00 +08:00 committed by Amanieu d'Antras
parent 2e096145c3
commit e232a79146

View file

@ -147,7 +147,6 @@ macro_rules! intrinsics {
$($rest:tt)*
) => (
#[cfg($name = "optimized-c")]
#[cfg_attr(all(not(windows), not(target_vendor = "apple")), linkage = "weak")]
pub $(unsafe $($empty)? )? extern $abi fn $name( $($argname: $ty),* ) $(-> $ret)? {
extern $abi {
fn $name($($argname: $ty),*) $(-> $ret)?;