-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Tracking Issue for BufWriter::into_parts #80690
Comments
@rust-lang/libs Check out @ijackson's recap of this API in #84770 (comment). |
Team member @dtolnay has proposed to merge this. The next step is review by the rest of the tagged team members: Concerns: Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
Should Also, it looks like the |
I don't have an opinion about this. I just chose that name to distinguish it more from
I will check this. Thanks! |
I'm with @BurntSushi on this one, the |
Indeed. I did some looking around and I think your feeling is justified:ad88a43 Hence #85901 where I change this. That ought to go first. I'm not sure what the implications are for the stabilisation - does that mean it should wait some more? Thanks. |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
@rfcbot concern name Registering a concern so that this FCP doesn't complete until we finalize the name. I agree that |
@ijackson If the only thing that changes is the name, we don't need to delay stabilization (other than to wait for the PR changing the name). If something more substantive changes, we can consider if that impacts the evaluation we've done so far or not. |
The 'raw' here refers to the fact that unlike .into_inner(), this function does not attempt to flush the data but just directly gives you the 'raw' parts of the buffer, without trying to process them. I can see how it can be confusing with our other uses of the word raw, but just calling it |
|
Looks like WriterPanicked isn't publicly available: https://doc.rust-lang.org/nightly/std/io/struct.BufWriter.html#method.into_raw_parts Did something go wrong there with the visibility? |
…iplett Bufwriter disassembly tweaks In rust-lang#80690 `@BurntSushi` observed that `WriterPanicked` was erroneously not exported, and suggested renaming `into_raw_parts` to `into_parts`. (More info in my commit messages.) r? `@BurntSushi`
…iplett Bufwriter disassembly tweaks In rust-lang#80690 `@BurntSushi` observed that `WriterPanicked` was erroneously not exported, and suggested renaming `into_raw_parts` to `into_parts`. (More info in my commit messages.) r? `@BurntSushi`
…iplett Bufwriter disassembly tweaks In rust-lang#80690 ``@BurntSushi`` observed that `WriterPanicked` was erroneously not exported, and suggested renaming `into_raw_parts` to `into_parts`. (More info in my commit messages.) r? ``@BurntSushi``
…lett Bufwriter disassembly tweaks In rust-lang#80690 `@BurntSushi` observed that `WriterPanicked` was erroneously not exported, and suggested renaming `into_raw_parts` to `into_parts`. (More info in my commit messages.) r? `@BurntSushi`
Feature gate:
#![feature(bufwriter_into_parts)]
This is a tracking issue for
BufWriter::into_parts
and its associated error type etc.This allows a
BufWriter
to be disassembled, and the inner writer to be recovered - without attempting to write out any buffered data (instead it is returnedt to the caller), and therefore (unlikeinto_inner
) succeeding even if the underlying writer is returning errors.Public API
Steps / History
Unresolved Questions
into_raw_parts
be calledinto_parts
? Tracking Issue for BufWriter::into_parts #80690 (comment)The text was updated successfully, but these errors were encountered: