-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Stdio::makes_pipe
#97150
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Stdio::makes_pipe
#97150
Conversation
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
r? @kennytm (rust-highfive has picked a reviewer for you, use r? to override) |
r? rust-lang/libs-api |
Shouldn't it be |
a80970c
to
47b1209
Compare
Good point, changed! |
Looks good to me, other than some potential bikeshedding on the name. ( r=me after opening a tracking issue. |
47b1209
to
8b93147
Compare
@bors r=m-ou-se rollup |
📌 Commit 8b93147 has been approved by |
Rollup of 8 pull requests Successful merges: - rust-lang#93080 (Implement `core::slice::IterMut::as_mut_slice` and `impl<T> AsMut<[T]> for IterMut<'_, T>`) - rust-lang#94855 (Panic when advance_slices()'ing too far and update docs.) - rust-lang#96609 (Add `{Arc, Rc}::downcast_unchecked`) - rust-lang#96719 (Fix the generator example for `pin!()`) - rust-lang#97149 (Windows: `CommandExt::async_pipes`) - rust-lang#97150 (`Stdio::makes_pipe`) - rust-lang#97837 (Document Rust's stance on `/proc/self/mem`) - rust-lang#98159 (Include ForeignItem when visiting types for WF check) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Wrappers around
std::process::Command
may want to be able to override pipe creation. However,std::process::Stdio
is opaque so there's no way to tell ifCommand
was told to create new pipes or not.This is in some ways a more generic (and cross-platform) alternative to #97149. However, unlike that feature, this comes with the price of the user needing to actually create their own pipes rather than reusing the std one. So I think it stands (or not) on its own.
Example