Skip to content

Commit

Permalink
Swap used and link_section attribute
Browse files Browse the repository at this point in the history
This order matches the one already generated by derive.rs.
  • Loading branch information
dtolnay committed Jul 11, 2022
1 parent 15a27cc commit 710773e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion impl/src/declaration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 710773e

Please sign in to comment.