bors 8b24964012 auto merge of #13799 : m-r-r/rust/patch-std-io-standard_error, r=alexcrichton
Hello,

With the latest version of Rust, calling to the function [`std::io::standard_error()`](http://static.rust-lang.org/doc/master/std/io/fn.standard_error.html) succeeds only if the value of the argument is `EndOfFile`, `IoUnavailable` or `InvalidInput`. If the function is called with another value as argument, it fails without message.

Here is a piece of code that reproduces the problem:

```rust
use std::io::{standard_error,EndOfFile,FileNotFound,PermissionDenied};

fn main() {
     println!("Error 1: {}", standard_error(EndOfFile)); // does not fail
     println!("Error 2: {}", standard_error(FileNotFound)); // fails
     println!("Error 3: {}", standard_error(PermissionDenied)); //fails
}
```
This was because the `IoErrorKind` passed as argument wasn't matched against all the possible values.

I added the missing branches in the `match` statement inside the function, and i removed the call to the `fail!()` macro. I rebuilt the crate with the latest `rustc` version and it seems to works.
2014-04-27 16:01:39 -07:00
..
2014-04-24 09:08:07 -07:00
2014-04-18 17:25:34 -07:00
2014-04-18 17:25:34 -07:00
2014-04-18 17:25:34 -07:00
2014-04-18 17:25:34 -07:00
2014-04-18 17:25:34 -07:00
2014-04-18 17:25:34 -07:00
2014-04-18 17:25:34 -07:00
2014-04-21 00:49:39 -04:00
2014-04-27 16:50:55 +02:00
2014-04-23 14:58:50 -07:00
2014-04-21 00:49:39 -04:00
2014-04-21 00:49:39 -04:00
2014-04-21 00:49:39 -04:00
2014-04-23 23:35:45 +08:00
2014-04-21 00:49:39 -04:00
2014-04-18 17:25:34 -07:00
2014-04-18 17:25:34 -07:00
2014-04-21 00:49:39 -04:00