Skip to content

Commit c2d064e

Browse files
committed
Restore old ordering of io::ErrorKinds
1 parent 5e22e30 commit c2d064e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/libstd/io/error.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,10 @@ pub enum ErrorKind {
152152
/// Interrupted operations can typically be retried.
153153
#[stable(feature = "rust1", since = "1.0.0")]
154154
Interrupted,
155+
/// Any I/O error not part of this list.
156+
#[stable(feature = "rust1", since = "1.0.0")]
157+
Other,
158+
155159
/// An error returned when an operation could not be completed because an
156160
/// "end of file" was reached prematurely.
157161
///
@@ -160,9 +164,6 @@ pub enum ErrorKind {
160164
/// read.
161165
#[stable(feature = "read_exact", since = "1.6.0")]
162166
UnexpectedEof,
163-
/// Any I/O error not part of this list.
164-
#[stable(feature = "rust1", since = "1.0.0")]
165-
Other,
166167

167168
/// A marker variant that tells the compiler that users of this enum cannot
168169
/// match it exhaustively.

0 commit comments

Comments
 (0)