We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27cf4bb commit af49c4dCopy full SHA for af49c4d
library/core/src/num/nonzero.rs
@@ -368,7 +368,7 @@ where
368
// SAFETY: The caller guarantees that `n` references a value that is non-zero, so this is unreachable.
369
unsafe {
370
intrinsics::assert_unsafe_precondition!(
371
- check_language_ub,
+ check_library_ub,
372
"NonZero::from_mut_unchecked requires the argument to dereference as non-zero",
373
() => false,
374
);
0 commit comments