diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-01-15 21:51:45 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-15 21:51:45 +0900 |
| commit | be1ecce01feddf3c81e0a1215a7dc21814d35862 (patch) | |
| tree | 098ec6815fdb19966d5c5c7b92d92edeab550a05 /src/tools | |
| parent | 89b065dbd2b953ea3ae15ebfb67a799e8b0a3ecc (diff) | |
| parent | 7b564c67deb6f5e9d7102871d63a9ad3d7161278 (diff) | |
| download | rust-be1ecce01feddf3c81e0a1215a7dc21814d35862.tar.gz rust-be1ecce01feddf3c81e0a1215a7dc21814d35862.zip | |
Rollup merge of #68141 - euclio:replace-bindings-with-winapi, r=alexcrichton
use winapi for non-stdlib Windows bindings
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/compiletest/src/runtest.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs index 1912c9ef5ba..3a114a0b715 100644 --- a/src/tools/compiletest/src/runtest.rs +++ b/src/tools/compiletest/src/runtest.rs @@ -42,10 +42,8 @@ mod tests; #[cfg(windows)] fn disable_error_reporting<F: FnOnce() -> R, R>(f: F) -> R { use std::sync::Mutex; - const SEM_NOGPFAULTERRORBOX: u32 = 0x0002; - extern "system" { - fn SetErrorMode(mode: u32) -> u32; - } + use winapi::um::errhandlingapi::SetErrorMode; + use winapi::um::winbase::SEM_NOGPFAULTERRORBOX; lazy_static! { static ref LOCK: Mutex<()> = { Mutex::new(()) }; |
