Skip to content

Move std::io::read_to_string to alloc::io#158545

Open
bushrat011899 wants to merge 12 commits into
rust-lang:mainfrom
bushrat011899:alloc_io_read_to_string
Open

Move std::io::read_to_string to alloc::io#158545
bushrat011899 wants to merge 12 commits into
rust-lang:mainfrom
bushrat011899:alloc_io_read_to_string

Conversation

@bushrat011899

Copy link
Copy Markdown
Contributor

ACP: rust-lang/libs-team#755
Tracking issue: #154046
Split From: #156527
Blocked On: #158544

Description

Moves std::io::read_to_string to alloc::io. This is a trivial move. Blocked on #158544.


Notes

@rustbot

rustbot commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

r? @jhpratt

rustbot has assigned @jhpratt.
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: @ChrisDenton, libs
  • @ChrisDenton, libs expanded to 13 candidates
  • Random selection from 6 candidates

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. T-rustdoc-frontend Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output. labels Jun 29, 2026
@bushrat011899

Copy link
Copy Markdown
Contributor Author

@rustbot blocked

@rustbot rustbot added S-blocked Status: Blocked on something else such as an RFC or other implementation work. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jun 29, 2026
@rust-bors

This comment has been minimized.

@bushrat011899 bushrat011899 force-pushed the alloc_io_read_to_string branch from 63e0a84 to 553848d Compare July 2, 2026 01:58
@rustbot

This comment has been minimized.

@rustbot

This comment has been minimized.

@bushrat011899 bushrat011899 force-pushed the alloc_io_read_to_string branch 2 times, most recently from e9c0d4c to 7c579fc Compare July 3, 2026 03:46
@rustbot

This comment has been minimized.

@rust-bors

This comment has been minimized.

@bushrat011899 bushrat011899 force-pushed the alloc_io_read_to_string branch from 7c579fc to 81c200e Compare July 6, 2026 09:32
@rustbot

This comment has been minimized.

@rust-bors

This comment has been minimized.

@bushrat011899 bushrat011899 force-pushed the alloc_io_read_to_string branch from 81c200e to 9764316 Compare July 6, 2026 21:53
@rustbot

This comment has been minimized.

@rust-bors

This comment has been minimized.

@bushrat011899 bushrat011899 force-pushed the alloc_io_read_to_string branch from 9764316 to 5fd480e Compare July 6, 2026 22:22
@rustbot

This comment has been minimized.

bushrat011899 and others added 10 commits July 7, 2026 14:50
Co-Authored-By: Clar Fon <15850505+clarfonthey@users.noreply.github.com>
Co-Authored-By: Clar Fon <15850505+clarfonthey@users.noreply.github.com>
Moves unsafe code from `alloc::io` into `alloc::vec`. A more general `try_extend_from_slice` may be useful in the future, but that requires changing how specialization is done for `SpecExtend` and that's a lot for an internal-only function.
@bushrat011899 bushrat011899 force-pushed the alloc_io_read_to_string branch from 5fd480e to 45a5755 Compare July 7, 2026 05:29
@rustbot

rustbot commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

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

Labels

S-blocked Status: Blocked on something else such as an RFC or other implementation work. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. T-rustdoc-frontend Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants