From db80548bb0a7a51d187f375a29743e7646b6d737 Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Tue, 12 Jan 2021 19:21:55 +0100 Subject: [PATCH 1/2] Document extra behavior of #[no_mangle] --- src/abi.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/abi.md b/src/abi.md index f06c2baad..de8760f83 100644 --- a/src/abi.md +++ b/src/abi.md @@ -63,6 +63,9 @@ The *`no_mangle` attribute* may be used on any [item] to disable standard symbol name mangling. The symbol for the item will be the identifier of the item's name. +Additionally, the item will be publicly exported from the produced library or +object file, similar to `#[used]`. + ## The `link_section` attribute The *`link_section` attribute* specifies the section of the object file that a From e773318a837092d7b5276bbeaf9fda06cca61cee Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Tue, 12 Jan 2021 17:29:14 -0800 Subject: [PATCH 2/2] Link the `used` attribute. --- src/abi.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/abi.md b/src/abi.md index de8760f83..374dd6d45 100644 --- a/src/abi.md +++ b/src/abi.md @@ -64,7 +64,7 @@ symbol name mangling. The symbol for the item will be the identifier of the item's name. Additionally, the item will be publicly exported from the produced library or -object file, similar to `#[used]`. +object file, similar to the [`used` attribute](#the-used-attribute). ## The `link_section` attribute