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

Never return an error after a partial write #32107

Merged
merged 2 commits into from
Mar 10, 2016

Conversation

Stebalien
Copy link
Contributor

If LineWriter fails to flush, return the number of bytes written instead
of an error.

Fixes #32085

If LineWriter fails to flush, return the number of bytes written instead
of an error.

Fixes rust-lang#32085
@Stebalien
Copy link
Contributor Author

As this technically changes the behavior of LineWriter, this is a breaking change. How/should I label it?

@alexcrichton
Copy link
Member

Thanks! I think it's fine to call this a bugfix rather than a breaking change. Can you be sure to add a test for this though?

@Stebalien
Copy link
Contributor Author

@alexcrichton done.

@alexcrichton
Copy link
Member

@bors: r+ c516335

Thanks!

@alexcrichton alexcrichton self-assigned this Mar 8, 2016
@bors
Copy link
Contributor

bors commented Mar 10, 2016

⌛ Testing commit c516335 with merge c1fb50f...

bors added a commit that referenced this pull request Mar 10, 2016
Never return an error after a partial write

If LineWriter fails to flush, return the number of bytes written instead
of an error.

Fixes #32085
@bors bors merged commit c516335 into rust-lang:master Mar 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants