rust/library/core
Jim Turner b45855032b Document panicking cases for integer remainder
The panic when the right operand is `0` is expected, but the
overflow-related panic (which occurs only for `MIN % -1`) is somewhat
surprising for two reasons: a return value of `0` would be reasonable
in this case, and, for most arithmetic operations, overflow results in
panic only when `debug_assertions` is enabled. As a result, it's
helpful to document this behavior.
2021-03-01 17:13:50 -05:00
..
benches Unify way to flip 6th bit. (Same assembly generated) 2021-02-08 12:21:36 +00:00
src Document panicking cases for integer remainder 2021-03-01 17:13:50 -05:00
tests Rollup merge of #81167 - usbalbin:const_write, r=oli-obk 2021-02-25 14:33:51 +01:00
Cargo.toml