4 ms·
The parent post mentioned both allocation and indexing. Both have the potential to panic in Rust programs based on the full standard library. Allocation needs
by comex 5y ago
The parent post mentioned both allocation and indexing. Both have the potential to panic in Rust programs based on the full standard library. Allocation needs to be dealt with, as you mention, but out-of-bounds indexing could likely continue to be a Rust panic, which could be translated to a Linux BUG() call.