Files
rust/library/std/src/sys/solid
bors 9334ec9354 Auto merge of #115228 - saethlin:is-interrupted, r=thomcc
Add a new helper to avoid calling io::Error::kind

On `cfg(unix)`, `Error::kind` emits an enormous jump table that LLVM seems unable to optimize out. I don't really understand why, but see for yourself: https://godbolt.org/z/17hY496KG

This change lets us check for `ErrorKind::Interrupted` without going through a big match. I've checked the codegen locally, and it has the desired effect on the codegen for `BufReader::read_exact`.
2023-08-26 02:19:08 +00:00
..
2021-09-28 11:31:47 +09:00
2021-09-28 11:31:47 +09:00
2021-09-28 11:31:47 +09:00
2022-02-08 14:57:35 +00:00
2021-09-28 11:31:47 +09:00