rust/library/std/src/sys/unsupported
bors 559421e8e3 Auto merge of #114590 - ijackson:stdio-stdio-2, r=dtolnay
Allow redirecting subprocess stdout to our stderr etc. (redux)

This is the code from #88561, tidied up, including review suggestions, and with the for-testing-only CI commit removed.  FCP for the API completed in #88561.

I have made a new MR to facilitate review.  The discussion there is very cluttered and the branch is full of changes (in many cases as a result of changes to other Rust stdlib APIs since then).  Assuming this MR is approvedl we should close that one.

### Reviewer doing a de novo review

Just code review these four commits..  FCP discussion starts here: https://github.com/rust-lang/rust/pull/88561#issuecomment-1640527595

Portability tests: you can see that this branch works on Windows too by looking at the CI results in #88561, which has the same code changes as this branch but with an additional "DO NOT MERGE" commit to make the Windows tests run.

### Reviewer doing an incremental review from some version of #88561

Review the new commits since your last review.  I haven't force pushed the branch there.

git diff the two branches (eg `git diff 176886197d6..0842b69c219`).  You'll see that the only difference is in gitlab CI files.  You can also see that *this* MR doesn't touch those files.
2023-09-09 19:56:51 +00:00
..
locks std: remove lock wrappers in sys_common 2022-11-06 15:32:59 +01:00
alloc.rs cleanup code w/ pointers in std a little 2022-08-05 16:47:49 +04:00
args.rs Fix missing import in unsupported::args 2021-04-28 16:16:01 +02:00
common.rs Add a new helper to avoid calling io::Error::kind 2023-08-25 21:26:06 -04:00
env.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
fs.rs Address reviewer comments 2022-08-18 10:34:40 +01:00
io.rs More mem::take in library 2023-04-20 19:54:46 -07:00
mod.rs std: replace generic thread parker with explicit no-op parker 2023-02-16 15:06:45 +01:00
net.rs Implement read_buf for a few more types 2023-03-06 12:24:15 +01:00
once.rs std: optimize LazyLock size 2023-01-26 16:16:03 +01:00
os.rs Better Debug for Vars and VarsOs 2023-08-07 12:18:27 -04:00
pipe.rs Implement read_buf for a few more types 2023-03-06 12:24:15 +01:00
process.rs Auto merge of #114590 - ijackson:stdio-stdio-2, r=dtolnay 2023-09-09 19:56:51 +00:00
stdio.rs Make raw standard stream constructors const 2020-08-21 13:17:20 +02:00
thread.rs Rename std:🧵:available_onccurrency to std:🧵:available_parallelism 2021-09-28 14:59:33 +02:00
thread_local_dtor.rs sync thread_local key conditions exactly with what the macro uses 2022-10-13 14:09:08 +02:00
thread_local_key.rs std: optimize TLS on Windows 2022-10-08 20:19:21 +02:00
thread_parking.rs std: replace generic thread parker with explicit no-op parker 2023-02-16 15:06:45 +01:00
time.rs make Instant::{duration_since, elapsed, sub} saturating and remove workarounds 2022-02-13 01:04:55 +01:00