Skip to content

Commit

Permalink
Rollup merge of rust-lang#132495 - Houtamelo:remove_unintended_link, …
Browse files Browse the repository at this point in the history
…r=jieyouxu

Remove unintended link

Since `#[link_section]` is enclosed in braces, it was being confused with a link during docs compilation.

This caused compilation to fail when running `x dist` since it emitted a warning regarding broken links.
  • Loading branch information
matthiaskrgr authored Nov 2, 2024
2 parents d99f3cf + 64e2472 commit 771d77c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/src/sys/thread_local/guard/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
//! This apparently translates to any callbacks in the ".CRT$XLB" section
//! being run on certain events.
//!
//! So after all that, we use the compiler's #[link_section] feature to place
//! So after all that, we use the compiler's `#[link_section]` feature to place
//! a callback pointer into the magic section so it ends up being called.
//!
//! # What's up with this callback?
Expand Down

0 comments on commit 771d77c

Please sign in to comment.