File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 -->
8990r[ abi.link_section]
9091## The ` link_section ` attribute
9192
@@ -113,10 +114,10 @@ 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
118119r[abi.link_section.duplicates]
119- Only the last instance of `link_section` on an item is honored. Previous `link_section` attributes are ignored .
120+ Only the last use of `link_section` on an item has effect .
120121
121122> [!NOTE]
122123> `rustc` lints against any use following the first with a future-compatibility warning. This may become an error in the future.
You can’t perform that action at this time.
0 commit comments