about summary refs log tree commit diff
path: root/src/test/run-pass/thinlto
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-05-11 22:37:38 +0000
committerbors <bors@rust-lang.org>2017-05-11 22:37:38 +0000
commit39bcd6f425426bfacd7de9fe0378df4bd9263d00 (patch)
tree02ae46e982f6faebac2ced6743c7afd06bdf08b6 /src/test/run-pass/thinlto
parente40beb3af162e676e40704854dd6547ee8d4cf60 (diff)
parent71de9dbe5bc823a9603318c9cf92f58d7f5eb6f9 (diff)
downloadrust-39bcd6f425426bfacd7de9fe0378df4bd9263d00.tar.gz
rust-39bcd6f425426bfacd7de9fe0378df4bd9263d00.zip
Auto merge of #41684 - jethrogb:feature/ntstatus, r=alexcrichton
Windows io::Error: also format NTSTATUS error codes

`NTSTATUS` errors may be encoded as `HRESULT`, see [[MS-ERREF]](https://msdn.microsoft.com/en-us/library/cc231198.aspx). These error codes can still be formatted using `FormatMessageW` but require some different parameters to be passed in.

I wasn't sure if this needed a test and if so, how to test it. Presumably we wouldn't want to make our tests dependent on localization-dependent strings returned from `FormatMessageW`.

Users that get an `err: NTSTATUS` will need to do `io::Error::from_raw_os_error(err|0x1000_0000)` (the equivalent of [`HRESULT_FROM_NT`](https://msdn.microsoft.com/en-us/library/ms693780(VS.85).aspx))
Diffstat (limited to 'src/test/run-pass/thinlto')
0 files changed, 0 insertions, 0 deletions