diff options
| author | Florian Sextl <florian.sextl@tuwien.ac.at> | 2024-06-13 14:45:45 +0200 |
|---|---|---|
| committer | Florian Sextl <florian.sextl@tuwien.ac.at> | 2024-06-13 14:45:45 +0200 |
| commit | 0cc099b8a205d838f8b67996e9a75c2217574fc0 (patch) | |
| tree | b92f1fed621b2598b694f25e528ffaafdbd38f4f | |
| parent | 921645c737f1d6d107a0a10ca5ee129d364dcd7a (diff) | |
fix wrong assert_unsafe_precondition message for core::ptr::copy
| -rw-r--r-- | library/core/src/intrinsics.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/library/core/src/intrinsics.rs b/library/core/src/intrinsics.rs index cd3534ecb12..6b5054a9f06 100644 --- a/library/core/src/intrinsics.rs +++ b/library/core/src/intrinsics.rs @@ -3043,8 +3043,7 @@ pub const unsafe fn copy<T>(src: *const T, dst: *mut T, count: usize) { unsafe { ub_checks::assert_unsafe_precondition!( check_language_ub, - "ptr::copy_nonoverlapping requires that both pointer arguments are aligned and non-null \ - and the specified memory ranges do not overlap", + "ptr::copy requires that both pointer arguments are aligned and non-null", ( src: *const () = src as *const (), dst: *mut () = dst as *mut (), |
