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 46eaf11 commit c249108Copy full SHA for c249108
library/core/src/num/int_macros.rs
@@ -695,9 +695,9 @@ macro_rules! int_impl {
695
// SAFETY: div by zero and by INT_MIN have been checked above
696
unsafe {
697
if unlikely!(intrinsics::unchecked_rem(self, rhs) == 0) {
698
- None
699
- } else {
700
Some(intrinsics::unchecked_div(self, rhs))
+ } else {
+ None
701
}
702
703
library/core/src/num/uint_macros.rs
@@ -681,9 +681,9 @@ macro_rules! uint_impl {
681
// failure modes for division
682
683
684
685
686
687
688
689
0 commit comments