Skip to content

1.97 beta regression due to TryFromIntError changing size #157363

Description

@theemathas

This regression was found by the 1.97 beta crater run.

[INFO] [stdout] error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
[INFO] [stdout]   --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/ethnum-1.5.2/src/error.rs:16:14
[INFO] [stdout]    |
[INFO] [stdout] 16 |     unsafe { mem::transmute(()) }
[INFO] [stdout]    |              ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: source type: `()` (0 bits)
[INFO] [stdout]    = note: target type: `TryFromIntError` (8 bits)

It affects 230 dependents of ethnum version 1.5.2 or earlier. (ethnum version 1.5.3 was released on April 20 to fix this.)

Presumably regressed in #153178. cc @sorairolake, @tgross35

I assume this is acceptable breakage, but I'm filing this issue just in case some action is needed (e.g., a mention in the release notes).

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

    C-bugCategory: This is a bug.T-libs-api[DEPRECATED; DO NOT USE]regression-from-stable-to-betaPerformance or correctness regression from stable to beta.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions