You can set a flag for that: https://doc.rust-lang.org/rustc/codegen-options/index.html#o...
By default, they're on during debug mode and off in release mode.
By default, they're on during debug mode and off in release mode.
There are also specific methods for doing *erflow-checked arithmetic if you like.