Skip to content

Commit 66d074c

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 d36ea17 commit 66d074c

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
@@ -153,6 +153,9 @@ r[abi.export_name.edition2024]
153153
r[abi.export_name.no_mangle]
154154
If `export_name` is used with [`no_mangle`][abi.no_mangle], then the `export_name` is used instead.
155155
156+
r[abi.export_name.publicly-exported]
157+
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).
158+
156159
[`static` items]: items/static-items.md
157160
[attribute]: attributes.md
158161
[extern functions]: items/functions.md#extern-function-qualifier

0 commit comments

Comments
 (0)