diff options
| author | kennytm <kennytm@gmail.com> | 2018-01-15 16:55:26 +0800 |
|---|---|---|
| committer | kennytm <kennytm@gmail.com> | 2018-01-15 18:49:30 +0800 |
| commit | 06112abd5f170e9f1ee06e212acb31976d6bb7c4 (patch) | |
| tree | b006301a0822089bcaf9d718c6af54058fa00f3c /src/test/incremental/thinlto | |
| parent | 8ff449d505728276e822ca9a80c1e7b2da8288a2 (diff) | |
| parent | 52e074e40ee3eaf04415b2044c93bcfddad52f35 (diff) | |
| download | rust-06112abd5f170e9f1ee06e212acb31976d6bb7c4.tar.gz rust-06112abd5f170e9f1ee06e212acb31976d6bb7c4.zip | |
Rollup merge of #47120 - clarcharr:io_error_debug, r=dtolnay
Better Debug impl for io::Error.
This PR includes the below changes:
1. The former impl wrapped the entire thing in `Error { repr: ... }` which was unhelpful; this has been removed.
2. The `Os` variant of `io::Error` included the code and message, but not the kind; this has been fixed.
3. The `Custom` variant of `io::Error` included a `Custom(Custom { ... })`, which is now just `Custom { ... }`.
Example of previous impl:
```rust
Error {
repr: Custom(
Custom {
kind: InvalidData,
error: Error {
repr: Os {
code: 2,
message: "no such file or directory"
}
}
}
)
}
```
Example of new impl:
```rust
Custom {
kind: InvalidData,
error: Os {
code: 2,
kind: NotFound,
message: "no such file or directory"
}
}
```
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions
