diff options
| author | Tobias Bucher <tobiasbucher5991@gmail.com> | 2016-08-24 11:56:28 +0200 |
|---|---|---|
| committer | Tobias Bucher <tobiasbucher5991@gmail.com> | 2016-08-24 11:56:28 +0200 |
| commit | c2d064efa1e31ffc0a6bfcc6847bf386a44c1f9e (patch) | |
| tree | 10334247f7550596e006cd97a57693810f1a6278 /src/libstd | |
| parent | 5e22e3025ce0079ff54f17ebe99e9d00a34a8cf6 (diff) | |
| download | rust-c2d064efa1e31ffc0a6bfcc6847bf386a44c1f9e.tar.gz rust-c2d064efa1e31ffc0a6bfcc6847bf386a44c1f9e.zip | |
Restore old ordering of `io::ErrorKind`s
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/io/error.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libstd/io/error.rs b/src/libstd/io/error.rs index aa6ec75e3fc..99108e85b90 100644 --- a/src/libstd/io/error.rs +++ b/src/libstd/io/error.rs @@ -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. /// @@ -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. |
