diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2021-06-25 19:04:08 +0000 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2021-06-25 19:04:08 +0000 |
| commit | cc907330083a18a9067664c1db3db1959f58d00c (patch) | |
| tree | 8b88dd66bdd8001a006a9fdbdf60ba6f331698d8 /library/std/src | |
| parent | a0d11a4fab9c00e7df40a248de5d1532c56d5ef6 (diff) | |
| download | rust-cc907330083a18a9067664c1db3db1959f58d00c.tar.gz rust-cc907330083a18a9067664c1db3db1959f58d00c.zip | |
Restore original ordering of `ErrorKind::Other`.
Diffstat (limited to 'library/std/src')
| -rw-r--r-- | library/std/src/io/error.rs | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/library/std/src/io/error.rs b/library/std/src/io/error.rs index 6ca8e0b506c..1f9a12c4272 100644 --- a/library/std/src/io/error.rs +++ b/library/std/src/io/error.rs @@ -164,14 +164,6 @@ pub enum ErrorKind { #[stable(feature = "rust1", since = "1.0.0")] Interrupted, - /// An error returned when an operation could not be completed because an - /// "end of file" was reached prematurely. - /// - /// This typically means that an operation could only succeed if it read a - /// particular number of bytes but only a smaller number of bytes could be - /// read. - #[stable(feature = "read_exact", since = "1.6.0")] - UnexpectedEof, /// A custom error that does not fall under any other I/O error kind. /// /// This can be used to construct your own [`Error`]s that do not match any @@ -185,6 +177,15 @@ pub enum ErrorKind { #[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. + /// + /// This typically means that an operation could only succeed if it read a + /// particular number of bytes but only a smaller number of bytes could be + /// read. + #[stable(feature = "read_exact", since = "1.6.0")] + UnexpectedEof, + /// This operation is unsupported on this platform. /// /// This means that the operation can never succeed. |
