@@ -256,7 +256,7 @@ macro_rules! intrinsics {
256256
257257 #[ cfg( all( target_vendor = "apple" , any( target_arch = "x86" , target_arch = "x86_64" ) , not( feature = "mangled-names" ) ) ) ]
258258 mod $name {
259- #[ no_mangle]
259+ #[ unsafe ( no_mangle) ]
260260 #[ cfg_attr( not( any( all( windows, target_env = "gnu" ) , target_os = "cygwin" ) ) , linkage = "weak" ) ]
261261 $( #[ $( $attr) * ] ) *
262262 extern $abi fn $name( $( $argname: u16 ) ,* ) $( -> $ret) ? {
@@ -292,7 +292,7 @@ macro_rules! intrinsics {
292292
293293 #[ cfg( all( target_vendor = "apple" , any( target_arch = "x86" , target_arch = "x86_64" ) , not( feature = "mangled-names" ) ) ) ]
294294 mod $name {
295- #[ no_mangle]
295+ #[ unsafe ( no_mangle) ]
296296 #[ cfg_attr( not( any( all( windows, target_env = "gnu" ) , target_os = "cygwin" ) ) , linkage = "weak" ) ]
297297 $( #[ $( $attr) * ] ) *
298298 extern $abi fn $name( $( $argname: $ty) ,* ) -> u16 {
@@ -333,7 +333,7 @@ macro_rules! intrinsics {
333333
334334 #[ cfg( all( target_arch = "arm" , not( feature = "mangled-names" ) ) ) ]
335335 mod $name {
336- #[ no_mangle]
336+ #[ unsafe ( no_mangle) ]
337337 #[ cfg_attr( not( any( all( windows, target_env = "gnu" ) , target_os = "cygwin" ) ) , linkage = "weak" ) ]
338338 $( #[ $( $attr) * ] ) *
339339 extern $abi fn $name( $( $argname: $ty) ,* ) $( -> $ret) ? {
@@ -343,7 +343,7 @@ macro_rules! intrinsics {
343343
344344 #[ cfg( all( target_arch = "arm" , not( feature = "mangled-names" ) ) ) ]
345345 mod $alias {
346- #[ no_mangle]
346+ #[ unsafe ( no_mangle) ]
347347 #[ cfg_attr( not( any( all( windows, target_env = "gnu" ) , target_os = "cygwin" ) ) , linkage = "weak" ) ]
348348 $( #[ $( $attr) * ] ) *
349349 extern "aapcs" fn $alias( $( $argname: $ty) ,* ) $( -> $ret) ? {
@@ -410,7 +410,7 @@ macro_rules! intrinsics {
410410 #[ cfg( all( feature = "mem" , not( feature = "mangled-names" ) ) ) ]
411411 mod $name {
412412 $( #[ $( $attr) * ] ) *
413- #[ no_mangle]
413+ #[ unsafe ( no_mangle) ]
414414 #[ cfg_attr( not( any( all( windows, target_env = "gnu" ) , target_os = "cygwin" ) ) , linkage = "weak" ) ]
415415 unsafe extern $abi fn $name( $( $argname: $ty) ,* ) $( -> $ret) ? {
416416 super :: $name( $( $argname) ,* )
@@ -502,7 +502,7 @@ macro_rules! intrinsics {
502502 #[ cfg( not( feature = "mangled-names" ) ) ]
503503 mod $name {
504504 $( #[ $( $attr) * ] ) *
505- #[ no_mangle]
505+ #[ unsafe ( no_mangle) ]
506506 #[ cfg_attr( not( any( all( windows, target_env = "gnu" ) , target_os = "cygwin" ) ) , linkage = "weak" ) ]
507507 $( unsafe $( $empty) ?) ? extern $abi fn $name( $( $argname: $ty) ,* ) $( -> $ret) ? {
508508 super :: $name( $( $argname) ,* )
0 commit comments