Skip to content

Commit d36ea17

Browse files
committed
Add abi.export_name.no_mangle
Specifies the interaction with export_name and no_mangle. This is essentially a duplicate of abi.no_mangle.export_name, but I think it is worthwile to say it in both places.
1 parent 643d60b commit d36ea17

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/abi.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@ r[abi.export_name.edition2024]
150150
> [!EDITION-2024]
151151
> Before the 2024 edition it is allowed to use the `export_name` attribute without the `unsafe` qualification.
152152
153+
r[abi.export_name.no_mangle]
154+
If `export_name` is used with [`no_mangle`][abi.no_mangle], then the `export_name` is used instead.
155+
153156
[`static` items]: items/static-items.md
154157
[attribute]: attributes.md
155158
[extern functions]: items/functions.md#extern-function-qualifier

0 commit comments

Comments
 (0)