Skip to content

Commit fc3b8b3

Browse files
committed
Move the Error impl for NotHandle out of platform-independent code.
1 parent c7e0ef5 commit fc3b8b3

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

library/std/src/error.rs

-4
Original file line numberDiff line numberDiff line change
@@ -604,10 +604,6 @@ impl Error for alloc::collections::TryReserveError {}
604604
#[unstable(feature = "duration_checked_float", issue = "83400")]
605605
impl Error for time::FromFloatSecsError {}
606606

607-
#[cfg(windows)]
608-
#[unstable(feature = "io_safety", issue = "87074")]
609-
impl Error for crate::os::windows::io::NotHandle {}
610-
611607
// Copied from `any.rs`.
612608
impl dyn Error + 'static {
613609
/// Returns `true` if the inner type is the same as `T`.

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

+3
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,9 @@ impl fmt::Display for NotHandle {
231231
}
232232
}
233233

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

0 commit comments

Comments
 (0)