File tree 1 file changed +6
-0
lines changed
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.
74
74
extern " C" fn foo () {}
75
75
```
76
76
77
+ > ** Edition differences** : Before the 2024 edition it is allowed to use the ` no_mangle ` attribute without the ` unsafe ` qualification.
78
+
77
79
## The ` link_section ` attribute
78
80
79
81
The * ` 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.
90
92
pub static VAR1: u32 = 1;
91
93
```
92
94
95
+ > ** Edition differences** : Before the 2024 edition it is allowed to use the ` link_section ` attribute without the ` unsafe ` qualification.
96
+
93
97
## The ` export_name ` attribute
94
98
95
99
The * ` export_name ` attribute* specifies the name of the symbol that will be
@@ -105,6 +109,8 @@ behavior.
105
109
pub fn name_in_rust () { }
106
110
```
107
111
112
+ > ** Edition differences** : Before the 2024 edition it is allowed to use the ` export_name ` attribute without the ` unsafe ` qualification.
113
+
108
114
[ _MetaNameValueStr_ ] : attributes.md#meta-item-attribute-syntax
109
115
[ `static` items ] : items/static-items.md
110
116
[ attribute ] : attributes.md
You can’t perform that action at this time.
0 commit comments