-
Notifications
You must be signed in to change notification settings - Fork 13.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
std::os::errno returns a different type than IoError::from_errno takes #16786
Comments
errno should return c_int. |
On Windows This means that |
|
/cc @aturon , is this a backcompati issue? |
This affects the stabilization of the new |
I-needs-decision, P-high; but not 1.0 beta nor P-backcompat-libs. (We may need to put more thought into how we track such things) |
We no longer have |
internal: Improve readability of the parser code The code is basically equivalent to the previous version, but it improves the readability by making it much more simpler and concise.
std::os::errno
returns anint
whereasIoError::from_errno
takes auint
. It's a bit irritating to have to write outerrno() as uint
every time one constructs anIoError
fromerrno
.AIUI
errno
in C is always of (C) typeint
, so my inclination would be to changefrom_errno
unless there's a good reason for it to be usinguint
.The text was updated successfully, but these errors were encountered: