We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
link_section
1 parent 5520f98 commit c2cdd82Copy full SHA for c2cdd82
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
@@ -113,7 +114,7 @@ The `link_section` attribute may only be applied to:
113
114
- [Trait definition functions][items.traits] with a body
115
116
> [!NOTE]
-> `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.
118
119
r[abi.link_section.duplicates]
120
Only the first use of `link_section` on an item has effect.
0 commit comments