about summary refs log tree commit diff
path: root/tests/run-coverage/closure_macro_async.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-08-26 02:19:08 +0000
committerbors <bors@rust-lang.org>2023-08-26 02:19:08 +0000
commit9334ec93541fd6963a3bfa2d2d09e3e33ac93131 (patch)
tree25ea50c55ad15b1f52b2ba178785ab3cefd8e7a5 /tests/run-coverage/closure_macro_async.rs
parentc5035271acc7e140893c1dcdb5a83bf4ddf04593 (diff)
parent1abaf40ec818dfc0a0ad50e6e772cce60acc8477 (diff)
downloadrust-9334ec93541fd6963a3bfa2d2d09e3e33ac93131.tar.gz
rust-9334ec93541fd6963a3bfa2d2d09e3e33ac93131.zip
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`.
Diffstat (limited to 'tests/run-coverage/closure_macro_async.rs')
0 files changed, 0 insertions, 0 deletions