Skip to content

Commit 8c6ed65

Browse files
committed
Auto merge of rust-lang#147784 - nxsaken:div_exact_return_option, r=dtolnay
Return `Option` from `exact_div` and inherit overflow checks According to rust-lang#139911 (comment), `exact_div` should return `Option::None` if `self % rhs != 0`, panic if `rhs == 0`, and handle overflow conditionally (panic in debug, wrap in release). rust-lang#147771 should rename `exact_div` to `div_exact`.
2 parents 6aa1d49 + bf08b3a commit 8c6ed65

File tree

0 file changed

+0
-0
lines changed

    0 file changed

    +0
    -0
    lines changed

    0 commit comments

    Comments
     (0)