Unnamed repository; edit this file 'description' to name the repository.
Auto merge of #147784 - nxsaken:div_exact_return_option, r=dtolnay
Return `Option` from `exact_div` and inherit overflow checks According to https://github.com/rust-lang/rust/issues/139911#issuecomment-3404056127, `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/rust#147771 should rename `exact_div` to `div_exact`.
bors 6 months ago
parent 9a0fa09 · parent 95535b7 · commit cabc77d
0 files changed, 0 insertions, 0 deletions