From c88e6a75f5f681610142aaba351cdd6e30deed95 Mon Sep 17 00:00:00 2001 From: Carsten Andrich Date: Fri, 1 May 2020 17:52:16 +0200 Subject: add Windows system error codes that map to io::ErrorKind::TimedOut --- src/libstd/io/error.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/libstd/io') diff --git a/src/libstd/io/error.rs b/src/libstd/io/error.rs index d80a38819ea..f7248e7547e 100644 --- a/src/libstd/io/error.rs +++ b/src/libstd/io/error.rs @@ -160,6 +160,11 @@ pub enum ErrorKind { #[stable(feature = "rust1", since = "1.0.0")] Interrupted, /// Any I/O error not part of this list. + /// + /// Errors that are `Other` now may move to a different or a new + /// [`ErrorKind`] variant in the future. It is not recommended to match + /// an error against `Other` and to expect any additional characteristics, + /// e.g., a specific [`Error::raw_os_error`] return value. #[stable(feature = "rust1", since = "1.0.0")] Other, -- cgit 1.4.1-3-g733a5