@@ -3724,7 +3724,7 @@ pub const fn ptr_metadata<P: ptr::Pointee<Metadata = M> + ?Sized, M>(ptr: *const
3724
3724
/// [`Vec::append`]: ../../std/vec/struct.Vec.html#method.append
3725
3725
#[ doc( alias = "memcpy" ) ]
3726
3726
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
3727
- #[ rustc_allowed_through_unstable_modules = "import this function via `std::mem ` instead" ]
3727
+ #[ rustc_allowed_through_unstable_modules = "import this function via `std::ptr ` instead" ]
3728
3728
#[ rustc_const_stable( feature = "const_intrinsic_copy" , since = "1.83.0" ) ]
3729
3729
#[ inline( always) ]
3730
3730
#[ cfg_attr( miri, track_caller) ] // even without panics, this helps for Miri backtraces
@@ -3827,7 +3827,7 @@ pub const unsafe fn copy_nonoverlapping<T>(src: *const T, dst: *mut T, count: us
3827
3827
/// ```
3828
3828
#[ doc( alias = "memmove" ) ]
3829
3829
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
3830
- #[ rustc_allowed_through_unstable_modules = "import this function via `std::mem ` instead" ]
3830
+ #[ rustc_allowed_through_unstable_modules = "import this function via `std::ptr ` instead" ]
3831
3831
#[ rustc_const_stable( feature = "const_intrinsic_copy" , since = "1.83.0" ) ]
3832
3832
#[ inline( always) ]
3833
3833
#[ cfg_attr( miri, track_caller) ] // even without panics, this helps for Miri backtraces
@@ -3907,7 +3907,7 @@ pub const unsafe fn copy<T>(src: *const T, dst: *mut T, count: usize) {
3907
3907
/// ```
3908
3908
#[ doc( alias = "memset" ) ]
3909
3909
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
3910
- #[ rustc_allowed_through_unstable_modules = "import this function via `std::mem ` instead" ]
3910
+ #[ rustc_allowed_through_unstable_modules = "import this function via `std::ptr ` instead" ]
3911
3911
#[ rustc_const_stable( feature = "const_ptr_write" , since = "1.83.0" ) ]
3912
3912
#[ inline( always) ]
3913
3913
#[ cfg_attr( miri, track_caller) ] // even without panics, this helps for Miri backtraces
0 commit comments