Skip to content

Commit 8919cb4

Browse files
oops
1 parent 0a0d33a commit 8919cb4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/ub_checks.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ macro_rules! assert_unsafe_precondition {
6868
#[track_caller]
6969
const fn precondition_check($($name:$ty),*) {
7070
if !$e {
71-
::core::panicking::panic_nounwind_fmt(
71+
::core::panicking::panic_nounwind(
7272
concat!("unsafe precondition(s) violated: ", $message)
7373
);
7474
}
@@ -150,7 +150,7 @@ pub(crate) const fn is_nonoverlapping(
150150
let src_usize = src.addr();
151151
let dst_usize = dst.addr();
152152
let Some(size) = size.checked_mul(count) else {
153-
crate::panicking::panic_nounwind_fmt(
153+
crate::panicking::panic_nounwind(
154154
"is_nonoverlapping: `size_of::<T>() * count` overflows a usize",
155155
)
156156
};

0 commit comments

Comments
 (0)