Skip to content

Commit 0fb61ac

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 9ff5de8 commit 0fb61ac

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/abi.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,9 @@ If `export_name` is used with [`no_mangle`][abi.no_mangle], then the `export_nam
173173
r[abi.export_name.publicly-exported]
174174
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).
175175
176+
r[abi.export_name.null]
177+
The exported name must not contain a [NUL] character.
178+
176179
[attribute]: attributes.md
177180
[extern functions]: items/functions.md#extern-function-qualifier
178181
[external blocks]: items/external-blocks.md

0 commit comments

Comments
 (0)