-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Unnecessary improper_ctypes warning for extern "Rust" #64593
Comments
For context, see: rust-random/getrandom#109
|
Also the |
There are instances of this in Lines 243 to 247 in 9ad1e7c
Lines 73 to 78 in 9ad1e7c
|
Exempt extern "Rust" from improper_ctypes It should be fine for Rust ABIs to involve any Rust type. Fixes rust-lang#64593.
Exempt extern "Rust" from improper_ctypes It should be fine for Rust ABIs to involve any Rust type. Fixes rust-lang#64593.
The following code generates an
improper_ctypes
warning:I would expect this sort of warning for an
extern "C"
declaration, but it seems incorrect for anextern "Rust"
declaration. Am I misunderstanding something, or is this a warning that is safe to disable?The text was updated successfully, but these errors were encountered: