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
<!-- TODO: should this clarify that external block items are already unmangled?, and thus the attribute does nothing? Currently it is "phased out" warning. -->
96
+
97
+
r[abi.no_mangle.duplicates]
98
+
Only the first instance of `no_mangle` on an item is honored. Subsequent `no_mangle` attributes are ignored.
99
+
100
+
> [!NOTE]
101
+
> `rustc` currently warns on subsequent duplicate `no_mangle` attributes.
102
+
75
103
r[abi.no_mangle.unsafe]
76
104
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