]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Auto merge of #96195 - sunfishcode:sunfishcode/handle-or-error-type, r=joshtriplett
authorbors <bors@rust-lang.org>
Wed, 27 Apr 2022 03:42:59 +0000 (03:42 +0000)
committerbors <bors@rust-lang.org>
Wed, 27 Apr 2022 03:42:59 +0000 (03:42 +0000)
commitbb85bcaca93fd7cf1955d5eb0cb1e16ef462bc7e
tree93cd7e42d20b7ad6d4aaca6bab09b8b61abbd434
parent99b70ee230a363220d97148d567f07366d7ea4e0
parent531c9373be094ad4e3ee28464dfacbb2fdea50a5
Auto merge of #96195 - sunfishcode:sunfishcode/handle-or-error-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](https://github.com/rust-lang/rust/issues/87074#issuecomment-1080031167).

This is the same as #95387.

r? `@joshtriplett`