Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crossbeam-0.1.6 cannot transmute between types of different sizes, or dependently-sized types #299

Open
jarkkofree opened this issue Nov 26, 2023 · 0 comments

Comments

@jarkkofree
Copy link

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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant