-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Map EINPROGRESS to io::ErrorKind::WouldBlock #101155
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
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @thomcc (or someone else) soon. Please see the contribution instructions for more information. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please read the about adding new functionality to the stdlib: https://std-dev-guide.rust-lang.org/feature-lifecycle/summary.html. In particular, this needs an API change proposal, as described here: https://std-dev-guide.rust-lang.org/feature-lifecycle/api-change-proposals.html
However, this seems redundant with ErrorKind::WouldBlock
, so you'll need to explain how this is different and worth adding.
library/std/src/io/error.rs
Outdated
@@ -341,6 +341,10 @@ pub enum ErrorKind { | |||
#[stable(feature = "unsupported_error", since = "1.53.0")] | |||
Unsupported, | |||
|
|||
/// The operation was partially sucessful and needs to be checked | |||
/// later on due to not blocking | |||
InProgress, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need an unstable annotation. Something like #[unstable(feature = "io_error_inprogress", issue = "none")]
@rustbot author |
This comment has been minimized.
This comment has been minimized.
Thanks for the review, followed your lead and opened an issue - rust-lang/libs-team#92. Let's discuss there? |
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
@rustbot label -S-waiting-on-author +S-waiting-on-review |
The updated PR looks fine to me, although I'm unsure if this needs API approval. I've nominated it to sort that out. |
|
Do you think we should add an |
Yes, I think we should. |
Closing this while we figure out what we want here: rust-lang/libs-team#92 :) |
No description provided.