Skip to content

Commit 643d60b

Browse files
committed
Reword abi.export_name.unsafe to follow template
1 parent a33d999 commit 643d60b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/abi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ Only the last instance of `export_name` on an item is honored. Previous `export_
144144
> `rustc` currently warns on preceding duplicate `export_name` attributes. This may become an error in the future.
145145
146146
r[abi.export_name.unsafe]
147-
This attribute is unsafe as a symbol with a custom name may collide with another symbol with the same name (or with a well-known symbol), leading to undefined behavior.
147+
The `export_name` attribute must be marked with [`unsafe`][attributes.safety] because a symbol with a custom name may collide with another symbol with the same name (or with a well-known symbol), leading to undefined behavior.
148148
149149
r[abi.export_name.edition2024]
150150
> [!EDITION-2024]

0 commit comments

Comments
 (0)