Skip to content

Exception safety statement regarding Box contradicted by std docs #509

@gfaster

Description

@gfaster

// Exception safety is not a concern because Box can't panic

This asserts that Box::new cannot panic, but of course, it may fail to allocate in which case handle_alloc_error is called, which is documented as potentially panicking.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions