Skip to content

c_void stabilized since 1.30.0? #65922

Closed
Closed
@tesuji

Description

@tesuji

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions