about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2021-02-27 02:34:27 +0100
committerGitHub <noreply@github.com>2021-02-27 02:34:27 +0100
commitf5b68a4444a96f8a2915dfa8b7fc9b641f56bdf2 (patch)
tree69e776f6f0bccd70103155bd699250f765bf6d2f /compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp
parent76b40d27e2946fe6118ec9d9a6f4a49aa1945800 (diff)
parent7d5242a03a9e30fe880ff1af83a3ad7df5e62159 (diff)
downloadrust-f5b68a4444a96f8a2915dfa8b7fc9b641f56bdf2.tar.gz
rust-f5b68a4444a96f8a2915dfa8b7fc9b641f56bdf2.zip
Rollup merge of #82420 - sunfishcode:wasi-docs, r=alexcrichton
Enable API documentation for `std::os::wasi`.

This adds API documentation support for `std::os::wasi` modeled after
how `std::os::unix` works, so that WASI can be documented [here] along
with the other platforms.

[here]: https://doc.rust-lang.org/stable/std/os/index.html

Two changes of particular interest:

 - This changes the `AsRawFd` for `io::Stdin` for WASI to return
   `libc::STDIN_FILENO` instead of `sys::stdio::Stdin.as_raw_fd()` (and
   similar for `Stdout` and `Stderr`), which matches how the `unix`
   version works. `STDIN_FILENO` etc. may not always be explicitly
   reserved at the WASI level, but as long as we have Rust's `std` and
   `libc`, I think it's reasonable to guarantee that we'll always use
   `libc::STDIN_FILENO` for stdin.

 - This duplicates the `osstr2str` utility function, rather than
   trying to share it across all the configurations that need it.

r? ```@alexcrichton```
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp')
0 files changed, 0 insertions, 0 deletions