-
Notifications
You must be signed in to change notification settings - Fork 105
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
Compiler errors (Copy constraint on Buffer
)
#181
Comments
The PR that broke it in Gfx was gfx-rs/gfx#507 |
No, I was wrong. The |
The problem is that I guess, somehow the |
There should be a rust issue about deriving not working correctly with associated types. |
Dup of #170 ? |
@eddyb Are you suspicious about this being a bug in Rust? |
It's a known issue, and I expect there to an issue open on it in the Rust repo. |
I'll deal with it tonight, unless it's fixed by then. |
This should be fixed in latest, but the new gfx-rs version has not yet been published. |
Gfx v0.1.2 has been published. Please try again with |
NOPE. I'M AN IDIOT AND WRONG. |
Thanks @toqueteos ! I'll have a closer look at this when I'm back at home. We do have the |
NOPE. I'M AN IDIOT AND WRONG. |
I think I found something. Here is your struct: pub struct Buffer {
buf: gfx::BufferHandle<Vertex>,
batch: gfx::batch::RefBatch<ShaderParam>,
} So even if both gfx parts are |
Totally right, I forgot to add the missing derive Copy. It does indeed compile again! Let me copy the MC assets and make a screenshot! YAY for @kvark 👍 ❤️ |
Thanks! Closing as fixed. |
This needs a PR, but mac nightlies are delayed so I can't fix it now. |
@bvssvni Working my ass off on it, also fixing loads of stuff. |
The methods on
Cell
requires aCopy
constraint, which is no longer implemented byBuffer
.The text was updated successfully, but these errors were encountered: