-
Couldn't load subscription status.
- Fork 13.9k
Rollup of 3 pull requests #97926
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
Rollup of 3 pull requests #97926
Conversation
This allows using `ReadBuf` in a builder-like style and to setup a `ReadBuf` and pass it to `read_buf` in a single expression, e.g., ``` // With this PR: reader.read_buf(ReadBuf::uninit(buf).assume_init(init_len))?; // Previously: let mut buf = ReadBuf::uninit(buf); buf.assume_init(init_len); reader.read_buf(&mut buf)?; ``` Signed-off-by: Nick Cameron <nrc@ncameron.org>
std::io: Modify some ReadBuf method signatures to return `&mut Self` This allows using `ReadBuf` in a builder-like style and to setup a `ReadBuf` and pass it to `read_buf` in a single expression, e.g., ``` // With this PR: reader.read_buf(ReadBuf::uninit(buf).assume_init(init_len))?; // Previously: let mut buf = ReadBuf::uninit(buf); buf.assume_init(init_len); reader.read_buf(&mut buf)?; ``` r? `@sfackler` cc rust-lang#78485, rust-lang#94741
…nTitor,yaahc update docs for `std::future::IntoFuture` Ref rust-lang#67644. This updates the docs for `IntoFuture` providing a bit more guidance on how to use it. Thanks!
…serve, r=the8472 Remove redundant calls to reserve in impl Write for VecDeque Removes the reserve calls made redundant by rust-lang#95904 (as discussed in rust-lang#95632 (comment))
|
@bors r+ rollup=never p=3 To the other folks who do roll-ups regularly (you know who you are), feel free to cancel this if there are more rollup candidates that build up over the next ~2 hrs it takes for this to get queued. |
|
📌 Commit 09d72f5 has been approved by |
|
⌛ Testing commit 09d72f5 with merge 452cca296c6e46baf139804eb453dbc30cdf31f6... |
|
💥 Test timed out |
Successful merges:
&mut Self#95770 (std::io: Modify some ReadBuf method signatures to return&mut Self)std::future::IntoFuture#97876 (update docs forstd::future::IntoFuture)Failed merges:
r? @ghost
@rustbot modify labels: rollup
Create a similar rollup