amethyst / amethyst/legion

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

未關閉
#299 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Rust
星號
1.7k
分支
140
PR 合併指標
30 天內沒有已合併 PR

描述

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"
```

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。