Skip to content

Commit 204dfa2

Browse files
committed
Add abi.export_name.null
I'm guessing this is a reasonable rule to have for all targets. At least rustc treats it that way. https://github.com/rust-lang/rust/blob/5d707b07e42766c080c5012869c9988a18dcbb83/compiler/rustc_codegen_ssa/src/codegen_attrs.rs#L254-L264
1 parent 66d074c commit 204dfa2

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
@@ -156,6 +156,9 @@ If `export_name` is used with [`no_mangle`][abi.no_mangle], then the `export_nam
156156
r[abi.export_name.publicly-exported]
157157
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).
158158
159+
r[abi.export_name.null]
160+
The exported name must not contain a [NUL] character.
161+
159162
[`static` items]: items/static-items.md
160163
[attribute]: attributes.md
161164
[extern functions]: items/functions.md#extern-function-qualifier

0 commit comments

Comments
 (0)