Uh oh!
There was an error while loading. Please reload this page.
Move std::io::Read to alloc::io - #158544
Conversation
rustbot
commented
Jun 29, 2026
rustbot has assigned @Mark-Simulacrum. Use Why was this reviewer chosen?The reviewer was selected based on:
|
bushrat011899
commented
Jun 29, 2026
@rustbot blocked |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
JonathanBrouwer
commented
Jul 14, 2026
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
Move `std::io::Read` to `alloc::io`
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
rust-timer
commented
Jul 14, 2026
Finished benchmarking commit (234ef2c): comparison URL. Overall result: ❌ regressions - no action neededBenchmarking means the PR may be perf-sensitive. Consider adding rollup=never if this change is not fit for rolling up. @rustbot label: -S-waiting-on-perf -perf-regression Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary 1.0%, secondary -4.8%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (secondary -1.2%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis perf run didn't have relevant results for this metric. Bootstrap: 491.202s -> 490.122s (-0.22%) |
JonathanBrouwer
commented
Jul 14, 2026
(The regressions are noise) |
bushrat011899
commented
Jul 14, 2026
I'm surprised this had no real regressions. Pleasantly surprised, but still. I'll draft up a PR adding |
clarfonthey
commented
Jul 15, 2026
Yeah, my best guess is that the regressions might be hiding in the code in |
clarfonthey
commented
Jul 17, 2026
@rustbot review Since the perf wasn't just a few inline attributes, we're going to just go ahead and we can figure it out later if necessary. |
clarfonthey
commented
Jul 17, 2026
@bors r+ rollup=iffy Since this modifies a nontrivial amount of |
…uwer Rollup of 5 pull requests Successful merges: - #158544 (Move `std::io::Read` to `alloc::io`) - #158668 (`DeeplyNormalize` and `normalize_with_depth_to` take `Unnormalized<T>` as input) - #157514 ([tiny] Use multipart suggestion for finding ident when literal was expected in attr) - #158748 (improve diagnostic suggestion when matching struct variants with tuple) - #159463 (triagebot: tweak wording for miri changes message) Failed merges: - #158916 (Emit all borrowck errors at the end of borrowck)
Uh oh!
There was an error while loading. Please reload this page.
Rollup merge of #158544 - bushrat011899:core_io_read, r=clarfonthey Move `std::io::Read` to `alloc::io` ACP: rust-lang/libs-team#755 Tracking issue: #154046 Split From: #156527 ~~Blocked On: #158541 ## Description Moves `std::io::Read` to `alloc::io`. This is mostly a direct cut and paste, but with a large diff due to how many implementations need to be moved into `alloc`. Blocked on #158541. There is some new code written for some of the `Read` implementations to account for the `no_global_oom_handling` configuration, since `Vec::extend_from_slice` and `String::push_str` are unavailable. I've highlighted all of these such instances with review comments for clarity. --- ## Notes * No AI tooling of any kind was used during the creation of this PR. * Please see #154046 (comment) for a review order and broader context for this PR.
…ing, r=clarfonthey Move `std::io::read_to_string` to `alloc::io` ACP: rust-lang/libs-team#755 Tracking issue: rust-lang#154046 Split From: rust-lang#156527 ~~Blocked On: rust-lang#158544 ## Description Moves `std::io::read_to_string` to `alloc::io`. This is a trivial move. Blocked on rust-lang#158544. --- ## Notes * No AI tooling of any kind was used during the creation of this PR. * Please see rust-lang#154046 (comment) for a review order and broader context for this PR.
…ing, r=clarfonthey Move `std::io::read_to_string` to `alloc::io` ACP: rust-lang/libs-team#755 Tracking issue: rust-lang#154046 Split From: rust-lang#156527 ~~Blocked On: rust-lang#158544 ## Description Moves `std::io::read_to_string` to `alloc::io`. This is a trivial move. Blocked on rust-lang#158544. --- ## Notes * No AI tooling of any kind was used during the creation of this PR. * Please see rust-lang#154046 (comment) for a review order and broader context for this PR.
…ing, r=clarfonthey Move `std::io::read_to_string` to `alloc::io` ACP: rust-lang/libs-team#755 Tracking issue: rust-lang#154046 Split From: rust-lang#156527 ~~Blocked On: rust-lang#158544 ## Description Moves `std::io::read_to_string` to `alloc::io`. This is a trivial move. Blocked on rust-lang#158544. --- ## Notes * No AI tooling of any kind was used during the creation of this PR. * Please see rust-lang#154046 (comment) for a review order and broader context for this PR.
…arfonthey Move `std::io::read_to_string` to `alloc::io` ACP: rust-lang/libs-team#755 Tracking issue: rust-lang/rust#154046 Split From: rust-lang/rust#156527 ~~Blocked On: rust-lang/rust#158544 ## Description Moves `std::io::read_to_string` to `alloc::io`. This is a trivial move. Blocked on rust-lang/rust#158544. --- ## Notes * No AI tooling of any kind was used during the creation of this PR. * Please see rust-lang/rust#154046 (comment) for a review order and broader context for this PR.
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.