-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
r? @m-ou-se (rustbot has picked a reviewer for you, use r? to override) |
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
This comment has been minimized.
This comment has been minimized.
saethlin
force-pushed
the
is-interrupted
branch
from
September 3, 2023 00:24
882a5af
to
b6a77ea
Compare
This comment has been minimized.
This comment has been minimized.
saethlin
force-pushed
the
is-interrupted
branch
from
September 3, 2023 03:51
b6a77ea
to
af1a39f
Compare
mkroening
approved these changes
Sep 3, 2023
There was a problem hiding this 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
changed the title
Use ErrorKind::is_interrupted everywhere
Use std::io::Error::is_interrupted everywhere
Sep 3, 2023
saethlin
force-pushed
the
is-interrupted
branch
from
September 3, 2023 13:21
af1a39f
to
642251b
Compare
@bors r+ |
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
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 optimizingError::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.