Skip to content

c_void stabilized since 1.30.0? #65922

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

Closed
tesuji opened this issue Oct 29, 2019 · 3 comments
Closed

c_void stabilized since 1.30.0? #65922

tesuji opened this issue Oct 29, 2019 · 3 comments

Comments

@tesuji
Copy link
Contributor

tesuji commented Oct 29, 2019

I compile this snippet with Rust 1.1.0 : https://rust.godbolt.org/z/L3Ks20

pub type HANDLE = *mut ::std::ffi::c_void;

The snippet cannot be compiled. The compiler outputs:

<source>:1:24: 1:42 error: use of undeclared type name `std::ffi::c_void`
<source>:1 pub type HANDLE = *mut ::std::ffi::c_void;
                                      ^~~~~~~~~~~~~~~~~~

After searching a little bit, I know that #53910 moved std::os::raw::c_void to the as is.
But when reading std doc, people may assume that they could use this reexport
since Rust 1.1.0.
image

What could we do to improve this situation?

@tesuji
Copy link
Contributor Author

tesuji commented Oct 29, 2019

Or we could state that people could use std::os::raw::c_void in older Rust versions.

@mati865
Copy link
Contributor

mati865 commented Oct 29, 2019

Duplicate of #63694?

@tesuji
Copy link
Contributor Author

tesuji commented Oct 29, 2019

Indeed. Let's close it then.

@tesuji tesuji closed this as completed Oct 29, 2019
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

2 participants