We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
link_section
1 parent e1fd9c6 commit 97ff59cCopy full SHA for 97ff59c
1 file changed
src/abi.md
@@ -86,6 +86,7 @@ r[abi.no_mangle.edition2024]
86
> [!EDITION-2024]
87
> Before the 2024 edition it is allowed to use the `no_mangle` attribute without the `unsafe` qualification.
88
89
+<!-- template:attributes -->
90
r[abi.link_section]
91
## The `link_section` attribute
92
@@ -115,7 +116,7 @@ The `link_section` attribute may only be applied to:
115
116
- [Trait definition functions][items.traits] with a body
117
118
> [!NOTE]
-> `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.
120
121
r[abi.link_section.duplicates]
122
Only the first use of `link_section` on an item has effect.
0 commit comments