4 ms·
Why does Rust still not warn at compile time and furthermore actually crash (panic) on OOB access if it has the checks you describe?
by ue_ 10y ago
Why does Rust still not warn at compile time and furthermore actually crash (panic) on OOB access if it has the checks you describe?
- jdmichal 10y agoI never stated whether the checks were static or runtime. In this case, they are runtime checks. What you are talking about is value range analysis. Rust does a limited amount of it, and if it can prove safe indexing it will remove the runtime checks.
- deleted 10y ago[deleted]