-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
libc::c_void and std::os::raw::c_void are incompatible #59
Comments
Yeah this is a currently conscious decision to not reexport what's in the standard library to help the two evolve independently. For example if libc were to reexport everything in the standard library, then each release of libc would have perhaps a new minimum version of Rust it needs to be paired with which may not work for all others. In order to have maximal compatibility with all Rust versions for now, these aren't going to be reexported. This should be a backwards-compatible change, however, so if it becomes too onerous we can consider adding the reexports at a later date (note that this was an unresolved question in the RFC). For now, though, as this is intentional, I'm going to close this. Thanks for the report, though! |
Would this change actually be backwards-compatible? It seems that it would break any case where someone had implemented the same trait for |
Hm yes that is a good point, that would be a backwards-incompatible change. |
(albeit one that I would expect to be pretty unlikely) |
Just needed some `constify_imm8!` treatment Closes rust-lang#59
Since
c_void
is defined in the standard library, I'd expect this crate to be compatible with it. Could we changelibc::c_void
to be a re-export ofstd::os::raw::c_void
?The text was updated successfully, but these errors were encountered: