-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Implement read_exact for the Read trait #27588
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @huonw (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. The way Github handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
/// | ||
/// If this function encounters an "end of file" before completely filling | ||
/// the buffer, it returns an error of the kind `ErrorKind::UnexpectedEOF`. | ||
/// The contents of `buf` are undefined in this case. |
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.
Might want to say "unspecified" instead of "undefined" here to avoid conflating with undefined behavior.
Looking good to me, thanks @cesarb! Just one minor nit and I think this is good to go |
Oh oops, sorry for the delay @cesarb! Feel free to ping a PR whenever it's updated as unfortunately github doesn't send out notifications for force-pushes or new commits. As one final thing, could you squash these commits together? Thanks! |
This implements the proposed "read_exact" RFC (rust-lang/rfcs#980).
Done. Do you need me to also rebase this on top of a more recent master?
Sorry, I hadn't noticed that. I'll make sure to write a dummy comment whenever I update a pull request from now on. |
@bors r=alexcrichton |
📌 Commit ff81920 has been approved by |
⌛ Testing commit ff81920 with merge 20ffe32... |
💔 Test failed - auto-mac-64-nopt-t |
Looks like
|
There seems to be a catch-22 here:
What should be done to break this deadlock? |
Ah feel free to use the RFC tracking issue, #27585, for the issue number |
I made a commit adding the issue number to the unstable declarations, and it seems to have been accepted by travis-ci. |
⌛ Testing commit 73e7a72 with merge 29da43e... |
💔 Test failed - auto-linux-64-nopt-t |
@bors retry |
⌛ Testing commit 73e7a72 with merge abe5dd0... |
💔 Test failed - auto-linux-64-nopt-t |
@bors retry |
This implements the proposed "read_exact" RFC (rust-lang/rfcs#980). Tracking issue: #27585
This implements the proposed "read_exact" RFC (rust-lang/rfcs#980).
Tracking issue: #27585