&gt; Overflow is defined by the language as an illegal operation<p>Is it? What do you mean by illegal here? Overflow can&#x27;t cause UB madness in Rust like it does in C; the compiler does not optimize loops assuming no overflow.