std: merge definitions of StdioPipes by joboet · Pull Request #146639 · rust-lang/rust (original) (raw)

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation5 Commits1 Checks10 Files changed

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

@joboet

All platforms define this structure the same way, so we can just put it in the process module directly.

@rustbot rustbot added 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.

labels

Sep 16, 2025

@rustbot

r? @Mark-Simulacrum

rustbot has assigned @Mark-Simulacrum.
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

hkBst

@Mark-Simulacrum

@joboet

All platforms define this structure the same way, so we can just put it in the process module directly.

@rustbot

This PR was rebased onto a different master 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.

@Mark-Simulacrum

@bors

📌 Commit 87a00f6 has been approved by Mark-Simulacrum

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors

Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

and removed S-waiting-on-review

Status: Awaiting review from the assignee but also interested parties.

labels

Sep 21, 2025

matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request

Sep 21, 2025

@matthiaskrgr

…imulacrum

std: merge definitions of StdioPipes

All platforms define this structure the same way, so we can just put it in the process module directly.

This was referenced

Sep 21, 2025

bors added a commit that referenced this pull request

Sep 21, 2025

@bors

Rollup of 4 pull requests

Successful merges:

r? @ghost @rustbot modify labels: rollup

rust-timer added a commit that referenced this pull request

Sep 21, 2025

@rust-timer

Rollup merge of #146639 - joboet:shared-stdiopipes, r=Mark-Simulacrum

std: merge definitions of StdioPipes

All platforms define this structure the same way, so we can just put it in the process module directly.

Muscraft pushed a commit to Muscraft/rust that referenced this pull request

Sep 24, 2025

@matthiaskrgr @Muscraft

…imulacrum

std: merge definitions of StdioPipes

All platforms define this structure the same way, so we can just put it in the process module directly.

Muscraft pushed a commit to Muscraft/rust that referenced this pull request

Sep 24, 2025

@bors @Muscraft

…iaskrgr

Rollup of 4 pull requests

Successful merges:

r? @ghost @rustbot modify labels: rollup

github-actions bot pushed a commit to model-checking/verify-rust-std that referenced this pull request

Oct 9, 2025

@matthiaskrgr

…imulacrum

std: merge definitions of StdioPipes

All platforms define this structure the same way, so we can just put it in the process module directly.

matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request

Dec 14, 2025

@matthiaskrgr

…ulacrum

std: reorganize pipe implementations

Currently, there are two distinct types called AnonPipe in std:

On Windows, these actually have different semantics, as one of the handles returned by the sys::pal::pipe version is opened for asynchronous operation in order to support read2, whereas the sys::anonymous_pipe version does not do so. Thus the naming is extremely confusing.

To fix this, this PR renames the sys::anonymous_pipe version of AnonPipe to simply Pipe, whereas the sys::pal::pipe version is now called ChildPipe. Additionally,

And lastly, the read2 function (originally in sys::pal::pipe) is now called read_output and defined by sys::process, as (at least on Windows) it is only usable with ChildPipe.

Includes rust-lang#146639 for convenience.

matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request

Dec 14, 2025

@matthiaskrgr

…ulacrum

std: reorganize pipe implementations

Currently, there are two distinct types called AnonPipe in std:

On Windows, these actually have different semantics, as one of the handles returned by the sys::pal::pipe version is opened for asynchronous operation in order to support read2, whereas the sys::anonymous_pipe version does not do so. Thus the naming is extremely confusing.

To fix this, this PR renames the sys::anonymous_pipe version of AnonPipe to simply Pipe, whereas the sys::pal::pipe version is now called ChildPipe. Additionally,

And lastly, the read2 function (originally in sys::pal::pipe) is now called read_output and defined by sys::process, as (at least on Windows) it is only usable with ChildPipe.

Includes rust-lang#146639 for convenience.

matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request

Dec 14, 2025

@matthiaskrgr

…ulacrum

std: reorganize pipe implementations

Currently, there are two distinct types called AnonPipe in std:

On Windows, these actually have different semantics, as one of the handles returned by the sys::pal::pipe version is opened for asynchronous operation in order to support read2, whereas the sys::anonymous_pipe version does not do so. Thus the naming is extremely confusing.

To fix this, this PR renames the sys::anonymous_pipe version of AnonPipe to simply Pipe, whereas the sys::pal::pipe version is now called ChildPipe. Additionally,

And lastly, the read2 function (originally in sys::pal::pipe) is now called read_output and defined by sys::process, as (at least on Windows) it is only usable with ChildPipe.

Includes rust-lang#146639 for convenience.

rust-timer added a commit that referenced this pull request

Dec 15, 2025

@rust-timer

Rollup merge of #146794 - joboet:reorganize-pipe, r=Mark-Simulacrum

std: reorganize pipe implementations

Currently, there are two distinct types called AnonPipe in std:

On Windows, these actually have different semantics, as one of the handles returned by the sys::pal::pipe version is opened for asynchronous operation in order to support read2, whereas the sys::anonymous_pipe version does not do so. Thus the naming is extremely confusing.

To fix this, this PR renames the sys::anonymous_pipe version of AnonPipe to simply Pipe, whereas the sys::pal::pipe version is now called ChildPipe. Additionally,

And lastly, the read2 function (originally in sys::pal::pipe) is now called read_output and defined by sys::process, as (at least on Windows) it is only usable with ChildPipe.

Includes #146639 for convenience.

Labels

S-waiting-on-bors

Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

T-libs

Relevant to the library team, which will review and decide on the PR/issue.