@@ -63,6 +63,7 @@ use crate::mem;
63
63
use crate :: sync:: atomic:: { self , AtomicBool , AtomicI32 , AtomicIsize , AtomicU32 , Ordering } ;
64
64
65
65
#[ stable( feature = "drop_in_place" , since = "1.8.0" ) ]
66
+ #[ cfg_attr( not( bootstrap) , rustc_allowed_through_unstable_modules) ]
66
67
#[ deprecated( note = "no longer an intrinsic - use `ptr::drop_in_place` directly" , since = "1.52.0" ) ]
67
68
#[ inline]
68
69
pub unsafe fn drop_in_place < T : ?Sized > ( to_drop : * mut T ) {
@@ -2435,6 +2436,7 @@ pub(crate) fn is_nonoverlapping<T>(src: *const T, dst: *const T, count: usize) -
2435
2436
/// [`Vec::append`]: ../../std/vec/struct.Vec.html#method.append
2436
2437
#[ doc( alias = "memcpy" ) ]
2437
2438
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2439
+ #[ cfg_attr( not( bootstrap) , rustc_allowed_through_unstable_modules) ]
2438
2440
#[ rustc_const_stable( feature = "const_intrinsic_copy" , since = "1.63.0" ) ]
2439
2441
#[ inline]
2440
2442
pub const unsafe fn copy_nonoverlapping < T > ( src : * const T , dst : * mut T , count : usize ) {
@@ -2520,6 +2522,7 @@ pub const unsafe fn copy_nonoverlapping<T>(src: *const T, dst: *mut T, count: us
2520
2522
/// ```
2521
2523
#[ doc( alias = "memmove" ) ]
2522
2524
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2525
+ #[ cfg_attr( not( bootstrap) , rustc_allowed_through_unstable_modules) ]
2523
2526
#[ rustc_const_stable( feature = "const_intrinsic_copy" , since = "1.63.0" ) ]
2524
2527
#[ inline]
2525
2528
pub const unsafe fn copy < T > ( src : * const T , dst : * mut T , count : usize ) {
@@ -2609,6 +2612,7 @@ pub const unsafe fn copy<T>(src: *const T, dst: *mut T, count: usize) {
2609
2612
/// ```
2610
2613
#[ doc( alias = "memset" ) ]
2611
2614
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2615
+ #[ cfg_attr( not( bootstrap) , rustc_allowed_through_unstable_modules) ]
2612
2616
#[ rustc_const_unstable( feature = "const_ptr_write" , issue = "86302" ) ]
2613
2617
#[ inline]
2614
2618
pub const unsafe fn write_bytes < T > ( dst : * mut T , val : u8 , count : usize ) {
0 commit comments