Skip to content

Allocation failures are not panics #651

@Darksonn

Description

@Darksonn

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions