about summary refs log tree commit diff
path: root/library/std/src/sys/unix/stdio.rs
diff options
context:
space:
mode:
authorDan Gohman <dev@sunfishcode.online>2022-04-19 17:16:24 -0700
committerDan Gohman <dev@sunfishcode.online>2022-04-19 17:22:54 -0700
commit0a1ce8277c0a8d7eed7a7d0a62ce0adcba342572 (patch)
treeadeb64b7f60d27767b2605d17c69f2022d575a2d /library/std/src/sys/unix/stdio.rs
parentd5ae66c12c6bdf1a5739ae1fce8057fd76ba0f47 (diff)
downloadrust-0a1ce8277c0a8d7eed7a7d0a62ce0adcba342572.tar.gz
rust-0a1ce8277c0a8d7eed7a7d0a62ce0adcba342572.zip
Make `BorrowedFd::borrow_raw` a const fn.
Making `BorrowedFd::borrow_raw` a const fn allows it to be used to
create a constant `BorrowedFd<'static>` holding constants such as
`AT_FDCWD`. This will allow [`rustix::fs::cwd`] to become a const fn.

For consistency, make similar changes to `BorrowedHandle::borrow_raw`
and `BorrowedSocket::borrow_raw`.

[`rustix::fs::cwd`]: https://docs.rs/rustix/latest/rustix/fs/fn.cwd.html
Diffstat (limited to 'library/std/src/sys/unix/stdio.rs')
0 files changed, 0 insertions, 0 deletions