Uh oh!
There was an error while loading. Please reload this page.
Fix some raw types in std to match what's in libc - #43499
Conversation
The pthread_t type, in particular, causes failures when building cargo 0.20.0 after changeset 8304e06 in the libc repo.
cuviper
commented
Jul 27, 2017
Most of those raw types are deliberately wrong per #31551. I think you can still make a case for |
binarycrusader
commented
Jul 27, 2017
@cuviper can you expound a bit on the "deliberately wrong" part? There's not enough reasoning in #31551 to explain why. Should rust itself no longer be using these at all? |
sfackler
commented
Jul 27, 2017
Those type definitions are all stable and can't be changed. |
They were never correct to begin with and this only affects Solaris. Surely they can be fixed since they're causing build problems for cargo. |
malbarbo
commented
Jul 27, 2017
@binarycrusader see the comments in #41752. |
dhduvall
commented
Jul 27, 2017
This is the error that prompted this fix: As best I can tell, there's no issue in the I could simply fix That use of a type from the |
alexcrichton
commented
Jul 27, 2017
cuviper
commented
Jul 27, 2017
The filesystem-related types are deliberately wrong mainly because LFS is messy. At least on Linux, there's just not a good way to have types that are truly FFI compatible. So the decision was widen all the But I don't feel too strongly about it, and I don't know the LFS story on Solaris. Fixing |
sfackler
commented
Jul 27, 2017
My recollection is that we deprecated these types for exactly this reason - we couldn't change them since they're stable. Is this an exception because Solaris isn't a tier 1 platform? |
cuviper
commented
Jul 27, 2017
alexcrichton
commented
Jul 27, 2017
Ah yeah it's true, I'd mostly be worried about just fixing |
alexcrichton
commented
Aug 1, 2017
@dhduvall would you like to change this to just fixing |
dhduvall
commented
Aug 1, 2017
My git-fu is sad. I ended up opening #43597. |
The pthread_t type, in particular, causes failures when building cargo 0.20.0 after rust-lang/libc@8304e06b5.