We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a0d33a commit 8919cb4Copy full SHA for 8919cb4
library/core/src/ub_checks.rs
@@ -68,7 +68,7 @@ macro_rules! assert_unsafe_precondition {
68
#[track_caller]
69
const fn precondition_check($($name:$ty),*) {
70
if !$e {
71
- ::core::panicking::panic_nounwind_fmt(
+ ::core::panicking::panic_nounwind(
72
concat!("unsafe precondition(s) violated: ", $message)
73
);
74
}
@@ -150,7 +150,7 @@ pub(crate) const fn is_nonoverlapping(
150
let src_usize = src.addr();
151
let dst_usize = dst.addr();
152
let Some(size) = size.checked_mul(count) else {
153
- crate::panicking::panic_nounwind_fmt(
+ crate::panicking::panic_nounwind(
154
"is_nonoverlapping: `size_of::<T>() * count` overflows a usize",
155
)
156
};
0 commit comments