Skip to content

Commit de5fd27

Browse files
committed
Only inherit const stability for methods of impl const Trait blocks
1 parent 1020f2a commit de5fd27

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/src/intrinsics.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1842,6 +1842,7 @@ pub(crate) fn is_nonoverlapping<T>(src: *const T, dst: *const T, count: usize) -
18421842
#[inline]
18431843
pub const unsafe fn copy_nonoverlapping<T>(src: *const T, dst: *mut T, count: usize) {
18441844
extern "rust-intrinsic" {
1845+
#[rustc_const_unstable(feature = "const_intrinsic_copy", issue = "80697")]
18451846
fn copy_nonoverlapping<T>(src: *const T, dst: *mut T, count: usize);
18461847
}
18471848

@@ -1926,6 +1927,7 @@ pub const unsafe fn copy_nonoverlapping<T>(src: *const T, dst: *mut T, count: us
19261927
#[inline]
19271928
pub const unsafe fn copy<T>(src: *const T, dst: *mut T, count: usize) {
19281929
extern "rust-intrinsic" {
1930+
#[rustc_const_unstable(feature = "const_intrinsic_copy", issue = "80697")]
19291931
fn copy<T>(src: *const T, dst: *mut T, count: usize);
19301932
}
19311933

0 commit comments

Comments
 (0)