Skip to content

Box::pin_in violates pin's drop guarantee #226

Open
@zetanumbers

Description

This is incorrect and violates pin's drop guarantee which in turn breaks existing correct code assuming this rule. For this reason std::box::Box::pin_in has A: 'static bound over the allocator generic type argument.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions