Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use std::io::Error::is_interrupted everywhere #115489

Merged
merged 1 commit into from
Sep 3, 2023

Conversation

saethlin
Copy link
Member

@saethlin saethlin commented Sep 3, 2023

In #115228 I introduced this helper and started using it, this PR uses it to replace all applicable uses of std::io::Error::kind. The justification is the same; for whatever reason LLVM totally flops optimizing Error::kind so it's nice to use it less.

FYI @mkroening I swear the hermit changes look good, but I was so sure about the previous PR.

@rustbot
Copy link
Collaborator

rustbot commented Sep 3, 2023

r? @m-ou-se

(rustbot has picked a reviewer for you, use r? to override)

@rustbot rustbot added O-hermit Operating System: Hermit O-unix Operating system: Unix-like O-wasi Operating system: Wasi, Webassembly System Interface S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Sep 3, 2023
@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

Copy link
Contributor

@mkroening mkroening left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, the Hermit changes work. :)

@saethlin saethlin changed the title Use ErrorKind::is_interrupted everywhere Use std::io::Error::is_interrupted everywhere Sep 3, 2023
@thomcc
Copy link
Member

thomcc commented Sep 3, 2023

@bors r+

@bors
Copy link
Contributor

bors commented Sep 3, 2023

📌 Commit 642251b has been approved by thomcc

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Sep 3, 2023
bors added a commit to rust-lang-ci/rust that referenced this pull request Sep 3, 2023
…iaskrgr

Rollup of 5 pull requests

Successful merges:

 - rust-lang#115279 (RangeFull: Remove parens around .. in documentation snippet)
 - rust-lang#115318 (Reference uplifted clippy lints' rustc name in the release notes)
 - rust-lang#115445 (remove some unused crate deps)
 - rust-lang#115489 (Use std::io::Error::is_interrupted everywhere)
 - rust-lang#115512 (Command::spawn: Fix STARTUPINFOW.cb being initialized with the address of size_of)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 33e2e71 into rust-lang:master Sep 3, 2023
11 checks passed
@rustbot rustbot added this to the 1.74.0 milestone Sep 3, 2023
@saethlin saethlin deleted the is-interrupted branch November 9, 2023 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-hermit Operating System: Hermit O-unix Operating system: Unix-like O-wasi Operating system: Wasi, Webassembly System Interface S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-libs Relevant to the library team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants