Skip to content

core::unsafe::reinterpret_cast should move in its argument? #1777

@brson

Description

@brson

When used with pointer types this function is almost always paired with unsafe::leak to make the caller forget about one of the pointers. This would not be necessary if reinterpret_cast consumed the input value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions