-
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
fix: use c_char from crate root #3706
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @JohnTitor (or someone else) some time within the next two weeks. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
|
This seems fine and it should indeed be a
Is there any specific problem here or cases where In any case, please rebase so the merge commit can be dropped. @rustbot author |
I have a PR that intends to add a test that ensures that they are the same. #3616 This is moved from rustc where we skip certain platforms that don't have libc in the sysroot. But we really should be testing them, hence moving the test into libc. |
Yes, I was trying to port libc crate to proprietary system with network stack from bsd, this system's char is signed but for bsd it is unsigned, and they mismatched. (If I remember everything correctly, it was more than two months ago) |
Meaning, |
I've added new module for that system in my libc fork, because libc does not have support for that system. In that module I've defined c_char as i8. Then I re-exported network related things from bsd module by specifying
|
Most likely this is a typo and c_char from crate root should be used. If this is intentional and there must be an unsigned char, then it may be better to specify u8 instead of c_char.