File tree 1 file changed +2
-14
lines changed
crates/core_arch/src/powerpc
1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -687,15 +687,9 @@ mod sealed {
687
687
pub unsafe fn $fun( a: isize , b: * const $ty) -> t_t_l!( $ty) {
688
688
let addr = ( b as * const u8 ) . offset( a) ;
689
689
690
- // Workaround ptr::copy_nonoverlapping not being inlined
691
- unsafe extern "rust-intrinsic" {
692
- #[ rustc_nounwind]
693
- pub fn copy_nonoverlapping<T >( src: * const T , dst: * mut T , count: usize ) ;
694
- }
695
-
696
690
let mut r = mem:: MaybeUninit :: uninit( ) ;
697
691
698
- copy_nonoverlapping(
692
+ core :: ptr :: copy_nonoverlapping(
699
693
addr,
700
694
r. as_mut_ptr( ) as * mut u8 ,
701
695
mem:: size_of:: <t_t_l!( $ty) >( ) ,
@@ -742,13 +736,7 @@ mod sealed {
742
736
pub unsafe fn $fun( s: t_t_l!( $ty) , a: isize , b: * mut $ty) {
743
737
let addr = ( b as * mut u8 ) . offset( a) ;
744
738
745
- // Workaround ptr::copy_nonoverlapping not being inlined
746
- unsafe extern "rust-intrinsic" {
747
- #[ rustc_nounwind]
748
- pub fn copy_nonoverlapping<T >( src: * const T , dst: * mut T , count: usize ) ;
749
- }
750
-
751
- copy_nonoverlapping(
739
+ core:: ptr:: copy_nonoverlapping(
752
740
& s as * const _ as * const u8 ,
753
741
addr,
754
742
mem:: size_of:: <t_t_l!( $ty) >( ) ,
You can’t perform that action at this time.
0 commit comments