@@ -83,7 +83,7 @@ struct Custom {
83
83
/// It is used with the [`io::Error`] type.
84
84
///
85
85
/// [`io::Error`]: struct.Error.html
86
- #[ derive( Copy , PartialEq , Eq , Clone , Debug ) ]
86
+ #[ derive( Clone , Copy , Debug , Eq , Hash , Ord , PartialEq , PartialOrd ) ]
87
87
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
88
88
#[ allow( deprecated) ]
89
89
pub enum ErrorKind {
@@ -152,10 +152,6 @@ pub enum ErrorKind {
152
152
/// Interrupted operations can typically be retried.
153
153
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
154
154
Interrupted ,
155
- /// Any I/O error not part of this list.
156
- #[ stable( feature = "rust1" , since = "1.0.0" ) ]
157
- Other ,
158
-
159
155
/// An error returned when an operation could not be completed because an
160
156
/// "end of file" was reached prematurely.
161
157
///
@@ -164,8 +160,12 @@ pub enum ErrorKind {
164
160
/// read.
165
161
#[ stable( feature = "read_exact" , since = "1.6.0" ) ]
166
162
UnexpectedEof ,
167
-
168
163
/// Any I/O error not part of this list.
164
+ #[ stable( feature = "rust1" , since = "1.0.0" ) ]
165
+ Other ,
166
+
167
+ /// A marker variant that tells the compiler that users of this enum cannot
168
+ /// match it exhaustively.
169
169
#[ unstable( feature = "io_error_internals" ,
170
170
reason = "better expressed through extensible enums that this \
171
171
enum cannot be exhaustively matched against",
0 commit comments