do not use const stability attribute when we don't even need to call the intrinsic in const

This commit is contained in:
Ralf Jung 2023-11-14 09:30:06 +01:00 committed by Amanieu d'Antras
parent e01a7c2408
commit ef6263d968

View file

@ -571,7 +571,6 @@ mod sealed {
// Workaround ptr::copy_nonoverlapping not being inlined
extern "rust-intrinsic" {
#[rustc_const_stable(feature = "const_intrinsic_copy", since = "1.63.0")]
#[rustc_nounwind]
pub fn copy_nonoverlapping<T>(src: *const T, dst: *mut T, count: usize);
}