Skip to content

Commit 3ddf514

Browse files
authored
Merge pull request #2216 from ehuss/update-link_name-duplicates
Update link_name duplicates note
2 parents b07b925 + eaba97f commit 3ddf514

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/items/external-blocks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,10 +412,10 @@ The `link_name` attribute may only be applied to a function or static item in an
412412
> `rustc` ignores use in other positions but lints against it. This may become an error in the future.
413413
414414
r[items.extern.attributes.link_name.duplicates]
415-
Only the last use of `link_name` on an item has effect.
415+
Only the first use of `link_name` on an item has effect.
416416
417417
> [!NOTE]
418-
> `rustc` lints against any use preceding the last. This may become an error in the future.
418+
> `rustc` lints against any use following the first with a future-compatibility warning. This may become an error in the future.
419419
420420
r[items.extern.attributes.link_name.link_ordinal]
421421
The `link_name` attribute may not be used with the [`link_ordinal`] attribute.

0 commit comments

Comments
 (0)