Skip to content

Commit 9ff5de8

Browse files
committed
Add abi.export_name.publicly-exported
I'm not sure why this wasn't added before with no_mangle. I believe this is done here: https://github.com/rust-lang/rust/blob/HEAD/compiler/rustc_passes/src/dead.rs#L690-L700
1 parent a8f510f commit 9ff5de8

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
@@ -170,6 +170,9 @@ r[abi.export_name.edition2024]
170170
r[abi.export_name.no_mangle]
171171
If `export_name` is used with [`no_mangle`][abi.no_mangle], then the `export_name` is used instead.
172172
173+
r[abi.export_name.publicly-exported]
174+
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).
175+
173176
[attribute]: attributes.md
174177
[extern functions]: items/functions.md#extern-function-qualifier
175178
[external blocks]: items/external-blocks.md

0 commit comments

Comments
 (0)