Skip to content
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 and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows: Make stdin pipes synchronous #96441

Merged
merged 3 commits into from
Apr 29, 2022
Merged

Conversation

ChrisDenton
Copy link
Member

Stdin pipes do not need to be used asynchronously within the standard library. This is a first step in making pipes mostly synchronous.

r? @m-ou-se

Stdin pipes do not need to be used asynchronously within the standard library.
@ChrisDenton ChrisDenton added O-windows Operating system: Windows T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. labels Apr 26, 2022
@rust-highfive

This comment was marked as off-topic.

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 26, 2022
@m-ou-se
Copy link
Member

m-ou-se commented Apr 27, 2022

Very nice! r=me

@ChrisDenton ChrisDenton force-pushed the sync-pipes branch 2 times, most recently from 5170b98 to fa3bffb Compare April 27, 2022 12:53
@ChrisDenton
Copy link
Member Author

Comments updated with a fuller explanation and issue link.

@bors r=m-ou-se

@bors
Copy link
Contributor

bors commented Apr 27, 2022

📌 Commit 1e7c156 has been approved by m-ou-se

@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 Apr 27, 2022
@bors
Copy link
Contributor

bors commented Apr 29, 2022

⌛ Testing commit 1e7c156 with merge ddb7fbe...

@bors
Copy link
Contributor

bors commented Apr 29, 2022

☀️ Test successful - checks-actions
Approved by: m-ou-se
Pushing ddb7fbe to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Apr 29, 2022
@bors bors merged commit ddb7fbe into rust-lang:master Apr 29, 2022
@rustbot rustbot added this to the 1.62.0 milestone Apr 29, 2022
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (ddb7fbe): comparison url.

Summary: This benchmark run did not return any relevant results.

If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf.

@rustbot label: -perf-regression

@ChrisDenton ChrisDenton deleted the sync-pipes branch April 29, 2022 10:42
Dylan-DPC added a commit to Dylan-DPC/rust that referenced this pull request May 15, 2022
Fix use of SetHandleInformation on UWP

The use of `SetHandleInformation` (introduced in rust-lang#96441 to make `HANDLE` inheritable) breaks UWP builds because it is not available for UWP targets.

Proposed workaround: duplicate the `HANDLE` with `inherit = true` and immediately close the old one. Traditional Windows Desktop programs are not affected.

cc `@ChrisDenton`
Mark-Simulacrum added a commit to Mark-Simulacrum/rust that referenced this pull request May 17, 2022
…u-se"

This reverts commit ddb7fbe, reversing
changes made to baaa3b6.
@ChrisDenton ChrisDenton restored the sync-pipes branch May 18, 2022 09:49
JohnTitor added a commit to JohnTitor/rust that referenced this pull request May 18, 2022
…u-se

Revert "Auto merge of rust-lang#96441 - ChrisDenton:sync-pipes, r=m-ou-se"

This reverts commit ddb7fbe.

Partially addresses rust-lang#97124, but not marking as fixed as we're still pending on a beta backport (for 1.62, which is happening in rust-lang#97088).

r? `@m-ou-se` `@ChrisDenton`
JohnTitor added a commit to JohnTitor/rust that referenced this pull request May 18, 2022
…u-se

Revert "Auto merge of rust-lang#96441 - ChrisDenton:sync-pipes, r=m-ou-se"

This reverts commit ddb7fbe.

Partially addresses rust-lang#97124, but not marking as fixed as we're still pending on a beta backport (for 1.62, which is happening in rust-lang#97088).

r? ``@m-ou-se`` ``@ChrisDenton``
bors added a commit to rust-lang-ci/rust that referenced this pull request May 19, 2022
Rollup of 6 pull requests

Successful merges:

 - rust-lang#96866 (Switch CI bucket uploads to intelligent tiering)
 - rust-lang#97062 (Couple of refactorings to cg_ssa::base::codegen_crate)
 - rust-lang#97127 (Revert "Auto merge of rust-lang#96441 - ChrisDenton:sync-pipes, r=m-ou-se")
 - rust-lang#97131 (Improve println! documentation)
 - rust-lang#97139 (Move some settings DOM generation out of JS)
 - rust-lang#97152 (Update cargo)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. O-windows Operating system: Windows S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants