mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 13:05:18 +03:00
ac656cbf21
Move `std::io::util` to `core::io` ACP: https://github.com/rust-lang/libs-team/issues/755 Tracking issue: https://github.com/rust-lang/rust/issues/154046 Subset of: https://github.com/rust-lang/rust/pull/154684 ## Description Moves utility types and functions from `std::io::util` and `std::io` to `core::io`, leaving any IO trait implementations behind. They will be moved along with the traits themselves. Certain documentation links had to be amended. - `Chain` - `Empty` - `Repeat` - `Sink` - `Take` - `empty` - `repeat` - `sink` --- ## Notes * This can be reviewed independently of the other PRs tracked in rust-lang/rust#154046. * `Chain` and `Take` were previously in the main `mod.rs` file for `std::io`, but I've chosen to move them into the `util.rs` file in `core::io` instead. I think they make more sense in that file, but I'm happy to move them into `mod.rs` if that's a controversial decision. * No AI tooling of any kind was used during the creation of this PR.