You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Looks like vec.reserve bottoms out in handle_alloc_error, which may panic or abort depending on how the binary was built. Maybe this should say:
If Vec::reserve(additional) fails to reserve enough memory, extend_vec_zeroed may panic or abort depending on how the program is configured to handle allocation failure.
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, thereserve
method does not panic on allocation failure. Instead, it callsabort
.The text was updated successfully, but these errors were encountered: