rust/library
bors 52ee2a2738 Auto merge of #95770 - nrc:read-buf-builder, r=joshtriplett
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 https://github.com/rust-lang/rust/issues/78485, https://github.com/rust-lang/rust/issues/94741
2022-06-10 03:55:16 +00:00
..
alloc Auto merge of #97868 - ssomers:btree_from_sorted_iter, r=the8472 2022-06-09 10:17:04 +00:00
backtrace@4e5a3f7292
core Auto merge of #91970 - nrc:provide-any, r=scottmcm 2022-06-10 01:10:59 +00:00
panic_abort Fully stabilize NLL 2022-06-03 17:16:41 -04:00
panic_unwind Fully stabilize NLL 2022-06-03 17:16:41 -04:00
portable-simd
proc_macro Auto merge of #95565 - jackh726:remove-borrowck-mode, r=nikomatsakis 2022-06-07 05:04:14 +00:00
profiler_builtins Fully stabilize NLL 2022-06-03 17:16:41 -04:00
rtstartup
rustc-std-workspace-alloc
rustc-std-workspace-core
rustc-std-workspace-std
std Auto merge of #95770 - nrc:read-buf-builder, r=joshtriplett 2022-06-10 03:55:16 +00:00
stdarch@28335054b1
test Fully stabilize NLL 2022-06-03 17:16:41 -04:00
unwind Fully stabilize NLL 2022-06-03 17:16:41 -04:00