@@ -131,7 +131,7 @@ macro_rules! compare_and_swap {
131
131
( $ordering: ident, $bytes: tt, $name: ident) => {
132
132
intrinsics! {
133
133
#[ maybe_use_optimized_c_shim]
134
- #[ naked]
134
+ #[ unsafe ( naked) ]
135
135
pub unsafe extern "C" fn $name (
136
136
expected: int_ty!( $bytes) , desired: int_ty!( $bytes) , ptr: * mut int_ty!( $bytes)
137
137
) -> int_ty!( $bytes) {
@@ -161,7 +161,7 @@ macro_rules! compare_and_swap_i128 {
161
161
( $ordering: ident, $name: ident) => {
162
162
intrinsics! {
163
163
#[ maybe_use_optimized_c_shim]
164
- #[ naked]
164
+ #[ unsafe ( naked) ]
165
165
pub unsafe extern "C" fn $name (
166
166
expected: i128 , desired: i128 , ptr: * mut i128
167
167
) -> i128 {
@@ -190,7 +190,7 @@ macro_rules! swap {
190
190
( $ordering: ident, $bytes: tt, $name: ident) => {
191
191
intrinsics! {
192
192
#[ maybe_use_optimized_c_shim]
193
- #[ naked]
193
+ #[ unsafe ( naked) ]
194
194
pub unsafe extern "C" fn $name (
195
195
left: int_ty!( $bytes) , right_ptr: * mut int_ty!( $bytes)
196
196
) -> int_ty!( $bytes) {
@@ -215,7 +215,7 @@ macro_rules! fetch_op {
215
215
( $ordering: ident, $bytes: tt, $name: ident, $op: literal) => {
216
216
intrinsics! {
217
217
#[ maybe_use_optimized_c_shim]
218
- #[ naked]
218
+ #[ unsafe ( naked) ]
219
219
pub unsafe extern "C" fn $name (
220
220
val: int_ty!( $bytes) , ptr: * mut int_ty!( $bytes)
221
221
) -> int_ty!( $bytes) {
0 commit comments