diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2021-12-16 17:23:10 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-16 17:23:10 +0100 |
| commit | b742594f4a5cb73b2b69047625c8b92642c38c24 (patch) | |
| tree | 4cc55e7dc9bd86166530d368ae32a18ff7914ffd /compiler/rustc_codegen_llvm/src | |
| parent | 7e5c0711e49017f0b6cbef6c8ae45763e57db0f6 (diff) | |
| parent | 85f786cc9c85473166fee1daec2dfc550f46bed8 (diff) | |
| download | rust-b742594f4a5cb73b2b69047625c8b92642c38c24.tar.gz rust-b742594f4a5cb73b2b69047625c8b92642c38c24.zip | |
Rollup merge of #91947 - ibraheemdev:io-error-other, r=joshtriplett
Add `io::Error::other` This PR adds a small utility constructor, `io::Error::other`, a shorthand for `io::Error::new(io::ErrorKind::Other, err)`, something I find myself writing often. For some concrete stats, a quick search on [grep.app](https://grep.app) shows that more than half of the uses of `io::Error::new` use `ErrorKind::Other`: ``` Error::new\((?:std::)?(?:io::)?ErrorKind:: => 3,898 results Error::new\((?:std::)?(?:io::)?ErrorKind::Other => 2,186 results ```
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
