Skip to content

Commit

Permalink
Restore old ordering of io::ErrorKinds
Browse files Browse the repository at this point in the history
  • Loading branch information
tbu- committed Aug 24, 2016
1 parent 5e22e30 commit c2d064e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/libstd/io/error.rs
Expand Up @@ -152,6 +152,10 @@ pub enum ErrorKind {
/// Interrupted operations can typically be retried.
#[stable(feature = "rust1", since = "1.0.0")]
Interrupted,
/// Any I/O error not part of this list.
#[stable(feature = "rust1", since = "1.0.0")]
Other,

/// An error returned when an operation could not be completed because an
/// "end of file" was reached prematurely.
///
Expand All @@ -160,9 +164,6 @@ pub enum ErrorKind {
/// read.
#[stable(feature = "read_exact", since = "1.6.0")]
UnexpectedEof,
/// Any I/O error not part of this list.
#[stable(feature = "rust1", since = "1.0.0")]
Other,

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

0 comments on commit c2d064e

Please sign in to comment.