Uh oh!
There was an error while loading. Please reload this page.
Define a dedicated error type for HandleOrNull and HandleOrInvalid. - #95387
Define a dedicated error type for HandleOrNull and HandleOrInvalid.#95387sunfishcode wants to merge 6 commits into
HandleOrNull and HandleOrInvalid.#95387Conversation
This comment has been minimized.
This comment has been minimized.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Introduce the `InvalidHandleError` and `NullHandleError` error types, corresponding to rust-lang/rust#95387.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
joshtriplett
commented
Apr 13, 2022
@bors r+ |
bors
commented
Apr 13, 2022
📌 Commit 733ef08 has been approved by |
…rror-type, r=joshtriplett Define a dedicated error type for `HandleOrNull` and `HandleOrInvalid`. Define a `NotHandle` type, that implements `std::error::Error`, and use it as the error type in `HandleOrNull` and `HandleOrInvalid`. This addresses [this concern](rust-lang#87074 (comment)). r? `@joshtriplett`
…rror-type, r=joshtriplett Define a dedicated error type for `HandleOrNull` and `HandleOrInvalid`. Define a `NotHandle` type, that implements `std::error::Error`, and use it as the error type in `HandleOrNull` and `HandleOrInvalid`. This addresses [this concern](rust-lang#87074 (comment)). r? ``@joshtriplett``
…rror-type, r=joshtriplett Define a dedicated error type for `HandleOrNull` and `HandleOrInvalid`. Define a `NotHandle` type, that implements `std::error::Error`, and use it as the error type in `HandleOrNull` and `HandleOrInvalid`. This addresses [this concern](rust-lang#87074 (comment)). r? ```@joshtriplett```
Define a `NotHandle` type, that implements `std::error::Error`, and use it as the error type in `HandleOrNull` and `HandleOrInvalid`.
Also, make the display messages more specific, and remove the `Copy` implementation.
This test's expected stderr now includes a count of the number of types that implment `Error`. This PR introduces two new types, so increment the number by two.
733ef08 to
e886145Comparerust-log-analyzer
commented
Apr 15, 2022
The job Click to see the possible cause of the failure (guessed by this bot) |
The rollup PR failed because of the diff - and 43 others+ and 45 othersI added a commit to fix this, but now this PR is failing with the diff - and 45 others+ and 43 othersFor now, I'll close this PR and wait until whatever other PR it's racing against settles in, and then re-open it. |
sunfishcode
commented
Apr 19, 2022
After rebasing this, github doesn't apparently allow me to reopen this PR, so I created a new one: #96195. |
…rror-type, r=joshtriplett Define a dedicated error type for `HandleOrNull` and `HandleOrInvalid`. Define `NullHandleError` and `InvalidHandleError` types, that implement std::error::Error, and use them as the error types in `HandleOrNull` and `HandleOrInvalid`, This addresses [this concern](rust-lang#87074 (comment)). This is the same as rust-lang#95387. r? `@joshtriplett`
…rror-type, r=joshtriplett Define a dedicated error type for `HandleOrNull` and `HandleOrInvalid`. Define `NullHandleError` and `InvalidHandleError` types, that implement std::error::Error, and use them as the error types in `HandleOrNull` and `HandleOrInvalid`, This addresses [this concern](rust-lang#87074 (comment)). This is the same as rust-lang#95387. r? ``@joshtriplett``
…rror-type, r=joshtriplett Define a dedicated error type for `HandleOrNull` and `HandleOrInvalid`. Define `NullHandleError` and `InvalidHandleError` types, that implement std::error::Error, and use them as the error types in `HandleOrNull` and `HandleOrInvalid`, This addresses [this concern](rust-lang#87074 (comment)). This is the same as rust-lang#95387. r? ```@joshtriplett```
…or-type, r=joshtriplett Define a dedicated error type for `HandleOrNull` and `HandleOrInvalid`. Define `NullHandleError` and `InvalidHandleError` types, that implement std::error::Error, and use them as the error types in `HandleOrNull` and `HandleOrInvalid`, This addresses [this concern](rust-lang#87074 (comment)). This is the same as rust-lang#95387. r? `@joshtriplett`
Introduce the `InvalidHandleError` and `NullHandleError` error types, corresponding to rust-lang/rust#95387.
Define a
NotHandletype, that implementsstd::error::Error, and useit as the error type in
HandleOrNullandHandleOrInvalid.This addresses this concern.
r? @joshtriplett