Skip to content

std::boxed::into_raw should be marked as safe #25755

Closed
@shepmaster

Description

@shepmaster

If I understand the reasoning behind marking mem::forget safe, then I think the same should apply to into_raw.

Currently, it says:

Function is unsafe, because result of this function is no longer automatically managed that may lead to memory or other resource leak.

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