From 67994b77fda81223c9e71f0d476aa849c9be9699 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Sun, 27 Mar 2022 16:54:58 -0700 Subject: [PATCH] Move the `Error` impl for `NotHandle` out of platform-independent code. --- library/std/src/os/windows/io/handle.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/std/src/os/windows/io/handle.rs b/library/std/src/os/windows/io/handle.rs index 1bed22a4ce5..c6b84b6e5d3 100644 --- a/library/std/src/os/windows/io/handle.rs +++ b/library/std/src/os/windows/io/handle.rs @@ -232,6 +232,9 @@ fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { } } +#[unstable(feature = "io_safety", issue = "87074")] +impl crate::error::Error for NotHandle {} + impl AsRawHandle for BorrowedHandle<'_> { #[inline] fn as_raw_handle(&self) -> RawHandle {