Skip to content

Build failure on linux i686 #2505

Description

@Itsusinn
[5](https://github.com/rust-proxy/wind/actions/runs/27064116765/job/79881884126#step:13:756)
    Checking tokio-quiche v0.18.0
error[E0080]: transmuting from 16-byte type to 12-byte type: `u128` -> `std::time::Instant`
Error:    --> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-quiche-0.18.0/src/quic/io/gso.rs:126:44
    |
126 |     const INSTANT_ZERO: Instant = unsafe { std::mem::transmute(0u128) };
    |                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `quic::io::gso::send_to::{closure#0}::INSTANT_ZERO` failed here

error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
Error:    --> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-quiche-0.18.0/src/quic/io/gso.rs:126:44
    |
126 |     const INSTANT_ZERO: Instant = unsafe { std::mem::transmute(0u128) };
    |                                            ^^^^^^^^^^^^^^^^^^^
    |
    = note: source type: `u128` (128 bits)
    = note: target type: `std::time::Instant` (96 bits)

Some errors have detailed explanations: E0080, E0512.
For more information about an error, try `rustc --explain E0080`.

const INSTANT_ZERO: Instant = unsafe { std::mem::transmute(0u128) };

Issues/PR might related #1483

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