File tree 1 file changed +12
-6
lines changed
crates/core_arch/src/powerpc 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -688,10 +688,13 @@ mod sealed {
688
688
let addr = ( b as * const u8 ) . offset( a) ;
689
689
690
690
// Workaround ptr::copy_nonoverlapping not being inlined
691
- unsafe extern "rust-intrinsic" {
691
+ #[ rustc_intrinsic]
692
+ #[ rustc_intrinsic_must_be_overridden]
692
693
#[ rustc_nounwind]
693
- pub fn copy_nonoverlapping<T >( src: * const T , dst: * mut T , count: usize ) ;
694
- }
694
+ pub fn copy_nonoverlapping<T >( _src: * const T , _dst: * mut T , _count: usize ) {
695
+ unreachable!( )
696
+ }
697
+
695
698
696
699
let mut r = mem:: MaybeUninit :: uninit( ) ;
697
700
@@ -743,10 +746,13 @@ mod sealed {
743
746
let addr = ( b as * mut u8 ) . offset( a) ;
744
747
745
748
// Workaround ptr::copy_nonoverlapping not being inlined
746
- unsafe extern "rust-intrinsic" {
749
+ #[ rustc_intrinsic]
750
+ #[ rustc_intrinsic_must_be_overridden]
747
751
#[ rustc_nounwind]
748
- pub fn copy_nonoverlapping<T >( src: * const T , dst: * mut T , count: usize ) ;
749
- }
752
+ pub fn copy_nonoverlapping<T >( _src: * const T , _dst: * mut T , _count: usize ) {
753
+ unreachable!( )
754
+ }
755
+
750
756
751
757
copy_nonoverlapping(
752
758
& s as * const _ as * const u8 ,
You can’t perform that action at this time.
0 commit comments