3 ms·
> If not specified, overflow checks are enabled if debug-assertions are enabled, disabled otherwise Both of the values you can set don't give you a warning tho
by hn92726819 4y ago
> If not specified, overflow checks are enabled if debug-assertions are enabled, disabled otherwise
Both of the values you can set don't give you a warning though. The linked article is about producing a warning or error when there can possibly be an overflow/panic, which clippy already does.
Edit: here's the lint that warns you that a panic or overflow can be caused: https://rust-lang.github.io/rust-clippy/master/#integer_arithmetic https://rust-lang.github.io/rust-clippy/master/#integer_arit...