Move std::io::Read to alloc::io#158544
Conversation
|
rustbot has assigned @Mark-Simulacrum. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
@rustbot blocked |
This comment has been minimized.
This comment has been minimized.
88d631d to
648506e
Compare
This comment has been minimized.
This comment has been minimized.
648506e to
b664186
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
b664186 to
6edd1ed
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
6edd1ed to
5d7f1a0
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
5d7f1a0 to
b3c4345
Compare
This comment has been minimized.
This comment has been minimized.
b3c4345 to
2869084
Compare
This comment has been minimized.
This comment has been minimized.
|
r? clarfonthey since this is the next one in the sequence and Mark seemed fine with me doing this. |
2869084 to
22f5ffc
Compare
This comment has been minimized.
This comment has been minimized.
22f5ffc to
032721c
Compare
|
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. |
|
@rustbot ready |
|
@rustbot label -T-compiler -T-rustdoc |
|
|
||
| /// For the specialization of `Bytes::next`. | ||
| #[doc(hidden)] | ||
| #[unstable(feature = "core_io_internals", reason = "exposed only for libstd", issue = "none")] |
There was a problem hiding this comment.
Doesn't actually matter, but I guess this should be alloc_io_internals since Read can't be moved to core yet.
There was a problem hiding this comment.
Yeah I think I'll leave this one as-is if that's ok? Just makes things a tiny bit cleaner, even if the label isn't completely accurate.
Co-Authored-By: Clar Fon <15850505+clarfonthey@users.noreply.github.com>
Co-Authored-By: Clar Fon <15850505+clarfonthey@users.noreply.github.com>
View all comments
ACP: rust-lang/libs-team#755
Tracking issue: #154046
Split From: #156527
Blocked On: #158541Description
Moves
std::io::Readtoalloc::io. This is mostly a direct cut and paste, but with a large diff due to how many implementations need to be moved intoalloc. Blocked on #158541.There is some new code written for some of the
Readimplementations to account for theno_global_oom_handlingconfiguration, sinceVec::extend_from_sliceandString::push_strare unavailable. I've highlighted all of these such instances with review comments for clarity.Notes
alloc::ioandcore::io#154046 (comment) for a review order and broader context for this PR.