about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-06-23 03:16:19 +0200
committerGitHub <noreply@github.com>2020-06-23 03:16:19 +0200
commit5426586cc36d7414f7aa59b9ece149e128d29d9e (patch)
tree8fd85d4c451b0a15edfd21f2d75320aedb7c7a50 /src/libstd/sys/unix/stack_overflow.rs
parent6276c135d185e8492e8a2b9db5ca04e51c3293fa (diff)
parent0094f44a0b54d6ac92f3feaa939d6a3d48cb7475 (diff)
downloadrust-5426586cc36d7414f7aa59b9ece149e128d29d9e.tar.gz
rust-5426586cc36d7414f7aa59b9ece149e128d29d9e.zip
Rollup merge of #73495 - Lucretiel:wasi-io-impls, r=sfackler
Converted all platform-specific stdin/stdout/stderr implementations to use io:: traits

Currently, some of the platform-specific standard streams (`src/libstd/sys/*/stdio.rs`) manually implement parts of the `io::Write` interface directly as methods on the struct, rather than by actually implementing the trait. There doesn't seem to be any reason for this, other than an unused advantage of `fn write(&self, ...)` instead of `fn write(&mut self, ...)`.

Unfortunately, this means that those implementations don't have the default-implemented io methods, like `read_exact` and `write_all`. This caused #72705, which adds forwarding methods to the user-facing standard stream implementations, to fail to compile on those platforms.

This change converts *all* such standard stream structs to use the standard library traits. This change should not cause any breakages, because the changed types are not publicly exported, and in fact are only ever used in `src/libstd/io/stdio.rs`.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions