Skip to content

Commit d25eeab

Browse files
committed
Changed altivec.rs to new intrinsic declaration
1 parent a70790e commit d25eeab

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

crates/core_arch/src/powerpc/altivec.rs

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -688,10 +688,13 @@ mod sealed {
688688
let addr = (b as *const u8).offset(a);
689689

690690
// Workaround ptr::copy_nonoverlapping not being inlined
691-
unsafe extern "rust-intrinsic" {
691+
#[rustc_intrinsic]
692+
#[rustc_intrinsic_must_be_overridden]
692693
#[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+
695698

696699
let mut r = mem::MaybeUninit::uninit();
697700

@@ -743,10 +746,13 @@ mod sealed {
743746
let addr = (b as *mut u8).offset(a);
744747

745748
// Workaround ptr::copy_nonoverlapping not being inlined
746-
unsafe extern "rust-intrinsic" {
749+
#[rustc_intrinsic]
750+
#[rustc_intrinsic_must_be_overridden]
747751
#[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+
750756

751757
copy_nonoverlapping(
752758
&s as *const _ as *const u8,

0 commit comments

Comments
 (0)