From e232a7914666faa57bbaeff501fe89c7861b3115 Mon Sep 17 00:00:00 2001 From: Amjad Alsharafi <26300843+Amjad50@users.noreply.github.com> Date: Thu, 2 May 2024 21:50:00 +0800 Subject: [PATCH] Remove unneeded `weak` for `optimized-c` function `weak` is only used with `no_mangle` --- library/compiler-builtins/src/macros.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/library/compiler-builtins/src/macros.rs b/library/compiler-builtins/src/macros.rs index 32c615f010e4..89cd6468999b 100644 --- a/library/compiler-builtins/src/macros.rs +++ b/library/compiler-builtins/src/macros.rs @@ -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)?;