rust/library/std/src/sys
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
..
common add a csky-unknown-linux-gnuabiv2 target 2023-08-14 23:02:36 +08:00
hermit Rollup merge of #114132 - tamird:better-env-debug-impls, r=Amanieu 2023-08-12 12:06:35 +02:00
itron Add a new helper to avoid calling io::Error::kind 2023-08-25 21:26:06 -04:00
personality add a csky-unknown-linux-gnuabiv2 target 2023-08-14 23:02:36 +08:00
sgx Add a new helper to avoid calling io::Error::kind 2023-08-25 21:26:06 -04:00
solid Auto merge of #115228 - saethlin:is-interrupted, r=thomcc 2023-08-26 02:19:08 +00:00
unix Add a new helper to avoid calling io::Error::kind 2023-08-25 21:26:06 -04:00
unsupported Add a new helper to avoid calling io::Error::kind 2023-08-25 21:26:06 -04:00
wasi Add a new helper to avoid calling io::Error::kind 2023-08-25 21:26:06 -04:00
wasm std: replace generic thread parker with explicit no-op parker 2023-02-16 15:06:45 +01:00
windows Add a new helper to avoid calling io::Error::kind 2023-08-25 21:26:06 -04:00
mod.rs Auto merge of #108796 - devsnek:personality-pal-exception, r=workingjubilee 2023-07-10 05:19:37 +00:00