Skip to content

Commit 97ff59c

Browse files
committed
Minor update of link_section
More closely align with the template, and some minor word tweaks.
1 parent e1fd9c6 commit 97ff59c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/abi.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ r[abi.no_mangle.edition2024]
8686
> [!EDITION-2024]
8787
> Before the 2024 edition it is allowed to use the `no_mangle` attribute without the `unsafe` qualification.
8888
89+
<!-- template:attributes -->
8990
r[abi.link_section]
9091
## The `link_section` attribute
9192

@@ -115,7 +116,7 @@ The `link_section` attribute may only be applied to:
115116
- [Trait definition functions][items.traits] with a body
116117
117118
> [!NOTE]
118-
> `rustc` currently warns in other positions, but this may be rejected in the future.
119+
> `rustc` ignores use in other positions but lints against it. This may become an error in the future.
119120
120121
r[abi.link_section.duplicates]
121122
Only the first use of `link_section` on an item has effect.

0 commit comments

Comments
 (0)