2 ms·
Rust std::alloc has the same standard interface as everything else- return null on failure to allocate. It's just that the development in std collections to use
by kzrdude 6y ago
Rust std::alloc has the same standard interface as everything else- return null on failure to allocate. It's just that the development in std collections to use this is in progress. And it's being retrofitted to collections that assume they can just abort or panic on alloc failure.
- steveklabnik 6y ago(Some of) Those collections live in std::alloc as well, which is the issue here.