@@ -3720,7 +3720,7 @@ pub const fn ptr_metadata<P: ptr::Pointee<Metadata = M> + ?Sized, M>(ptr: *const
3720
3720
/// [`Vec::append`]: ../../std/vec/struct.Vec.html#method.append
3721
3721
#[ doc( alias = "memcpy" ) ]
3722
3722
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
3723
- #[ rustc_allowed_through_unstable_modules = "import this function via `std::mem ` instead" ]
3723
+ #[ rustc_allowed_through_unstable_modules = "import this function via `std::ptr ` instead" ]
3724
3724
#[ rustc_const_stable( feature = "const_intrinsic_copy" , since = "1.83.0" ) ]
3725
3725
#[ inline( always) ]
3726
3726
#[ cfg_attr( miri, track_caller) ] // even without panics, this helps for Miri backtraces
@@ -3823,7 +3823,7 @@ pub const unsafe fn copy_nonoverlapping<T>(src: *const T, dst: *mut T, count: us
3823
3823
/// ```
3824
3824
#[ doc( alias = "memmove" ) ]
3825
3825
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
3826
- #[ rustc_allowed_through_unstable_modules = "import this function via `std::mem ` instead" ]
3826
+ #[ rustc_allowed_through_unstable_modules = "import this function via `std::ptr ` instead" ]
3827
3827
#[ rustc_const_stable( feature = "const_intrinsic_copy" , since = "1.83.0" ) ]
3828
3828
#[ inline( always) ]
3829
3829
#[ cfg_attr( miri, track_caller) ] // even without panics, this helps for Miri backtraces
@@ -3903,7 +3903,7 @@ pub const unsafe fn copy<T>(src: *const T, dst: *mut T, count: usize) {
3903
3903
/// ```
3904
3904
#[ doc( alias = "memset" ) ]
3905
3905
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
3906
- #[ rustc_allowed_through_unstable_modules = "import this function via `std::mem ` instead" ]
3906
+ #[ rustc_allowed_through_unstable_modules = "import this function via `std::ptr ` instead" ]
3907
3907
#[ rustc_const_stable( feature = "const_ptr_write" , since = "1.83.0" ) ]
3908
3908
#[ inline( always) ]
3909
3909
#[ cfg_attr( miri, track_caller) ] // even without panics, this helps for Miri backtraces
0 commit comments