This is a documentation bug report. I've noticed that functions sometimes include a section like the following:
Panics
Panics if Vec::reserve(additional) fails to reserve enough memory.
Allocation failures are handled by just calling into vec.reserve. However, the reserve method does not panic on allocation failure. Instead, it calls abort.
This is a documentation bug report. I've noticed that functions sometimes include a section like the following:
Allocation failures are handled by just calling into
vec.reserve. However, thereservemethod does not panic on allocation failure. Instead, it callsabort.