Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
workingjubilee committed Aug 27, 2024
1 parent 0a0d33a commit 8919cb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/core/src/ub_checks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ macro_rules! assert_unsafe_precondition {
#[track_caller]
const fn precondition_check($($name:$ty),*) {
if !$e {
::core::panicking::panic_nounwind_fmt(
::core::panicking::panic_nounwind(
concat!("unsafe precondition(s) violated: ", $message)
);
}
Expand Down Expand Up @@ -150,7 +150,7 @@ pub(crate) const fn is_nonoverlapping(
let src_usize = src.addr();
let dst_usize = dst.addr();
let Some(size) = size.checked_mul(count) else {
crate::panicking::panic_nounwind_fmt(
crate::panicking::panic_nounwind(
"is_nonoverlapping: `size_of::<T>() * count` overflows a usize",
)
};
Expand Down

0 comments on commit 8919cb4

Please sign in to comment.