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

Bufwriter disassembly tweaks #85901

Merged
merged 3 commits into from
Jul 29, 2021
Merged

Bufwriter disassembly tweaks #85901

merged 3 commits into from
Jul 29, 2021

Conversation

ijackson
Copy link
Contributor

@ijackson ijackson commented Jun 1, 2021

In #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

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 1, 2021
@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@crlf0710 crlf0710 added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jun 26, 2021
ijackson added a commit to ijackson/rust that referenced this pull request Jul 19, 2021
As requested
  rust-lang#85901 (review)

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
@ijackson
Copy link
Contributor Author

ijackson commented Jul 19, 2021

Rebased onto current master.

@joshtriplett
Copy link
Member

Thanks for implementing the rename!

@bors r+

@bors
Copy link
Contributor

bors commented Jul 28, 2021

📌 Commit 51d16ac has been approved by joshtriplett

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jul 28, 2021
JohnTitor added a commit to JohnTitor/rust that referenced this pull request Jul 28, 2021
…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`
@JohnTitor
Copy link
Member

Failed in rollup: #87567 (comment)
Needs a rebase to fix one more use on the latest master.
@bors r-

@bors bors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Jul 28, 2021
@ijackson
Copy link
Contributor Author

@JohnTitor Oh dear. Sorry, this seems rather messed up I'm a bit full of wine now :-) but I will look at it properly tomorrow.

I didn't notice the submodule, which means I failed to re-export this
to make it actually-public.

Reported-by: Andrew Gallant <jamslam@gmail.com>
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
I looked in stdlib and as @BurntSushi thought, `raw` is generally
used for raw pointers, or other hazardous kinds of thing.  stdlib does
not have `into_parts` apart from the one I added to `IntoInnerError`.

I did an ad-hoc search of the rustdocs for my current game project
Otter, which includes quite a large number of dependencies.
`into_parts` seems heavily used for things quite like this.

So change this name.

Suggested-by: Andrew Gallant <jamslam@gmail.com>
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
As requested
  rust-lang#85901 (review)

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
@ijackson
Copy link
Contributor Author

Oh I see, 8837bf1 introduced a use of into_raw_parts which then also needs to be renamed.

OK, Rebased and fixed. I also double checked the docs and they do look like everything is properly exported.

@JohnTitor
Copy link
Member

Thanks!
@bors r=joshtriplett

@bors
Copy link
Contributor

bors commented Jul 29, 2021

📌 Commit bf30c51 has been approved by joshtriplett

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jul 29, 2021
GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request Jul 29, 2021
…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`
fee1-dead added a commit to fee1-dead-contrib/rust that referenced this pull request Jul 29, 2021
…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``
@bors
Copy link
Contributor

bors commented Jul 29, 2021

⌛ Testing commit bf30c51 with merge 4927238...

@bors
Copy link
Contributor

bors commented Jul 29, 2021

☀️ Test successful - checks-actions
Approved by: joshtriplett
Pushing 4927238 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Jul 29, 2021
@bors bors merged commit 4927238 into rust-lang:master Jul 29, 2021
@rustbot rustbot added this to the 1.56.0 milestone Jul 29, 2021
@ijackson ijackson deleted the bufwriter-tweaks branch August 24, 2021 17:05
LeSeulArtichaut added a commit to LeSeulArtichaut/rust that referenced this pull request Aug 25, 2021
Stabilise BufWriter::into_parts

The FCP for this has already completed, in rust-lang#80690.

This was just blocked on rust-lang#85901 (which changed the name), which is now merged.  The original stabilisation MR was rust-lang#84770 but that has a lot of noise in it, and I also accidentally deleted the branch while trying to tidy up.  So here is a new MR.  Sorry for the noise.

Closes rust-lang#80690
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants