3 ms·
There are cases where you as the programmer have enough to know that there is data in the container even though anything less than whole program analysis cannot
by bluGill 3y ago
There are cases where you as the programmer have enough to know that there is data in the container even though anything less than whole program analysis cannot prove it. Rust will do unneeded check in those cases.
I do agree though, the cost of the check is so small that it doesn't matter in most cases.