This repository was archived by the owner on May 28, 2025. It is now read-only.
Commit e745e09
authored
Rollup merge of rust-lang#89351 - tspiteri:wrapping_rem, r=dtolnay
for signed wrapping remainder, do not compare lhs with MIN
Since the wrapped remainder is going to be 0 for all cases when the rhs is -1, there is no need to compare the lhs with MIN.1 file changed
+4
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1533 | 1533 | | |
1534 | 1534 | | |
1535 | 1535 | | |
1536 | | - | |
1537 | | - | |
1538 | | - | |
| 1536 | + | |
| 1537 | + | |
1539 | 1538 | | |
1540 | 1539 | | |
1541 | 1540 | | |
| |||
1565 | 1564 | | |
1566 | 1565 | | |
1567 | 1566 | | |
1568 | | - | |
1569 | | - | |
1570 | | - | |
| 1567 | + | |
| 1568 | + | |
1571 | 1569 | | |
1572 | 1570 | | |
1573 | 1571 | | |
| |||
0 commit comments