4 ms·
No, this is not true. Rust removes integer overflow checks in release mode, but it keeps array bounds checks. You can see this pretty easily in compiler explor
by josephg 4y ago
No, this is not true. Rust removes integer overflow checks in release mode, but it keeps array bounds checks.
You can see this pretty easily in compiler explorer. This is a simple array lookup compiled in release mode:
https://rust.godbolt.org/z/dhz34KEvj https://rust.godbolt.org/z/dhz34KEvj