Skip to content

Move std::io::util to core::io#156431

Open
bushrat011899 wants to merge 1 commit intorust-lang:mainfrom
bushrat011899:core_io_util
Open

Move std::io::util to core::io#156431
bushrat011899 wants to merge 1 commit intorust-lang:mainfrom
bushrat011899:core_io_util

Conversation

@bushrat011899
Copy link
Copy Markdown
Contributor

View all comments

ACP: rust-lang/libs-team#755
Tracking issue: #154046
Subset of: #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 Tracking Issue for alloc::io and core::io #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.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 11, 2026
@rustbot rustbot added the T-libs Relevant to the library team, which will review and decide on the PR/issue. label May 11, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented May 11, 2026

r? @nia-e

rustbot has assigned @nia-e.
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

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: @scottmcm, libs
  • @scottmcm, libs expanded to 8 candidates
  • Random selection from Mark-Simulacrum, nia-e, scottmcm

@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants