8000 crossbeam-0.1.6 cannot transmute between types of different sizes, or dependently-sized types · Issue #299 · amethyst/legion · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
crossbeam-0.1.6 cannot transmute between types of different sizes, or dependently-sized types #299
Open
@randallsturgis

Description

@randallsturgis

https://github.com/amethyst/legion/blob/32df916517fa3b3bb5d827d824053bbb128a43be/src/internals/hash.rs#L60C24-L60C24

Apologies if this isn't the right process. After adding legion as a dependency and building, I get the following error:

   Compiling atomic_refcell v0.1.13
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
  --> /home/jarkko/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-0.1.6/src/sync/seg_queue.rs:34:29
   |
34 |             ready: unsafe { mem::transmute([0usize; SEG_SIZE]) },
   |                             ^^^^^^^^^^^^^^
   |
   = note: source type: `[usize; 32]` (2048 bits)
   = note: target type: `[AtomicBool; 32]` (256 bits)

For more information about this error, try `rustc --explain E0512`.
error: could not compile `crossbeam` (lib) due to previous error
warning: build failed, waiting for other jobs to finish...

Cargo.tml:

[dependencies]
ggez = "0.9.3"
legion = "0.4.0"
parry = "0.1.0"

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

      0