about summary refs log tree commit diff
path: root/compiler/rustc_llvm/src
diff options
context:
space:
mode:
author许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com>2024-06-09 20:54:24 +0100
committerGitHub <noreply@github.com>2024-06-09 20:54:24 +0100
commit60657d36af5251977ac951af70cadc6a28e05d85 (patch)
tree9a891a2f8373206a9463ea3990e679fdd289d055 /compiler/rustc_llvm/src
parent7e643932a5e6a719efd366f34d7f71f8917adee5 (diff)
parent3606818010ac773285e151c9cfaf1d09865f2957 (diff)
downloadrust-60657d36af5251977ac951af70cadc6a28e05d85.tar.gz
rust-60657d36af5251977ac951af70cadc6a28e05d85.zip
Rollup merge of #126194 - ChrisDenton:winerror, r=Mark-Simulacrum
Migrate more things to `WinError`

In `library/std/src/sys/pal/windows`, we prefer to use the `WinError` type in place of using either `io::Result` or `unsafe { GetLastError }`. The latter is unsafe and weakly typed whereas the former is larger and requires unwrapping because it returns an `Option`.

I also fixed up a couple of places where we were unnecessarily defining error constants that are already defined.
Diffstat (limited to 'compiler/rustc_llvm/src')
0 files changed, 0 insertions, 0 deletions