From 710773e4eeaf67e9ca1788ed2fd2513ad62cec56 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Mon, 11 Jul 2022 14:34:35 -0700 Subject: [PATCH] Swap used and link_section attribute This order matches the one already generated by derive.rs. --- impl/src/declaration.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/impl/src/declaration.rs b/impl/src/declaration.rs index acecd29..460bb09 100644 --- a/impl/src/declaration.rs +++ b/impl/src/declaration.rs @@ -115,11 +115,11 @@ pub fn expand(input: TokenStream) -> TokenStream { #[link_section = #windows_section_stop] static LINKME_STOP: () = (); + #[used] #[cfg(any(target_os = "none", target_os = "linux", target_os = "illumos", target_os = "freebsd"))] #[cfg_attr(any(target_os = "none", target_os = "linux"), link_section = #linux_section)] #[cfg_attr(target_os = "illumos", link_section = #illumos_section)] #[cfg_attr(target_os = "freebsd", link_section = #freebsd_section)] - #[used] static mut LINKME_PLEASE: [<#ty as #linkme_path::private::Slice>::Element; 0] = []; #[cfg(not(any(