File tree 2 files changed +2
-15
lines changed
2 files changed +2
-15
lines changed Original file line number Diff line number Diff line change 13
13
proc_macro_hygiene,
14
14
stmt_expr_attributes,
15
15
core_intrinsics,
16
- intrinsics,
17
16
no_core,
18
17
fmt_helpers_for_derive,
19
18
rustc_attrs,
Original file line number Diff line number Diff line change @@ -674,15 +674,9 @@ mod sealed {
674
674
pub unsafe fn $fun( a: isize , b: * const $ty) -> t_t_l!( $ty) {
675
675
let addr = ( b as * const u8 ) . offset( a) ;
676
676
677
- // Workaround ptr::copy_nonoverlapping not being inlined
678
- unsafe extern "rust-intrinsic" {
679
- #[ rustc_nounwind]
680
- pub fn copy_nonoverlapping<T >( src: * const T , dst: * mut T , count: usize ) ;
681
- }
682
-
683
677
let mut r = mem:: MaybeUninit :: uninit( ) ;
684
678
685
- copy_nonoverlapping(
679
+ crate :: ptr :: copy_nonoverlapping(
686
680
addr,
687
681
r. as_mut_ptr( ) as * mut u8 ,
688
682
mem:: size_of:: <t_t_l!( $ty) >( ) ,
@@ -729,13 +723,7 @@ mod sealed {
729
723
pub unsafe fn $fun( s: t_t_l!( $ty) , a: isize , b: * mut $ty) {
730
724
let addr = ( b as * mut u8 ) . offset( a) ;
731
725
732
- // Workaround ptr::copy_nonoverlapping not being inlined
733
- unsafe extern "rust-intrinsic" {
734
- #[ rustc_nounwind]
735
- pub fn copy_nonoverlapping<T >( src: * const T , dst: * mut T , count: usize ) ;
736
- }
737
-
738
- copy_nonoverlapping(
726
+ crate :: ptr:: copy_nonoverlapping(
739
727
& s as * const _ as * const u8 ,
740
728
addr,
741
729
mem:: size_of:: <t_t_l!( $ty) >( ) ,
You can’t perform that action at this time.
0 commit comments