Manish Goregaokar be2d4fbcb0 Rollup merge of #27577 - diaphore:trailing-newline-formatmessagew, r=alexcrichton
`FormatMessageW` always inserts trailing `\r\n` to system messages which is a minor annoyance when they're fed to `Debug` but can break formatting with `Display`.

```rust
fn main() {
    use std::env;
    if let Err(err) = env::set_current_dir("???") {
        println!("{:#?}\n{}", err, err);
    }
}
```
```_
Error {
    repr: Os {
        code: 2,
        message: "The system cannot find the file specified.\r\n"
    }
}
The system cannot find the file specified.
 (os error 2)
```
2015-08-11 16:48:01 +05:30
..
2015-07-30 06:35:42 +10:00
2015-08-09 22:05:23 +02:00
2015-08-09 22:05:22 +02:00
2015-08-03 17:23:01 -07:00
2015-08-10 20:04:18 -04:00
2015-08-10 16:35:44 -07:00
2015-08-10 16:35:44 -07:00
2015-07-31 11:58:38 -07:00