@@ -3724,7 +3724,7 @@ pub const fn ptr_metadata<P: ptr::Pointee<Metadata = M> + ?Sized, M>(ptr: *const
37243724/// [`Vec::append`]: ../../std/vec/struct.Vec.html#method.append
37253725#[ doc( alias = "memcpy" ) ]
37263726#[ 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" ]
37283728#[ rustc_const_stable( feature = "const_intrinsic_copy" , since = "1.83.0" ) ]
37293729#[ inline( always) ]
37303730#[ 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
38273827/// ```
38283828#[ doc( alias = "memmove" ) ]
38293829#[ 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" ]
38313831#[ rustc_const_stable( feature = "const_intrinsic_copy" , since = "1.83.0" ) ]
38323832#[ inline( always) ]
38333833#[ 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) {
39073907/// ```
39083908#[ doc( alias = "memset" ) ]
39093909#[ 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" ]
39113911#[ rustc_const_stable( feature = "const_ptr_write" , since = "1.83.0" ) ]
39123912#[ inline( always) ]
39133913#[ cfg_attr( miri, track_caller) ] // even without panics, this helps for Miri backtraces
0 commit comments