Files
rust/library/alloc/src
Jonathan Brouwer a1eaf4e5a3 Rollup merge of #106643 - WaffleLapkin:read_recursive, r=joshtriplett
Allow only implementing `Read::read_buf`

This PR allows users to only implement `Read::read_buf`, without the need for implementing `Read::read`. `rustc_must_implement_one_of` annotation ensures that **at least** one of the methods is implemented, so that the default impls don't create infinite recursion.

Note that `Read::read_buf` is unstable, so this doesn't change anything on stable, there you still need to implement `Read::read`, since you can't implement `Read::read_buf`. Thus, we don't expose `rustc_must_implement_one_of` to stable.

r? @thomcc
2026-08-02 16:19:29 +02:00
..
2026-07-26 14:52:45 +02:00
…
…
2026-07-05 17:33:52 +02:00
2026-06-11 09:46:23 +08:00