We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aae7e6c commit 3715d9eCopy full SHA for 3715d9e
core/src/ptr/mod.rs
@@ -1070,7 +1070,7 @@ pub const unsafe fn swap<T>(x: *mut T, y: *mut T) {
1070
#[rustc_diagnostic_item = "ptr_swap_nonoverlapping"]
1071
pub const unsafe fn swap_nonoverlapping<T>(x: *mut T, y: *mut T, count: usize) {
1072
ub_checks::assert_unsafe_precondition!(
1073
- check_language_ub,
+ check_library_ub,
1074
"ptr::swap_nonoverlapping requires that both pointer arguments are aligned and non-null \
1075
and the specified memory ranges do not overlap",
1076
(
0 commit comments