mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
821e0fe0a2
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.