You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/abi.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -100,6 +100,9 @@ Only the first instance of `no_mangle` on an item is honored. Subsequent `no_man
100
100
> [!NOTE]
101
101
> `rustc` currently warns on subsequent duplicate `no_mangle` attributes.
102
102
103
+
r[abi.no_mangle.export_name]
104
+
If `no_mangle` is used with [`export_name`][abi.export_name], then the `export_name` is used instead.
105
+
103
106
r[abi.no_mangle.unsafe]
104
107
The `no_mangle` attribute must be marked with [`unsafe`][attributes.safety] because an unmangled symbol may collide with another symbol with the same name (or with a well-known symbol), leading to undefined behavior.
0 commit comments