Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit891f00c

Browse files
fix wrong assert_unsafe_precondition message for core::ptr::copy
1 parent9921cd2 commit891f00c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎core/src/intrinsics.rs‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3043,8 +3043,7 @@ pub const unsafe fn copy<T>(src: *const T, dst: *mut T, count: usize) {
30433043
unsafe{
30443044
ub_checks::assert_unsafe_precondition!(
30453045
check_language_ub,
3046-
"ptr::copy_nonoverlapping requires that both pointer arguments are aligned and non-null\
3047-
and the specified memory ranges do not overlap",
3046+
"ptr::copy requires that both pointer arguments are aligned and non-null",
30483047
(
30493048
src:*const() = srcas*const(),
30503049
dst:*mut() = dstas*mut(),

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp