Skip to content
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

Remove incorrect error behavior from ready_chunks docs #2687

Merged
merged 1 commit into from Jan 15, 2023

Conversation

jongiddy
Copy link
Contributor

Unlike TryStream::try_chunks, which has similar documentation and can handle Some(Err(_)) specially, Stream::ready_chunks does not and cannot know whether the stream item represents an error condition, and does not include any code to return early on an error.

Unlike `TryStream::try_chunks`, which has similar documentation and can
handle `Some(Err(_))` specially, `Stream::ready_chunks` does not and
cannot know whether the stream item represents an error condition, and
does not include any code to return early on an error.
Copy link
Member

@taiki-e taiki-e left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

@taiki-e taiki-e merged commit 838f9ef into rust-lang:master Jan 15, 2023
@taiki-e taiki-e added docs 0.3-backport: pending The maintainer accepted to backport this to the 0.3 branch, but backport has not been done yet. labels Jan 15, 2023
taiki-e pushed a commit that referenced this pull request Jan 30, 2023
Unlike `TryStream::try_chunks`, which has similar documentation and can
handle `Some(Err(_))` specially, `Stream::ready_chunks` does not and
cannot know whether the stream item represents an error condition, and
does not include any code to return early on an error.
@taiki-e taiki-e added 0.3-backport: completed and removed 0.3-backport: pending The maintainer accepted to backport this to the 0.3 branch, but backport has not been done yet. labels Jan 30, 2023
taiki-e pushed a commit that referenced this pull request Jan 30, 2023
Unlike `TryStream::try_chunks`, which has similar documentation and can
handle `Some(Err(_))` specially, `Stream::ready_chunks` does not and
cannot know whether the stream item represents an error condition, and
does not include any code to return early on an error.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants