mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Restore original ordering of ErrorKind::Other
.
This commit is contained in:
parent
a0d11a4fab
commit
cc90733008
@ -164,14 +164,6 @@ pub enum ErrorKind {
|
|||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
Interrupted,
|
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.
|
/// 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
|
/// 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")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
Other,
|
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 operation is unsupported on this platform.
|
||||||
///
|
///
|
||||||
/// This means that the operation can never succeed.
|
/// This means that the operation can never succeed.
|
||||||
|
Loading…
Reference in New Issue
Block a user