Skip to content

Commit 135b8e0

Browse files
committed
Move the Error impl for NotHandle out of platform-independent code.
1 parent 1bb38fa commit 135b8e0

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

library/std/src/error.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -612,10 +612,6 @@ impl Error for alloc::collections::TryReserveError {}
612612
#[unstable(feature = "duration_checked_float", issue = "83400")]
613613
impl Error for time::FromFloatSecsError {}
614614

615-
#[cfg(windows)]
616-
#[unstable(feature = "io_safety", issue = "87074")]
617-
impl Error for crate::os::windows::io::NotHandle {}
618-
619615
// Copied from `any.rs`.
620616
impl dyn Error + 'static {
621617
/// Returns `true` if the inner type is the same as `T`.

library/std/src/os/windows/io/handle.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,9 @@ impl fmt::Display for NotHandle {
232232
}
233233
}
234234

235+
#[unstable(feature = "io_safety", issue = "87074")]
236+
impl crate::error::Error for NotHandle {}
237+
235238
impl AsRawHandle for BorrowedHandle<'_> {
236239
#[inline]
237240
fn as_raw_handle(&self) -> RawHandle {

0 commit comments

Comments
 (0)