-
-
Notifications
You must be signed in to change notification settings - Fork 393
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
Heads-up: winapi 0.2.8 will fail to build soon-ish #1030
Comments
I wrote a patch that fixes the build and pushed it to https://github.com/RalfJung/winapi-rs/tree/0.2. I am not entirely sure, however, if there was some reason why |
It might have been implemented instead of derived due to compile-duration concerns. Is there a reason why the derived |
The reason is "it's a breaking change" (given the constraints on how derive macros work), but we are probably going to do that anyway. See rust-lang/rust#104429.
|
We ended up changing the implementation of |
In rust-lang/rust#102513 we are moving ahead with finally closing the ancient soundness issue rust-lang/rust#82523 (originally tracked at rust-lang/rust#27060): we are disallowing creating references to fields of packed structs. It seems like that will make winapi 0.2.8 fail to build:
It looks like current versions of winapi avoid that error by deriving
Copy
for those structs.I am not sure if there is anything you want to do about this -- winapi 0.2.8 seems to not be supported any more. However, given how widely used this crate is, it still might make sense to do a patch release so that people can fix their build with
cargo update
. If you want to do that, I'm open to waiting a bit before landing the rustc PR so that you can get the patch release out first.The text was updated successfully, but these errors were encountered: