Skip to content

Commit cc90733

Browse files
committed
Restore original ordering of ErrorKind::Other.
1 parent a0d11a4 commit cc90733

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

library/std/src/io/error.rs

+9-8
Original file line numberDiff line numberDiff line change
@@ -164,14 +164,6 @@ pub enum ErrorKind {
164164
#[stable(feature = "rust1", since = "1.0.0")]
165165
Interrupted,
166166

167-
/// An error returned when an operation could not be completed because an
168-
/// "end of file" was reached prematurely.
169-
///
170-
/// This typically means that an operation could only succeed if it read a
171-
/// particular number of bytes but only a smaller number of bytes could be
172-
/// read.
173-
#[stable(feature = "read_exact", since = "1.6.0")]
174-
UnexpectedEof,
175167
/// A custom error that does not fall under any other I/O error kind.
176168
///
177169
/// This can be used to construct your own [`Error`]s that do not match any
@@ -185,6 +177,15 @@ pub enum ErrorKind {
185177
#[stable(feature = "rust1", since = "1.0.0")]
186178
Other,
187179

180+
/// An error returned when an operation could not be completed because an
181+
/// "end of file" was reached prematurely.
182+
///
183+
/// This typically means that an operation could only succeed if it read a
184+
/// particular number of bytes but only a smaller number of bytes could be
185+
/// read.
186+
#[stable(feature = "read_exact", since = "1.6.0")]
187+
UnexpectedEof,
188+
188189
/// This operation is unsupported on this platform.
189190
///
190191
/// This means that the operation can never succeed.

0 commit comments

Comments
 (0)