Skip to content

core lacks a stable version of transmute #59573

Closed
@Lokathor

Description

@Lokathor

We obviously have std::mem::transmute, but for core we only have

  • core::intrinsics::transmute: unstable / feature gated
  • core::mem::transmute_copy: which is actually more dangerous than transmute because it's missing the "before and after have the same size" check.

So can we get core::mem::transmute?

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