Skip to content

Commit fff7739

Browse files
committed
Update export_name for updated restrictions
rust-lang/rust#155515 added a restriction that the symbol name cannot be empty in the `export_name` attribute. This now matches the behavior of link_name (see rust-lang#2268).
1 parent 20a6d00 commit fff7739

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/abi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ If `export_name` is used with [`no_mangle`][abi.no_mangle], then the `export_nam
168168
r[abi.export_name.publicly-exported]
169169
The `export_name` attribute causes the symbol to be publicly exported from the produced library or object file, similar to the [`used` attribute](#the-used-attribute).
170170
171-
r[abi.export_name.null]
172-
The exported name must not contain a [NUL] character.
171+
r[abi.export_name.invalid-names]
172+
The exported name must not be the empty string, and must not contain any `U+0000` (NUL) bytes.
173173
174174
r[abi.export_name.generic]
175175
`export_name` has no effect on generic items.

0 commit comments

Comments
 (0)