3 ms·
> fast integer overflow checks Rust's implicit overflow checks are only in debug mode I think. Overflow is defined to wrap in release mode.
by oconnor663 8y ago
> fast integer overflow checks
Rust's implicit overflow checks are only in debug mode I think. Overflow is defined to wrap in release mode.
- steveklabnik 8y agoYes, due to the hit in performance. We'd love to turn them on unconditionally, and the language is spec'd so that we can someday, but since overflow is not a memory safety issue on its own, and there is a performance hit when checking, this is the current compromise.