File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,8 @@ with the same name (or with a well-known symbol), leading to undefined behavior.
7474extern " C" fn foo () {}
7575```
7676
77+ > ** Edition Differences** : Before the 2024 edition it is allowed to use the ` no_mangle ` attribute without the ` unsafe ` qualification.
78+
7779## The ` link_section ` attribute
7880
7981The * ` link_section ` attribute* specifies the section of the object file that a
@@ -90,6 +92,8 @@ of memory not expecting them, such as mutable data into read-only areas.
9092pub static VAR1: u32 = 1;
9193```
9294
95+ > ** Edition Differences** : Before the 2024 edition it is allowed to use the ` link_section ` attribute without the ` unsafe ` qualification.
96+
9397## The ` export_name ` attribute
9498
9599The * ` export_name ` attribute* specifies the name of the symbol that will be
@@ -105,6 +109,8 @@ behavior.
105109pub fn name_in_rust () { }
106110```
107111
112+ > ** Edition Differences** : Before the 2024 edition it is allowed to use the ` export_name ` attribute without the ` unsafe ` qualification.
113+
108114[ _MetaNameValueStr_ ] : attributes.md#meta-item-attribute-syntax
109115[ `static` items ] : items/static-items.md
110116[ attribute ] : attributes.md
You can’t perform that action at this time.
0 commit comments