Skip to content

old rand_core versions import from core::intrinsics module #82

Description

@mejrs

In rust-lang/rust#157082 (comment) we discovered that, through old rand_core versions, many crates are relying on the accidental stabilization of (in this case) core::intrinsics::transmute. We would like to be able to get rid of the hack required to support this, and the first step for that is fixing it in affected projects.

The affected rand_core versions are:

rand_core-0.1.0
rand_core-0.1.0-pre
rand_core-0.2.0
rand_core-0.2.1
rand_core-0.2.2
rand_core-0.3.0
rand_core-0.4.0
rand_core-0.4.2
rand_core-0.5.0 (but not 0.5.1)

The required change is in impls.rs

-use core::intrinsics::transmute;
+use core::mem::transmute;

Would you be willing to fix these and create new minor releases for these versions? I'd be willing to do it myself, but as I understand this, I'd need write access to create new branches.

Thanks in advance, mejrs on behalf of the Rust project.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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