@@ -131,7 +131,7 @@ macro_rules! compare_and_swap {
131131 ( $ordering: ident, $bytes: tt, $name: ident) => {
132132 intrinsics! {
133133 #[ maybe_use_optimized_c_shim]
134- #[ naked]
134+ #[ unsafe ( naked) ]
135135 pub unsafe extern "C" fn $name (
136136 expected: int_ty!( $bytes) , desired: int_ty!( $bytes) , ptr: * mut int_ty!( $bytes)
137137 ) -> int_ty!( $bytes) {
@@ -161,7 +161,7 @@ macro_rules! compare_and_swap_i128 {
161161 ( $ordering: ident, $name: ident) => {
162162 intrinsics! {
163163 #[ maybe_use_optimized_c_shim]
164- #[ naked]
164+ #[ unsafe ( naked) ]
165165 pub unsafe extern "C" fn $name (
166166 expected: i128 , desired: i128 , ptr: * mut i128
167167 ) -> i128 {
@@ -190,7 +190,7 @@ macro_rules! swap {
190190 ( $ordering: ident, $bytes: tt, $name: ident) => {
191191 intrinsics! {
192192 #[ maybe_use_optimized_c_shim]
193- #[ naked]
193+ #[ unsafe ( naked) ]
194194 pub unsafe extern "C" fn $name (
195195 left: int_ty!( $bytes) , right_ptr: * mut int_ty!( $bytes)
196196 ) -> int_ty!( $bytes) {
@@ -215,7 +215,7 @@ macro_rules! fetch_op {
215215 ( $ordering: ident, $bytes: tt, $name: ident, $op: literal) => {
216216 intrinsics! {
217217 #[ maybe_use_optimized_c_shim]
218- #[ naked]
218+ #[ unsafe ( naked) ]
219219 pub unsafe extern "C" fn $name (
220220 val: int_ty!( $bytes) , ptr: * mut int_ty!( $bytes)
221221 ) -> int_ty!( $bytes) {
0 commit comments