You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I guess this makes overflowing_* function calls mostly obsolete then, right?
I don't think it does - it's more like combination of checked_ + unwrap. Imho it's still preferable to use explicit checked_/wrapping_/overflowing_ arithmetic over the operators, but this config at least ensures the same behavior in debug and release for when they're used
The arithmetic operators have different default behavior in debug (checked, panic on overflow) vs release build (unchecked, wrapping).
We should enable
overflow-checks
by default in release build as it’s a safer thing to do in our settings and the added cost is worth it.https://doc.rust-lang.org/reference/expressions/operator-expr.html#overflow
The text was updated successfully, but these errors were encountered: