Skip to content

Build fails on mem::transmute call #9

@jeffs

Description

@jeffs

The current stable Rust compiler can't build actix_todo. Is there any known workaround?

$ rustc --version
rustc 1.65.0 (897e37553 2022-11-02)
$ ./build.sh

...

error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
   --> /home/jeff/.cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.3.8/src/sockaddr.rs:153:9
    |
153 |         mem::transmute::<SocketAddrV4, sockaddr_in>(v4);
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: source type: `SocketAddrV4` (48 bits)
    = note: target type: `sockaddr_in` (128 bits)

   Compiling nom v4.2.3
For more information about this error, try `rustc --explain E0512`.
error: could not compile `socket2` due to previous error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions