Skip to content

Commit eaba97f

Browse files
committed
Update link_name duplicates note
The behavior of the `link_name` attribute when there are duplicates has changed via rust-lang/rust#153041.
1 parent b07b925 commit eaba97f

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)