6 ms·
That's not right, Rust only checks for overflow in release mode for numbers where its value is known at compile time. In debug mode all operations are checked f
by jakobnissen 3y ago
That's not right, Rust only checks for overflow in release mode for numbers where its value is known at compile time. In debug mode all operations are checked for overflow.
- FridgeSeal 3y agoAahh, my bad. TIL.
- estebank 3y agoInteger overflows can be enabled in release mode by modifying your Cargo.toml with [profile.release] overflow-checks = true IMO it should have been the default.