Skip to content

Conversation

joshtriplett
Copy link
Member

The methods Take::get_mut and Chain::get_mut include comments
warning about modifying the I/O state of the underlying reader. However,
many readers (e.g. File) allow I/O using a shared reference (e.g.
&File). So, add the same caveat to the get_ref methods.

The methods `Take::get_mut` and `Chain::get_mut` include comments
warning about modifying the I/O state of the underlying reader. However,
many readers (e.g. `File`) allow I/O using a shared reference (e.g.
`&File`). So, add the same caveat to the `get_ref` methods.
@rustbot
Copy link
Collaborator

rustbot commented Apr 15, 2025

r? @workingjubilee

rustbot has assigned @workingjubilee.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Apr 15, 2025
@dtolnay
Copy link
Member

dtolnay commented Apr 15, 2025

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Apr 15, 2025

📌 Commit 043c5ff has been approved by dtolnay

It is now in the queue for this repository.

@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 Apr 15, 2025
@dtolnay dtolnay assigned dtolnay and unassigned workingjubilee Apr 15, 2025
bors added a commit to rust-lang-ci/rust that referenced this pull request Apr 15, 2025
…iaskrgr

Rollup of 7 pull requests

Successful merges:

 - rust-lang#138455 (`librustdoc`: more `impl fmt::Display`)
 - rust-lang#139818 (Normalize ADT field in `find_tails_for_unsizing`)
 - rust-lang#139819 (Use `rust-cache` to speed-up `citool` compilation)
 - rust-lang#139824 (Remove safe remove)
 - rust-lang#139848 ( Reduce kw::Empty usage, part 5)
 - rust-lang#139859 (CI: rename MacOS runner)
 - rust-lang#139877 (Add warning comment to `Take::get_ref` and `Chain::get_ref`)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit ebaef46 into rust-lang:master Apr 15, 2025
6 checks passed
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Apr 15, 2025
Rollup merge of rust-lang#139877 - joshtriplett:take-care, r=dtolnay

Add warning comment to `Take::get_ref` and `Chain::get_ref`

The methods `Take::get_mut` and `Chain::get_mut` include comments
warning about modifying the I/O state of the underlying reader. However,
many readers (e.g. `File`) allow I/O using a shared reference (e.g.
`&File`). So, add the same caveat to the `get_ref` methods.
@rustbot rustbot added this to the 1.88.0 milestone Apr 15, 2025
@joshtriplett joshtriplett deleted the take-care branch April 20, 2025 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-libs Relevant to the library team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants