Skip to content

Commit c2cdd82

Browse files
committed
Minor update of link_section
More closely align with the template, and some minor word tweaks.
1 parent 5520f98 commit c2cdd82

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

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

0 commit comments

Comments
 (0)