diff options
| author | Dan Gohman <dev@sunfishcode.online> | 2022-03-20 15:37:31 -0700 |
|---|---|---|
| committer | Dan Gohman <dev@sunfishcode.online> | 2022-03-20 15:37:31 -0700 |
| commit | 95e170228440011bc6ac2eb5c689eda2f75ac586 (patch) | |
| tree | df7e301abf4f6806f434b3117906cd7bcff2ed9d /compiler/rustc_codegen_gcc | |
| parent | c84f39e6c08397d4ab9b51b472002a8bfc3b5b59 (diff) | |
| download | rust-95e170228440011bc6ac2eb5c689eda2f75ac586.tar.gz rust-95e170228440011bc6ac2eb5c689eda2f75ac586.zip | |
Preserve the Windows `GetLastError` error in `HandleOrInvalid`.
In the `TryFrom<HandleOrInvalid> for OwnedHandle` and `TryFrom<HandleOrNull> for OwnedHandle` implemenations, `forget` the owned handle on the error path, to avoid calling `CloseHandle` on an invalid handle. It's harmless, except that it may overwrite the thread's `GetLastError` error.
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions
