mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-18 16:48:46 +00:00
std: deduplicate `errno` accesses By marking `__errno_location` as `#[ffi_const]` and `std::sys::os::errno` as `#[inline]`, this PR allows merging multiple calls to `io::Error::last_os_error()` into one.