Skip to content

Commit

Permalink
Added missing values in std::io::standard_error()
Browse files Browse the repository at this point in the history
  • Loading branch information
m-r-r committed Apr 27, 2014
1 parent b2a8fae commit a7b8a13
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/libstd/io/mod.rs
Expand Up @@ -1408,7 +1408,21 @@ pub fn standard_error(kind: IoErrorKind) -> IoError {
EndOfFile => "end of file",
IoUnavailable => "I/O is unavailable",
InvalidInput => "invalid input",
_ => fail!()
OtherIoError => "unknown I/O error",
FileNotFound => "file not found",
PermissionDenied => "permission denied",
ConnectionFailed => "connection failed",
Closed => "stream is closed",
ConnectionRefused => "connection refused",
ConnectionReset => "connection reset",
ConnectionAborted => "connection aborted",
NotConnected => "not connected",
BrokenPipe => "broken pipe",
PathAlreadyExists => "file exists",
PathDoesntExist => "no such file",
MismatchedFileTypeForOperation => "mismatched file type",
ResourceUnavailable => "resource unavailable",
TimedOut => "operation timed out"
};
IoError {
kind: kind,
Expand Down

5 comments on commit a7b8a13

@bors
Copy link
Contributor

@bors bors commented on a7b8a13 Apr 27, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from alexcrichton
at m-r-r@a7b8a13

@bors
Copy link
Contributor

@bors bors commented on a7b8a13 Apr 27, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging m-r-r/rust/patch-std-io-standard_error = a7b8a13 into auto

@bors
Copy link
Contributor

@bors bors commented on a7b8a13 Apr 27, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

m-r-r/rust/patch-std-io-standard_error = a7b8a13 merged ok, testing candidate = 8b24964

@bors
Copy link
Contributor

@bors bors commented on a7b8a13 Apr 28, 2014

@bors
Copy link
Contributor

@bors bors commented on a7b8a13 Apr 28, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 8b24964

Please sign in to comment.