[INFO] crate winhandle 0.3.0 is already in cache
[INFO] checking winhandle-0.3.0 against master#209b2be09fcaff937480d1fbbe8b31646e361c7a for pr-70917
[INFO] extracting crate winhandle 0.3.0 into /workspace/builds/worker-5/source
[INFO] validating manifest of crates.io crate winhandle 0.3.0 on toolchain 209b2be09fcaff937480d1fbbe8b31646e361c7a
[INFO] running `"/workspace/cargo-home/bin/cargo" "+209b2be09fcaff937480d1fbbe8b31646e361c7a" "read-manifest" "--manifest-path" "Cargo.toml"`
[INFO] started tweaking crates.io crate winhandle 0.3.0
[INFO] finished tweaking crates.io crate winhandle 0.3.0
[INFO] tweaked toml for crates.io crate winhandle 0.3.0 written to /workspace/builds/worker-5/source/Cargo.toml
[INFO] running `"/workspace/cargo-home/bin/cargo" "+209b2be09fcaff937480d1fbbe8b31646e361c7a" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"`
[INFO] running `"/workspace/cargo-home/bin/cargo" "+209b2be09fcaff937480d1fbbe8b31646e361c7a" "fetch" "--locked" "--manifest-path" "Cargo.toml"`
[INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+209b2be09fcaff937480d1fbbe8b31646e361c7a" "check" "--frozen" "--all" "--all-targets"`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] 48372497d283e457d70a01c6026dfe73d46bf6b3dc62afb976c6ac4e1bcef36f
[INFO] running `"docker" "start" "-a" "48372497d283e457d70a01c6026dfe73d46bf6b3dc62afb976c6ac4e1bcef36f"`
[INFO] [stderr]    Compiling winapi v0.3.8
[INFO] [stderr]     Checking widestring v0.2.2
[INFO] [stderr]     Checking winhandle v0.3.0 (/opt/rustwide/workdir)
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]  --> src/macros.rs:2:17
[INFO] [stderr]   |
[INFO] [stderr] 2 | pub use winapi::shared::minwindef::{FALSE};
[INFO] [stderr]   |                 ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]  --> src/macros.rs:3:17
[INFO] [stderr]   |
[INFO] [stderr] 3 | pub use winapi::shared::winerror::{E_FAIL, S_OK};
[INFO] [stderr]   |                 ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]  --> src/macros.rs:4:17
[INFO] [stderr]   |
[INFO] [stderr] 4 | pub use winapi::shared::winerror::{SUCCEEDED};
[INFO] [stderr]   |                 ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]  --> src/macros.rs:5:17
[INFO] [stderr]   |
[INFO] [stderr] 5 | pub use winapi::um::errhandlingapi::{GetLastError};
[INFO] [stderr]   |                 ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]  --> src/macros.rs:6:17
[INFO] [stderr]   |
[INFO] [stderr] 6 | pub use winapi::um::handleapi::{INVALID_HANDLE_VALUE};
[INFO] [stderr]   |                 ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `windows` in `os`
[INFO] [stderr]  --> src/handle.rs:7:14
[INFO] [stderr]   |
[INFO] [stderr] 7 | use std::os::windows::prelude::*;
[INFO] [stderr]   |              ^^^^^^^ could not find `windows` in `os`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]  --> src/handle.rs:9:13
[INFO] [stderr]   |
[INFO] [stderr] 9 | use winapi::um::winnt::{HANDLE, PVOID, ACCESS_MASK};
[INFO] [stderr]   |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]   --> src/handle.rs:10:13
[INFO] [stderr]    |
[INFO] [stderr] 10 | use winapi::um::winnt::{DUPLICATE_SAME_ACCESS, DUPLICATE_CLOSE_SOURCE};
[INFO] [stderr]    |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]   --> src/handle.rs:11:13
[INFO] [stderr]    |
[INFO] [stderr] 11 | use winapi::shared::minwindef::{DWORD, ULONG, TRUE, FALSE};
[INFO] [stderr]    |             ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]   --> src/handle.rs:12:13
[INFO] [stderr]    |
[INFO] [stderr] 12 | use winapi::shared::winerror::{SUCCEEDED, NO_ERROR};
[INFO] [stderr]    |             ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]   --> src/handle.rs:13:13
[INFO] [stderr]    |
[INFO] [stderr] 13 | use winapi::um::handleapi::{INVALID_HANDLE_VALUE, CloseHandle, GetHandleInformation, DuplicateHandle};
[INFO] [stderr]    |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]   --> src/handle.rs:14:13
[INFO] [stderr]    |
[INFO] [stderr] 14 | use winapi::um::processthreadsapi::{GetCurrentProcess};
[INFO] [stderr]    |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]   --> src/handle.rs:15:13
[INFO] [stderr]    |
[INFO] [stderr] 15 | use winapi::um::fileapi::{GetFileType};
[INFO] [stderr]    |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]   --> src/handle.rs:16:13
[INFO] [stderr]    |
[INFO] [stderr] 16 | use winapi::um::winbase::{FILE_TYPE_CHAR, FILE_TYPE_DISK, FILE_TYPE_PIPE, FILE_TYPE_UNKNOWN};
[INFO] [stderr]    |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]   --> src/handle.rs:17:13
[INFO] [stderr]    |
[INFO] [stderr] 17 | use winapi::um::errhandlingapi::{GetLastError};
[INFO] [stderr]    |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]    --> src/handle.rs:411:17
[INFO] [stderr]     |
[INFO] [stderr] 411 |     use winapi::shared::minwindef::{HWINSTA};
[INFO] [stderr]     |                 ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]    --> src/handle.rs:412:17
[INFO] [stderr]     |
[INFO] [stderr] 412 |     use winapi::um::winnt::{TOKEN_ALL_ACCESS, FILE_READ_DATA};
[INFO] [stderr]     |                 ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]    --> src/handle.rs:413:17
[INFO] [stderr]     |
[INFO] [stderr] 413 |     use winapi::um::winuser::{GetThreadDesktop};
[INFO] [stderr]     |                 ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]    --> src/handle.rs:414:17
[INFO] [stderr]     |
[INFO] [stderr] 414 |     use winapi::um::processthreadsapi::{GetCurrentThreadId, GetCurrentThread, OpenProcessToken};
[INFO] [stderr]     |                 ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]    --> src/handle.rs:415:17
[INFO] [stderr]     |
[INFO] [stderr] 415 |     use winapi::um::namedpipeapi::{CreatePipe};
[INFO] [stderr]     |                 ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]    --> src/handle.rs:416:17
[INFO] [stderr]     |
[INFO] [stderr] 416 |     use winapi::um::synchapi::{CreateMutexW, CreateEventW, CreateSemaphoreW};
[INFO] [stderr]     |                 ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]    --> src/handle.rs:417:17
[INFO] [stderr]     |
[INFO] [stderr] 417 |     use winapi::um::jobapi2::{CreateJobObjectW};
[INFO] [stderr]     |                 ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]  --> src/comptr.rs:5:13
[INFO] [stderr]   |
[INFO] [stderr] 5 | use winapi::um::unknwnbase::IUnknown;
[INFO] [stderr]   |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]  --> src/mem.rs:4:13
[INFO] [stderr]   |
[INFO] [stderr] 4 | use winapi::um::winbase::{LocalFree};
[INFO] [stderr]   |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]  --> src/sys.rs:6:13
[INFO] [stderr]   |
[INFO] [stderr] 6 | use winapi::um::winnt::{HANDLE, HRESULT, PVOID, LPSTR, ACCESS_MASK};
[INFO] [stderr]   |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]  --> src/sys.rs:7:13
[INFO] [stderr]   |
[INFO] [stderr] 7 | use winapi::shared::ntdef::{UNICODE_STRING};
[INFO] [stderr]   |             ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]  --> src/sys.rs:8:13
[INFO] [stderr]   |
[INFO] [stderr] 8 | use winapi::shared::minwindef::{DWORD, HMODULE, ULONG, PULONG};
[INFO] [stderr]   |             ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]  --> src/sys.rs:9:13
[INFO] [stderr]   |
[INFO] [stderr] 9 | use winapi::um::libloaderapi::{GetModuleHandleExW, GetProcAddress};
[INFO] [stderr]   |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]    --> src/macros.rs:198:21
[INFO] [stderr]     |
[INFO] [stderr] 198 |         use winapi::um::winnt::{GENERIC_READ, FILE_ATTRIBUTE_NORMAL};
[INFO] [stderr]     |                     ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]    --> src/macros.rs:199:21
[INFO] [stderr]     |
[INFO] [stderr] 199 |         use winapi::um::fileapi::{CreateFileA, OPEN_EXISTING};
[INFO] [stderr]     |                     ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]    --> src/macros.rs:217:21
[INFO] [stderr]     |
[INFO] [stderr] 217 |         use winapi::shared::minwindef::{FALSE};
[INFO] [stderr]     |                     ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]    --> src/macros.rs:218:21
[INFO] [stderr]     |
[INFO] [stderr] 218 |         use winapi::shared::winerror::{ERROR_INVALID_HANDLE};
[INFO] [stderr]     |                     ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]    --> src/macros.rs:219:21
[INFO] [stderr]     |
[INFO] [stderr] 219 |         use winapi::um::synchapi::{CreateMutexA, CreateEventA};
[INFO] [stderr]     |                     ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]    --> src/macros.rs:239:21
[INFO] [stderr]     |
[INFO] [stderr] 239 |         use winapi::shared::winerror::S_OK;
[INFO] [stderr]     |                     ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]    --> src/macros.rs:248:21
[INFO] [stderr]     |
[INFO] [stderr] 248 |         use winapi::shared::winerror::E_FAIL;
[INFO] [stderr]     |                     ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0432]: unresolved import `Opaque`
[INFO] [stderr]  --> src/handle.rs:1:8
[INFO] [stderr]   |
[INFO] [stderr] 1 | use ::{Opaque};
[INFO] [stderr]   |        ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]  --> src/macros.rs:2:17
[INFO] [stderr]   |
[INFO] [stderr] 2 | pub use winapi::shared::minwindef::{FALSE};
[INFO] [stderr]   |                 ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]  --> src/macros.rs:3:17
[INFO] [stderr]   |
[INFO] [stderr] 3 | pub use winapi::shared::winerror::{E_FAIL, S_OK};
[INFO] [stderr]   |                 ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]  --> src/macros.rs:4:17
[INFO] [stderr]   |
[INFO] [stderr] 4 | pub use winapi::shared::winerror::{SUCCEEDED};
[INFO] [stderr]   |                 ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]  --> src/macros.rs:5:17
[INFO] [stderr]   |
[INFO] [stderr] 5 | pub use winapi::um::errhandlingapi::{GetLastError};
[INFO] [stderr]   |                 ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]  --> src/macros.rs:6:17
[INFO] [stderr]   |
[INFO] [stderr] 6 | pub use winapi::um::handleapi::{INVALID_HANDLE_VALUE};
[INFO] [stderr]   |                 ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `windows` in `os`
[INFO] [stderr]  --> src/handle.rs:7:14
[INFO] [stderr]   |
[INFO] [stderr] 7 | use std::os::windows::prelude::*;
[INFO] [stderr]   |              ^^^^^^^ could not find `windows` in `os`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]  --> src/handle.rs:9:13
[INFO] [stderr]   |
[INFO] [stderr] 9 | use winapi::um::winnt::{HANDLE, PVOID, ACCESS_MASK};
[INFO] [stderr]   |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]   --> src/handle.rs:10:13
[INFO] [stderr]    |
[INFO] [stderr] 10 | use winapi::um::winnt::{DUPLICATE_SAME_ACCESS, DUPLICATE_CLOSE_SOURCE};
[INFO] [stderr]    |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]   --> src/handle.rs:11:13
[INFO] [stderr]    |
[INFO] [stderr] 11 | use winapi::shared::minwindef::{DWORD, ULONG, TRUE, FALSE};
[INFO] [stderr]    |             ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]   --> src/handle.rs:12:13
[INFO] [stderr]    |
[INFO] [stderr] 12 | use winapi::shared::winerror::{SUCCEEDED, NO_ERROR};
[INFO] [stderr]    |             ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]   --> src/handle.rs:13:13
[INFO] [stderr]    |
[INFO] [stderr] 13 | use winapi::um::handleapi::{INVALID_HANDLE_VALUE, CloseHandle, GetHandleInformation, DuplicateHandle};
[INFO] [stderr]    |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]   --> src/handle.rs:14:13
[INFO] [stderr]    |
[INFO] [stderr] 14 | use winapi::um::processthreadsapi::{GetCurrentProcess};
[INFO] [stderr]    |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]   --> src/handle.rs:15:13
[INFO] [stderr]    |
[INFO] [stderr] 15 | use winapi::um::fileapi::{GetFileType};
[INFO] [stderr]    |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]   --> src/handle.rs:16:13
[INFO] [stderr]    |
[INFO] [stderr] 16 | use winapi::um::winbase::{FILE_TYPE_CHAR, FILE_TYPE_DISK, FILE_TYPE_PIPE, FILE_TYPE_UNKNOWN};
[INFO] [stderr]    |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]   --> src/handle.rs:17:13
[INFO] [stderr]    |
[INFO] [stderr] 17 | use winapi::um::errhandlingapi::{GetLastError};
[INFO] [stderr]    |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]  --> src/comptr.rs:5:13
[INFO] [stderr]   |
[INFO] [stderr] 5 | use winapi::um::unknwnbase::IUnknown;
[INFO] [stderr]   |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]  --> src/mem.rs:4:13
[INFO] [stderr]   |
[INFO] [stderr] 4 | use winapi::um::winbase::{LocalFree};
[INFO] [stderr]   |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]  --> src/sys.rs:6:13
[INFO] [stderr]   |
[INFO] [stderr] 6 | use winapi::um::winnt::{HANDLE, HRESULT, PVOID, LPSTR, ACCESS_MASK};
[INFO] [stderr]   |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]  --> src/sys.rs:7:13
[INFO] [stderr]   |
[INFO] [stderr] 7 | use winapi::shared::ntdef::{UNICODE_STRING};
[INFO] [stderr]   |             ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]  --> src/sys.rs:8:13
[INFO] [stderr]   |
[INFO] [stderr] 8 | use winapi::shared::minwindef::{DWORD, HMODULE, ULONG, PULONG};
[INFO] [stderr]   |             ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]  --> src/sys.rs:9:13
[INFO] [stderr]   |
[INFO] [stderr] 9 | use winapi::um::libloaderapi::{GetModuleHandleExW, GetProcAddress};
[INFO] [stderr]   |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0432]: unresolved import `Opaque`
[INFO] [stderr]  --> src/handle.rs:1:8
[INFO] [stderr]   |
[INFO] [stderr] 1 | use ::{Opaque};
[INFO] [stderr]   |        ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `CreateFileA` in this scope
[INFO] [stderr]    --> src/macros.rs:201:48
[INFO] [stderr]     |
[INFO] [stderr] 201 |         let err = unsafe { winapi_handle_call!(CreateFileA(
[INFO] [stderr]     |                                                ^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `GENERIC_READ` in this scope
[INFO] [stderr]    --> src/macros.rs:203:13
[INFO] [stderr]     |
[INFO] [stderr] 203 |             GENERIC_READ,
[INFO] [stderr]     |             ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `OPEN_EXISTING` in this scope
[INFO] [stderr]    --> src/macros.rs:206:13
[INFO] [stderr]     |
[INFO] [stderr] 206 |             OPEN_EXISTING,
[INFO] [stderr]     |             ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FILE_ATTRIBUTE_NORMAL` in this scope
[INFO] [stderr]    --> src/macros.rs:207:13
[INFO] [stderr]     |
[INFO] [stderr] 207 |             FILE_ATTRIBUTE_NORMAL,
[INFO] [stderr]     |             ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in module `$crate::macros`
[INFO] [stderr]    --> src/macros.rs:42:100
[INFO] [stderr]     |
[INFO] [stderr] 42  |       { $func:ident($($x:expr),* $(,)*) } => { winapi_handle_call!($func($($x),*) != $crate::macros::INVALID_HANDLE_VALUE, ::std::ptr::null_mut()) };
[INFO] [stderr]     |                                                                                                      ^^^^^^^^^^^^^^^^^^^^ not found in `$crate::macros`
[INFO] [stderr] ...
[INFO] [stderr] 201 |           let err = unsafe { winapi_handle_call!(CreateFileA(
[INFO] [stderr]     |  ____________________________-
[INFO] [stderr] 202 | |             b"\0".as_ptr() as *const i8,
[INFO] [stderr] 203 | |             GENERIC_READ,
[INFO] [stderr] 204 | |             0,
[INFO] [stderr] ...   |
[INFO] [stderr] 208 | |             ptr::null_mut(),
[INFO] [stderr] 209 | |         )) }.unwrap_err();
[INFO] [stderr]     | |__________- in this macro invocation
[INFO] [stderr]     |
[INFO] [stderr]     = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `CreateEventA` in this scope
[INFO] [stderr]    --> src/macros.rs:221:51
[INFO] [stderr]     |
[INFO] [stderr] 221 |         let _event = unsafe { winapi_handle_call!(CreateEventA(
[INFO] [stderr]     |                                                   ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope
[INFO] [stderr]    --> src/macros.rs:223:13
[INFO] [stderr]     |
[INFO] [stderr] 223 |             FALSE,
[INFO] [stderr]     |             ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope
[INFO] [stderr]    --> src/macros.rs:224:13
[INFO] [stderr]     |
[INFO] [stderr] 224 |             FALSE,
[INFO] [stderr]     |             ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in module `$crate::macros`
[INFO] [stderr]    --> src/macros.rs:42:100
[INFO] [stderr]     |
[INFO] [stderr] 42  |       { $func:ident($($x:expr),* $(,)*) } => { winapi_handle_call!($func($($x),*) != $crate::macros::INVALID_HANDLE_VALUE, ::std::ptr::null_mut()) };
[INFO] [stderr]     |                                                                                                      ^^^^^^^^^^^^^^^^^^^^ not found in `$crate::macros`
[INFO] [stderr] ...
[INFO] [stderr] 221 |           let _event = unsafe { winapi_handle_call!(CreateEventA(
[INFO] [stderr]     |  _______________________________-
[INFO] [stderr] 222 | |             ptr::null_mut(),
[INFO] [stderr] 223 | |             FALSE,
[INFO] [stderr] 224 | |             FALSE,
[INFO] [stderr] 225 | |             b"SomeRustyEvent\0".as_ptr() as *const i8,
[INFO] [stderr] 226 | |         )) }.unwrap();
[INFO] [stderr]     | |__________- in this macro invocation
[INFO] [stderr]     |
[INFO] [stderr]     = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `CreateMutexA` in this scope
[INFO] [stderr]    --> src/macros.rs:228:48
[INFO] [stderr]     |
[INFO] [stderr] 228 |         let err = unsafe { winapi_handle_call!(CreateMutexA(
[INFO] [stderr]     |                                                ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope
[INFO] [stderr]    --> src/macros.rs:230:13
[INFO] [stderr]     |
[INFO] [stderr] 230 |             FALSE,
[INFO] [stderr]     |             ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in module `$crate::macros`
[INFO] [stderr]    --> src/macros.rs:42:100
[INFO] [stderr]     |
[INFO] [stderr] 42  |       { $func:ident($($x:expr),* $(,)*) } => { winapi_handle_call!($func($($x),*) != $crate::macros::INVALID_HANDLE_VALUE, ::std::ptr::null_mut()) };
[INFO] [stderr]     |                                                                                                      ^^^^^^^^^^^^^^^^^^^^ not found in `$crate::macros`
[INFO] [stderr] ...
[INFO] [stderr] 228 |           let err = unsafe { winapi_handle_call!(CreateMutexA(
[INFO] [stderr]     |  ____________________________-
[INFO] [stderr] 229 | |             ptr::null_mut(),
[INFO] [stderr] 230 | |             FALSE,
[INFO] [stderr] 231 | |             b"SomeRustyEvent\0".as_ptr() as *const i8,
[INFO] [stderr] 232 | |         )) }.unwrap_err();
[INFO] [stderr]     | |__________- in this macro invocation
[INFO] [stderr]     |
[INFO] [stderr]     = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `ERROR_INVALID_HANDLE` in this scope
[INFO] [stderr]    --> src/macros.rs:234:25
[INFO] [stderr]     |
[INFO] [stderr] 234 |         assert_eq!(Some(ERROR_INVALID_HANDLE as i32), err.raw_os_error());
[INFO] [stderr]     |                         ^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `S_OK` in module `$crate::macros`
[INFO] [stderr]    --> src/macros.rs:190:103
[INFO] [stderr]     |
[INFO] [stderr] 190 |     ( $($s:stmt;)* ) => { catch_panic_hresult! { { $($s;)* #[allow(unreachable_code)] $crate::macros::S_OK } } };
[INFO] [stderr]     |                                                                                                       ^^^^ not found in `$crate::macros`
[INFO] [stderr] ...
[INFO] [stderr] 241 |         let result = catch_panic_hresult! {};
[INFO] [stderr]     |                      ----------------------- in this macro invocation
[INFO] [stderr]     |
[INFO] [stderr]     = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `E_FAIL` in module `$crate::macros`
[INFO] [stderr]    --> src/macros.rs:184:33
[INFO] [stderr]     |
[INFO] [stderr] 184 |                 $crate::macros::E_FAIL
[INFO] [stderr]     |                                 ^^^^^^ not found in `$crate::macros`
[INFO] [stderr] ...
[INFO] [stderr] 241 |         let result = catch_panic_hresult! {};
[INFO] [stderr]     |                      ----------------------- in this macro invocation
[INFO] [stderr]     |
[INFO] [stderr]     = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `S_OK` in this scope
[INFO] [stderr]    --> src/macros.rs:243:20
[INFO] [stderr]     |
[INFO] [stderr] 243 |         assert_eq!(S_OK, result);
[INFO] [stderr]     |                    ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `S_OK` in module `$crate::macros`
[INFO] [stderr]    --> src/macros.rs:190:103
[INFO] [stderr]     |
[INFO] [stderr] 190 |       ( $($s:stmt;)* ) => { catch_panic_hresult! { { $($s;)* #[allow(unreachable_code)] $crate::macros::S_OK } } };
[INFO] [stderr]     |                                                                                                         ^^^^ not found in `$crate::macros`
[INFO] [stderr] ...
[INFO] [stderr] 250 |           let result = catch_panic_hresult! {
[INFO] [stderr]     |  ______________________-
[INFO] [stderr] 251 | |             panic!("error!");
[INFO] [stderr] 252 | |         };
[INFO] [stderr]     | |_________- in this macro invocation
[INFO] [stderr]     |
[INFO] [stderr]     = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `E_FAIL` in module `$crate::macros`
[INFO] [stderr]    --> src/macros.rs:184:33
[INFO] [stderr]     |
[INFO] [stderr] 184 |                   $crate::macros::E_FAIL
[INFO] [stderr]     |                                   ^^^^^^ not found in `$crate::macros`
[INFO] [stderr] ...
[INFO] [stderr] 250 |           let result = catch_panic_hresult! {
[INFO] [stderr]     |  ______________________-
[INFO] [stderr] 251 | |             panic!("error!");
[INFO] [stderr] 252 | |         };
[INFO] [stderr]     | |_________- in this macro invocation
[INFO] [stderr]     |
[INFO] [stderr]     = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `E_FAIL` in this scope
[INFO] [stderr]    --> src/macros.rs:254:20
[INFO] [stderr]     |
[INFO] [stderr] 254 |         assert_eq!(E_FAIL, result);
[INFO] [stderr]     |                    ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope
[INFO] [stderr]   --> src/handle.rs:20:22
[INFO] [stderr]    |
[INFO] [stderr] 20 | pub struct WinHandle(HANDLE);
[INFO] [stderr]    |                      ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope
[INFO] [stderr]   --> src/handle.rs:36:43
[INFO] [stderr]    |
[INFO] [stderr] 36 |         if !self.0.is_null() && self.0 != INVALID_HANDLE_VALUE {
[INFO] [stderr]    |                                           ^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `CloseHandle` in this scope
[INFO] [stderr]   --> src/handle.rs:37:22
[INFO] [stderr]    |
[INFO] [stderr] 37 |             unsafe { CloseHandle(self.0); }
[INFO] [stderr]    |                      ^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope
[INFO] [stderr]   --> src/handle.rs:42:28
[INFO] [stderr]    |
[INFO] [stderr] 42 | pub struct WinHandleTarget(HANDLE);
[INFO] [stderr]    |                            ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope
[INFO] [stderr]   --> src/handle.rs:46:43
[INFO] [stderr]    |
[INFO] [stderr] 46 |         if !self.0.is_null() && self.0 != INVALID_HANDLE_VALUE {
[INFO] [stderr]    |                                           ^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `CloseHandle` in this scope
[INFO] [stderr]   --> src/handle.rs:47:22
[INFO] [stderr]    |
[INFO] [stderr] 47 |             unsafe { CloseHandle(self.0); }
[INFO] [stderr]    |                      ^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope
[INFO] [stderr]   --> src/handle.rs:54:46
[INFO] [stderr]    |
[INFO] [stderr] 54 |     pub unsafe fn from_raw_unchecked(handle: HANDLE) -> WinHandle {
[INFO] [stderr]    |                                              ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope
[INFO] [stderr]   --> src/handle.rs:65:29
[INFO] [stderr]    |
[INFO] [stderr] 65 |     pub fn from_raw(handle: HANDLE) -> Option<WinHandle> {
[INFO] [stderr]    |                             ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetHandleInformation` in this scope
[INFO] [stderr]   --> src/handle.rs:68:16
[INFO] [stderr]    |
[INFO] [stderr] 68 |             if GetHandleInformation(handle, &mut _flags) == TRUE {
[INFO] [stderr]    |                ^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope
[INFO] [stderr]   --> src/handle.rs:68:61
[INFO] [stderr]    |
[INFO] [stderr] 68 |             if GetHandleInformation(handle, &mut _flags) == TRUE {
[INFO] [stderr]    |                                                             ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0405]: cannot find trait `AsRawHandle` in this scope
[INFO] [stderr]   --> src/handle.rs:76:67
[INFO] [stderr]    |
[INFO] [stderr] 76 |     pub fn clone_from<T>(t: &T) -> io::Result<WinHandle> where T: AsRawHandle {
[INFO] [stderr]    |                                                                   ^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope
[INFO] [stderr]   --> src/handle.rs:80:35
[INFO] [stderr]    |
[INFO] [stderr] 80 |     pub fn clone_from_raw(handle: HANDLE) -> io::Result<WinHandle> {
[INFO] [stderr]    |                                   ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0405]: cannot find trait `AsRawHandle` in this scope
[INFO] [stderr]   --> src/handle.rs:84:117
[INFO] [stderr]    |
[INFO] [stderr] 84 |     pub fn clone_from_ex<T>(t: &T, inheritable: bool, access: ClonedHandleAccess) -> io::Result<WinHandle> where T: AsRawHandle
[INFO] [stderr]    |                                                                                                                     ^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope
[INFO] [stderr]   --> src/handle.rs:89:45
[INFO] [stderr]    |
[INFO] [stderr] 89 |     pub unsafe fn clone_from_raw_ex(handle: HANDLE, inheritable: bool, access: ClonedHandleAccess) -> io::Result<WinHandle> {
[INFO] [stderr]    |                                             ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `DUPLICATE_SAME_ACCESS` in this scope
[INFO] [stderr]   --> src/handle.rs:91:45
[INFO] [stderr]    |
[INFO] [stderr] 91 |             ClonedHandleAccess::Same => (0, DUPLICATE_SAME_ACCESS),
[INFO] [stderr]    |                                             ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `DuplicateHandle` in this scope
[INFO] [stderr]   --> src/handle.rs:96:32
[INFO] [stderr]    |
[INFO] [stderr] 96 |         winapi_bool_call!(log: DuplicateHandle(
[INFO] [stderr]    |                                ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetCurrentProcess` in this scope
[INFO] [stderr]   --> src/handle.rs:97:13
[INFO] [stderr]    |
[INFO] [stderr] 97 |             GetCurrentProcess(), handle,
[INFO] [stderr]    |             ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetCurrentProcess` in this scope
[INFO] [stderr]   --> src/handle.rs:98:13
[INFO] [stderr]    |
[INFO] [stderr] 98 |             GetCurrentProcess(), &mut *new_handle,
[INFO] [stderr]    |             ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope
[INFO] [stderr]    --> src/handle.rs:100:30
[INFO] [stderr]     |
[INFO] [stderr] 100 |             if inheritable { TRUE } else { FALSE },
[INFO] [stderr]     |                              ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope
[INFO] [stderr]    --> src/handle.rs:100:44
[INFO] [stderr]     |
[INFO] [stderr] 100 |             if inheritable { TRUE } else { FALSE },
[INFO] [stderr]     |                                            ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FALSE` in module `$crate::macros`
[INFO] [stderr]    --> src/macros.rs:13:30
[INFO] [stderr]     |
[INFO] [stderr] 13  |           ) == $crate::macros::FALSE {
[INFO] [stderr]     |                                ^^^^^ not found in `$crate::macros`
[INFO] [stderr]     | 
[INFO] [stderr]    ::: src/handle.rs:96:9
[INFO] [stderr]     |
[INFO] [stderr] 96  | /         winapi_bool_call!(log: DuplicateHandle(
[INFO] [stderr] 97  | |             GetCurrentProcess(), handle,
[INFO] [stderr] 98  | |             GetCurrentProcess(), &mut *new_handle,
[INFO] [stderr] 99  | |             access,
[INFO] [stderr] 100 | |             if inheritable { TRUE } else { FALSE },
[INFO] [stderr] 101 | |             flags,
[INFO] [stderr] 102 | |         ))?;
[INFO] [stderr]     | |__________- in this macro invocation
[INFO] [stderr]     |
[INFO] [stderr]     = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope
[INFO] [stderr]    --> src/handle.rs:107:30
[INFO] [stderr]     |
[INFO] [stderr] 107 |     pub fn into_raw(self) -> HANDLE {
[INFO] [stderr]     |                              ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `DUPLICATE_SAME_ACCESS` in this scope
[INFO] [stderr]    --> src/handle.rs:115:45
[INFO] [stderr]     |
[INFO] [stderr] 115 |             ClonedHandleAccess::Same => (0, DUPLICATE_SAME_ACCESS),
[INFO] [stderr]     |                                             ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `DUPLICATE_CLOSE_SOURCE` in this scope
[INFO] [stderr]    --> src/handle.rs:119:29
[INFO] [stderr]     |
[INFO] [stderr] 119 |         let flags = flags | DUPLICATE_CLOSE_SOURCE;
[INFO] [stderr]     |                             ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `DuplicateHandle` in this scope
[INFO] [stderr]    --> src/handle.rs:124:36
[INFO] [stderr]     |
[INFO] [stderr] 124 |             winapi_bool_call!(log: DuplicateHandle(
[INFO] [stderr]     |                                    ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetCurrentProcess` in this scope
[INFO] [stderr]    --> src/handle.rs:125:17
[INFO] [stderr]     |
[INFO] [stderr] 125 |                 GetCurrentProcess(), old_handle,
[INFO] [stderr]     |                 ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetCurrentProcess` in this scope
[INFO] [stderr]    --> src/handle.rs:126:17
[INFO] [stderr]     |
[INFO] [stderr] 126 |                 GetCurrentProcess(), &mut *new_handle,
[INFO] [stderr]     |                 ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope
[INFO] [stderr]    --> src/handle.rs:128:34
[INFO] [stderr]     |
[INFO] [stderr] 128 |                 if inheritable { TRUE } else { FALSE },
[INFO] [stderr]     |                                  ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope
[INFO] [stderr]    --> src/handle.rs:128:48
[INFO] [stderr]     |
[INFO] [stderr] 128 |                 if inheritable { TRUE } else { FALSE },
[INFO] [stderr]     |                                                ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FALSE` in module `$crate::macros`
[INFO] [stderr]    --> src/macros.rs:13:30
[INFO] [stderr]     |
[INFO] [stderr] 13  |           ) == $crate::macros::FALSE {
[INFO] [stderr]     |                                ^^^^^ not found in `$crate::macros`
[INFO] [stderr]     | 
[INFO] [stderr]    ::: src/handle.rs:124:13
[INFO] [stderr]     |
[INFO] [stderr] 124 | /             winapi_bool_call!(log: DuplicateHandle(
[INFO] [stderr] 125 | |                 GetCurrentProcess(), old_handle,
[INFO] [stderr] 126 | |                 GetCurrentProcess(), &mut *new_handle,
[INFO] [stderr] 127 | |                 access,
[INFO] [stderr] 128 | |                 if inheritable { TRUE } else { FALSE },
[INFO] [stderr] 129 | |                 flags,
[INFO] [stderr] 130 | |             ))?;
[INFO] [stderr]     | |______________- in this macro invocation
[INFO] [stderr]     |
[INFO] [stderr]     = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] error[E0405]: cannot find trait `AsRawHandle` in this scope
[INFO] [stderr]    --> src/handle.rs:147:50
[INFO] [stderr]     |
[INFO] [stderr] 147 |     pub fn from<T>(handle: &T) -> &Self where T: AsRawHandle {
[INFO] [stderr]     |                                                  ^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope
[INFO] [stderr]    --> src/handle.rs:152:50
[INFO] [stderr]     |
[INFO] [stderr] 152 |     pub unsafe fn from_raw_unchecked<'a>(handle: HANDLE) -> &'a Self {
[INFO] [stderr]     |                                                  ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope
[INFO] [stderr]    --> src/handle.rs:163:30
[INFO] [stderr]     |
[INFO] [stderr] 163 |     pub fn from_raw(handle: &HANDLE) -> Option<&Self> {
[INFO] [stderr]     |                              ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetHandleInformation` in this scope
[INFO] [stderr]    --> src/handle.rs:166:16
[INFO] [stderr]     |
[INFO] [stderr] 166 |             if GetHandleInformation(*handle, &mut _flags) == TRUE {
[INFO] [stderr]     |                ^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope
[INFO] [stderr]    --> src/handle.rs:166:62
[INFO] [stderr]     |
[INFO] [stderr] 166 |             if GetHandleInformation(*handle, &mut _flags) == TRUE {
[INFO] [stderr]     |                                                              ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope
[INFO] [stderr]    --> src/handle.rs:174:26
[INFO] [stderr]     |
[INFO] [stderr] 174 |     pub fn get(&self) -> HANDLE {
[INFO] [stderr]     |                          ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ULONG` in this scope
[INFO] [stderr]    --> src/handle.rs:191:36
[INFO] [stderr]     |
[INFO] [stderr] 191 |             let mut return_length: ULONG = 0;
[INFO] [stderr]     |                                    ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `PVOID` in this scope
[INFO] [stderr]    --> src/handle.rs:194:129
[INFO] [stderr]     |
[INFO] [stderr] 194 |             match HRESULT_FROM_NT(nt_query_object(self.get(), OBJECT_INFORMATION_CLASS::TypeInformation, buffer.as_mut_ptr() as PVOID, buffer.len() as ULONG, &mut return_length)) {
[INFO] [stderr]     |                                                                                                                                 ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ULONG` in this scope
[INFO] [stderr]    --> src/handle.rs:194:152
[INFO] [stderr]     |
[INFO] [stderr] 194 |             match HRESULT_FROM_NT(nt_query_object(self.get(), OBJECT_INFORMATION_CLASS::TypeInformation, buffer.as_mut_ptr() as PVOID, buffer.len() as ULONG, &mut return_length)) {
[INFO] [stderr]     |                                                                                                                                                        ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SUCCEEDED` in this scope
[INFO] [stderr]    --> src/handle.rs:195:22
[INFO] [stderr]     |
[INFO] [stderr] 195 |                 s if SUCCEEDED(s) => {},
[INFO] [stderr]     |                      ^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetFileType` in this scope
[INFO] [stderr]    --> src/handle.rs:208:38
[INFO] [stderr]     |
[INFO] [stderr] 208 |                     let kind = match GetFileType(self.get()) {
[INFO] [stderr]     |                                      ^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope
[INFO] [stderr]    --> src/handle.rs:213:32
[INFO] [stderr]     |
[INFO] [stderr] 213 | ...                   if GetLastError() != NO_ERROR {
[INFO] [stderr]     |                          ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `NO_ERROR` in this scope
[INFO] [stderr]    --> src/handle.rs:213:50
[INFO] [stderr]     |
[INFO] [stderr] 213 | ...                   if GetLastError() != NO_ERROR {
[INFO] [stderr]     |                                            ^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ULONG` in this scope
[INFO] [stderr]    --> src/handle.rs:245:36
[INFO] [stderr]     |
[INFO] [stderr] 245 |             let mut return_length: ULONG = 0;
[INFO] [stderr]     |                                    ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `PVOID` in this scope
[INFO] [stderr]    --> src/handle.rs:248:129
[INFO] [stderr]     |
[INFO] [stderr] 248 |             match HRESULT_FROM_NT(nt_query_object(self.get(), OBJECT_INFORMATION_CLASS::NameInformation, buffer.as_mut_ptr() as PVOID, buffer.len() as ULONG, &mut return_length)) {
[INFO] [stderr]     |                                                                                                                                 ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ULONG` in this scope
[INFO] [stderr]    --> src/handle.rs:248:152
[INFO] [stderr]     |
[INFO] [stderr] 248 |             match HRESULT_FROM_NT(nt_query_object(self.get(), OBJECT_INFORMATION_CLASS::NameInformation, buffer.as_mut_ptr() as PVOID, buffer.len() as ULONG, &mut return_length)) {
[INFO] [stderr]     |                                                                                                                                                        ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SUCCEEDED` in this scope
[INFO] [stderr]    --> src/handle.rs:249:22
[INFO] [stderr]     |
[INFO] [stderr] 249 |                 s if SUCCEEDED(s) => {},
[INFO] [stderr]     |                      ^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ACCESS_MASK` in this scope
[INFO] [stderr]    --> src/handle.rs:265:45
[INFO] [stderr]     |
[INFO] [stderr] 146 | impl WinHandleRef {
[INFO] [stderr]     |     - help: you might be missing a type parameter: `<ACCESS_MASK>`
[INFO] [stderr] ...
[INFO] [stderr] 265 |     pub fn access_mask(&self) -> io::Result<ACCESS_MASK> {
[INFO] [stderr]     |                                             ^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ULONG` in this scope
[INFO] [stderr]    --> src/handle.rs:270:46
[INFO] [stderr]     |
[INFO] [stderr] 146 | impl WinHandleRef {
[INFO] [stderr]     |     - help: you might be missing a type parameter: `<ULONG>`
[INFO] [stderr] ...
[INFO] [stderr] 270 |     pub fn handle_count(&self) -> io::Result<ULONG> {
[INFO] [stderr]     |                                              ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ULONG` in this scope
[INFO] [stderr]    --> src/handle.rs:280:36
[INFO] [stderr]     |
[INFO] [stderr] 280 |             let mut return_length: ULONG = 0;
[INFO] [stderr]     |                                    ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `PVOID` in this scope
[INFO] [stderr]    --> src/handle.rs:282:136
[INFO] [stderr]     |
[INFO] [stderr] 282 |             match HRESULT_FROM_NT(nt_query_object(self.get(), OBJECT_INFORMATION_CLASS::BasicInformation, &mut basic_info as *mut _ as PVOID, mem::size_of_val(&basic_info) as ULONG, &mut return_length)) {
[INFO] [stderr]     |                                                                                                                                        ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ULONG` in this scope
[INFO] [stderr]    --> src/handle.rs:282:176
[INFO] [stderr]     |
[INFO] [stderr] 282 |             match HRESULT_FROM_NT(nt_query_object(self.get(), OBJECT_INFORMATION_CLASS::BasicInformation, &mut basic_info as *mut _ as PVOID, mem::size_of_val(&basic_info) as ULONG, &mut return_length)) {
[INFO] [stderr]     |                                                                                                                                                                                ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SUCCEEDED` in this scope
[INFO] [stderr]    --> src/handle.rs:283:22
[INFO] [stderr]     |
[INFO] [stderr] 283 |                 s if SUCCEEDED(s) => {},
[INFO] [stderr]     |                      ^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0405]: cannot find trait `AsRawHandle` in this scope
[INFO] [stderr]    --> src/handle.rs:295:6
[INFO] [stderr]     |
[INFO] [stderr] 295 | impl AsRawHandle for WinHandle {
[INFO] [stderr]     |      ^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `RawHandle` in this scope
[INFO] [stderr]    --> src/handle.rs:296:32
[INFO] [stderr]     |
[INFO] [stderr] 20  | pub struct WinHandle(HANDLE);
[INFO] [stderr]     | ----------------------------- similarly named struct `WinHandle` defined here
[INFO] [stderr] ...
[INFO] [stderr] 296 |     fn as_raw_handle(&self) -> RawHandle { unsafe { mem::transmute(self.get()) } }
[INFO] [stderr]     |                                ^^^^^^^^^ help: a struct with a similar name exists: `WinHandle`
[INFO] [stderr] 
[INFO] [stderr] error[E0405]: cannot find trait `AsRawHandle` in this scope
[INFO] [stderr]    --> src/handle.rs:299:6
[INFO] [stderr]     |
[INFO] [stderr] 299 | impl AsRawHandle for WinHandleRef {
[INFO] [stderr]     |      ^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `RawHandle` in this scope
[INFO] [stderr]    --> src/handle.rs:300:32
[INFO] [stderr]     |
[INFO] [stderr] 20  | pub struct WinHandle(HANDLE);
[INFO] [stderr]     | ----------------------------- similarly named struct `WinHandle` defined here
[INFO] [stderr] ...
[INFO] [stderr] 300 |     fn as_raw_handle(&self) -> RawHandle { unsafe { mem::transmute(self.get()) } }
[INFO] [stderr]     |                                ^^^^^^^^^ help: a struct with a similar name exists: `WinHandle`
[INFO] [stderr] 
[INFO] [stderr] error[E0405]: cannot find trait `IntoRawHandle` in this scope
[INFO] [stderr]    --> src/handle.rs:303:40
[INFO] [stderr]     |
[INFO] [stderr] 303 | impl<T> From<T> for WinHandle where T: IntoRawHandle {
[INFO] [stderr]     |                                        ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/handle.rs:333:14
[INFO] [stderr]     |
[INFO] [stderr] 333 |     Explicit(DWORD),
[INFO] [stderr]     |              ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope
[INFO] [stderr]    --> src/handle.rs:368:19
[INFO] [stderr]     |
[INFO] [stderr] 368 |     type Target = HANDLE;
[INFO] [stderr]     |                   ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope
[INFO] [stderr]    --> src/handle.rs:370:25
[INFO] [stderr]     |
[INFO] [stderr] 370 |     fn deref(&self) -> &HANDLE {
[INFO] [stderr]     |                         ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope
[INFO] [stderr]    --> src/handle.rs:376:37
[INFO] [stderr]     |
[INFO] [stderr] 376 |     fn deref_mut(&mut self) -> &mut HANDLE {
[INFO] [stderr]     |                                     ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/handle.rs:402:11
[INFO] [stderr]     |
[INFO] [stderr] 402 |     Other(DWORD),
[INFO] [stderr]     |           ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetCurrentProcess` in this scope
[INFO] [stderr]    --> src/handle.rs:422:46
[INFO] [stderr]     |
[INFO] [stderr] 422 |             let handle = WinHandle::from_raw(GetCurrentProcess()).unwrap();
[INFO] [stderr]     |                                              ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetCurrentProcess` in this scope
[INFO] [stderr]    --> src/handle.rs:423:24
[INFO] [stderr]     |
[INFO] [stderr] 423 |             assert_eq!(GetCurrentProcess(), handle.get());
[INFO] [stderr]     |                        ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FILE_READ_DATA` in this scope
[INFO] [stderr]    --> src/handle.rs:454:90
[INFO] [stderr]     |
[INFO] [stderr] 454 |         let handle = WinHandle::clone_from_ex(&file, false, ClonedHandleAccess::Explicit(FILE_READ_DATA)).unwrap();
[INFO] [stderr]     |                                                                                          ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FILE_READ_DATA` in this scope
[INFO] [stderr]    --> src/handle.rs:455:20
[INFO] [stderr]     |
[INFO] [stderr] 455 |         assert_eq!(FILE_READ_DATA, handle.access_mask().unwrap());
[INFO] [stderr]     |                    ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `CreatePipe` in this scope
[INFO] [stderr]    --> src/handle.rs:477:39
[INFO] [stderr]     |
[INFO] [stderr] 477 |             winapi_bool_call!(assert: CreatePipe(
[INFO] [stderr]     |                                       ^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FALSE` in module `$crate::macros`
[INFO] [stderr]    --> src/macros.rs:24:30
[INFO] [stderr]     |
[INFO] [stderr] 24  |           ) == $crate::macros::FALSE {
[INFO] [stderr]     |                                ^^^^^ not found in `$crate::macros`
[INFO] [stderr]     | 
[INFO] [stderr]    ::: src/handle.rs:477:13
[INFO] [stderr]     |
[INFO] [stderr] 477 | /             winapi_bool_call!(assert: CreatePipe(
[INFO] [stderr] 478 | |                 &mut *read_pipe,
[INFO] [stderr] 479 | |                 &mut *write_pipe,
[INFO] [stderr] 480 | |                 ptr::null_mut(),
[INFO] [stderr] 481 | |                 0,
[INFO] [stderr] 482 | |             ));
[INFO] [stderr]     | |_______________- in this macro invocation
[INFO] [stderr]     |
[INFO] [stderr]     = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `CreateMutexW` in this scope
[INFO] [stderr]    --> src/handle.rs:491:53
[INFO] [stderr]     |
[INFO] [stderr] 491 |             let mutex = winapi_handle_call!(assert: CreateMutexW(
[INFO] [stderr]     |                                                     ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope
[INFO] [stderr]    --> src/handle.rs:493:17
[INFO] [stderr]     |
[INFO] [stderr] 493 |                 FALSE,
[INFO] [stderr]     |                 ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in module `$crate::macros`
[INFO] [stderr]    --> src/macros.rs:43:120
[INFO] [stderr]     |
[INFO] [stderr] 43  |       { $mode:ident: $func:ident($($x:expr),* $(,)*) } => { winapi_handle_call!($mode: $func($($x),*) != $crate::macros::INVALID_HANDLE_VALUE, ::std::ptr::null_mut()) };
[INFO] [stderr]     |                                                                                                                          ^^^^^^^^^^^^^^^^^^^^ not found in `$crate::macros`
[INFO] [stderr]     | 
[INFO] [stderr]    ::: src/handle.rs:491:25
[INFO] [stderr]     |
[INFO] [stderr] 491 |               let mutex = winapi_handle_call!(assert: CreateMutexW(
[INFO] [stderr]     |  _________________________-
[INFO] [stderr] 492 | |                 ptr::null_mut(),
[INFO] [stderr] 493 | |                 FALSE,
[INFO] [stderr] 494 | |                 ptr::null(),
[INFO] [stderr] 495 | |             ));
[INFO] [stderr]     | |______________- in this macro invocation
[INFO] [stderr]     |
[INFO] [stderr]     = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `CreateSemaphoreW` in this scope
[INFO] [stderr]    --> src/handle.rs:503:53
[INFO] [stderr]     |
[INFO] [stderr] 503 |             let mutex = winapi_handle_call!(assert: CreateSemaphoreW(
[INFO] [stderr]     |                                                     ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in module `$crate::macros`
[INFO] [stderr]    --> src/macros.rs:43:120
[INFO] [stderr]     |
[INFO] [stderr] 43  |       { $mode:ident: $func:ident($($x:expr),* $(,)*) } => { winapi_handle_call!($mode: $func($($x),*) != $crate::macros::INVALID_HANDLE_VALUE, ::std::ptr::null_mut()) };
[INFO] [stderr]     |                                                                                                                          ^^^^^^^^^^^^^^^^^^^^ not found in `$crate::macros`
[INFO] [stderr]     | 
[INFO] [stderr]    ::: src/handle.rs:503:25
[INFO] [stderr]     |
[INFO] [stderr] 503 |               let mutex = winapi_handle_call!(assert: CreateSemaphoreW(
[INFO] [stderr]     |  _________________________-
[INFO] [stderr] 504 | |                 ptr::null_mut(),
[INFO] [stderr] 505 | |                 0,
[INFO] [stderr] 506 | |                 1,
[INFO] [stderr] 507 | |                 ptr::null(),
[INFO] [stderr] 508 | |             ));
[INFO] [stderr]     | |______________- in this macro invocation
[INFO] [stderr]     |
[INFO] [stderr]     = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `CreateEventW` in this scope
[INFO] [stderr]    --> src/handle.rs:516:53
[INFO] [stderr]     |
[INFO] [stderr] 516 |             let mutex = winapi_handle_call!(assert: CreateEventW(
[INFO] [stderr]     |                                                     ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope
[INFO] [stderr]    --> src/handle.rs:518:17
[INFO] [stderr]     |
[INFO] [stderr] 518 |                 TRUE,
[INFO] [stderr]     |                 ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope
[INFO] [stderr]    --> src/handle.rs:519:17
[INFO] [stderr]     |
[INFO] [stderr] 519 |                 TRUE,
[INFO] [stderr]     |                 ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in module `$crate::macros`
[INFO] [stderr]    --> src/macros.rs:43:120
[INFO] [stderr]     |
[INFO] [stderr] 43  |       { $mode:ident: $func:ident($($x:expr),* $(,)*) } => { winapi_handle_call!($mode: $func($($x),*) != $crate::macros::INVALID_HANDLE_VALUE, ::std::ptr::null_mut()) };
[INFO] [stderr]     |                                                                                                                          ^^^^^^^^^^^^^^^^^^^^ not found in `$crate::macros`
[INFO] [stderr]     | 
[INFO] [stderr]    ::: src/handle.rs:516:25
[INFO] [stderr]     |
[INFO] [stderr] 516 |               let mutex = winapi_handle_call!(assert: CreateEventW(
[INFO] [stderr]     |  _________________________-
[INFO] [stderr] 517 | |                 ptr::null_mut(),
[INFO] [stderr] 518 | |                 TRUE,
[INFO] [stderr] 519 | |                 TRUE,
[INFO] [stderr] 520 | |                 ptr::null(),
[INFO] [stderr] 521 | |             ));
[INFO] [stderr]     | |______________- in this macro invocation
[INFO] [stderr]     |
[INFO] [stderr]     = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetCurrentProcess` in this scope
[INFO] [stderr]    --> src/handle.rs:529:46
[INFO] [stderr]     |
[INFO] [stderr] 529 |             let handle = WinHandle::from_raw(GetCurrentProcess()).unwrap();
[INFO] [stderr]     |                                              ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetCurrentThread` in this scope
[INFO] [stderr]    --> src/handle.rs:538:46
[INFO] [stderr]     |
[INFO] [stderr] 538 |             let handle = WinHandle::from_raw(GetCurrentThread()).unwrap();
[INFO] [stderr]     |                                              ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `OpenProcessToken` in this scope
[INFO] [stderr]    --> src/handle.rs:547:39
[INFO] [stderr]     |
[INFO] [stderr] 547 |             winapi_bool_call!(assert: OpenProcessToken(
[INFO] [stderr]     |                                       ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetCurrentProcess` in this scope
[INFO] [stderr]    --> src/handle.rs:548:17
[INFO] [stderr]     |
[INFO] [stderr] 548 |                 GetCurrentProcess(),
[INFO] [stderr]     |                 ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `TOKEN_ALL_ACCESS` in this scope
[INFO] [stderr]    --> src/handle.rs:549:17
[INFO] [stderr]     |
[INFO] [stderr] 549 |                 TOKEN_ALL_ACCESS,
[INFO] [stderr]     |                 ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FALSE` in module `$crate::macros`
[INFO] [stderr]    --> src/macros.rs:24:30
[INFO] [stderr]     |
[INFO] [stderr] 24  |           ) == $crate::macros::FALSE {
[INFO] [stderr]     |                                ^^^^^ not found in `$crate::macros`
[INFO] [stderr]     | 
[INFO] [stderr]    ::: src/handle.rs:547:13
[INFO] [stderr]     |
[INFO] [stderr] 547 | /             winapi_bool_call!(assert: OpenProcessToken(
[INFO] [stderr] 548 | |                 GetCurrentProcess(),
[INFO] [stderr] 549 | |                 TOKEN_ALL_ACCESS,
[INFO] [stderr] 550 | |                 &mut *handle,
[INFO] [stderr] 551 | |             ));
[INFO] [stderr]     | |_______________- in this macro invocation
[INFO] [stderr]     |
[INFO] [stderr]     = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `CreateJobObjectW` in this scope
[INFO] [stderr]    --> src/handle.rs:560:54
[INFO] [stderr]     |
[INFO] [stderr] 560 |             let handle = winapi_handle_call!(assert: CreateJobObjectW(
[INFO] [stderr]     |                                                      ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in module `$crate::macros`
[INFO] [stderr]    --> src/macros.rs:43:120
[INFO] [stderr]     |
[INFO] [stderr] 43  |       { $mode:ident: $func:ident($($x:expr),* $(,)*) } => { winapi_handle_call!($mode: $func($($x),*) != $crate::macros::INVALID_HANDLE_VALUE, ::std::ptr::null_mut()) };
[INFO] [stderr]     |                                                                                                                          ^^^^^^^^^^^^^^^^^^^^ not found in `$crate::macros`
[INFO] [stderr]     | 
[INFO] [stderr]    ::: src/handle.rs:560:26
[INFO] [stderr]     |
[INFO] [stderr] 560 |               let handle = winapi_handle_call!(assert: CreateJobObjectW(
[INFO] [stderr]     |  __________________________-
[INFO] [stderr] 561 | |                 ptr::null_mut(), ptr::null_mut(),
[INFO] [stderr] 562 | |             ));
[INFO] [stderr]     | |______________- in this macro invocation
[INFO] [stderr]     |
[INFO] [stderr]     = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetThreadDesktop` in this scope
[INFO] [stderr]    --> src/handle.rs:570:46
[INFO] [stderr]     |
[INFO] [stderr] 570 |             let handle = WinHandle::from_raw(GetThreadDesktop(
[INFO] [stderr]     |                                              ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetCurrentThreadId` in this scope
[INFO] [stderr]    --> src/handle.rs:571:17
[INFO] [stderr]     |
[INFO] [stderr] 571 |                 GetCurrentThreadId(),
[INFO] [stderr]     |                 ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HWINSTA` in this scope
[INFO] [stderr]    --> src/handle.rs:587:41
[INFO] [stderr]     |
[INFO] [stderr] 587 |         fn GetProcessWindowStation() -> HWINSTA;
[INFO] [stderr]     |                                         ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IUnknown` in this scope
[INFO] [stderr]  --> src/comptr.rs:7:27
[INFO] [stderr]   |
[INFO] [stderr] 7 | pub struct ComPtr<T>(*mut IUnknown, PhantomData<T>);
[INFO] [stderr]   |                           ^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IUnknown` in this scope
[INFO] [stderr]  --> src/comptr.rs:8:33
[INFO] [stderr]   |
[INFO] [stderr] 8 | pub struct ComPtrTarget<T>(*mut IUnknown, PhantomData<T>);
[INFO] [stderr]   |                                 ^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IUnknown` in this scope
[INFO] [stderr]   --> src/comptr.rs:26:28
[INFO] [stderr]    |
[INFO] [stderr] 26 |         ComPtr(raw as *mut IUnknown, PhantomData)
[INFO] [stderr]    |                            ^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IUnknown` in this scope
[INFO] [stderr]   --> src/comptr.rs:30:24
[INFO] [stderr]    |
[INFO] [stderr] 30 |         (*(raw as *mut IUnknown)).AddRef();
[INFO] [stderr]    |                        ^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IUnknown` in this scope
[INFO] [stderr]   --> src/comptr.rs:31:28
[INFO] [stderr]    |
[INFO] [stderr] 31 |         ComPtr(raw as *mut IUnknown, PhantomData)
[INFO] [stderr]    |                            ^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IUnknown` in this scope
[INFO] [stderr]   --> src/comptr.rs:44:62
[INFO] [stderr]    |
[INFO] [stderr] 39 | impl<T> ComPtrTarget<T> {
[INFO] [stderr]    |       - help: you might be missing a type parameter: `, IUnknown`
[INFO] [stderr] ...
[INFO] [stderr] 44 |     pub unsafe fn as_unknown(&mut self) -> &mut ComPtrTarget<IUnknown> {
[INFO] [stderr]    |                                                              ^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IUnknown` in this scope
[INFO] [stderr]   --> src/comptr.rs:45:66
[INFO] [stderr]    |
[INFO] [stderr] 39 | impl<T> ComPtrTarget<T> {
[INFO] [stderr]    |       - help: you might be missing a type parameter: `, IUnknown`
[INFO] [stderr] ...
[INFO] [stderr] 45 |         &mut *(self as *mut ComPtrTarget<T> as *mut ComPtrTarget<IUnknown>)
[INFO] [stderr]    |                                                                  ^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IUnknown` in this scope
[INFO] [stderr]   --> src/comptr.rs:77:44
[INFO] [stderr]    |
[INFO] [stderr] 77 |         unsafe { &*(&self.0 as *const *mut IUnknown as *const *mut T) }
[INFO] [stderr]    |                                            ^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IUnknown` in this scope
[INFO] [stderr]   --> src/comptr.rs:83:50
[INFO] [stderr]    |
[INFO] [stderr] 83 |         unsafe { &mut *(&mut self.0 as *mut *mut IUnknown as *mut *mut T) }
[INFO] [stderr]    |                                                  ^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `LocalFree` in this scope
[INFO] [stderr]   --> src/mem.rs:10:18
[INFO] [stderr]    |
[INFO] [stderr] 10 |         unsafe { LocalFree(self.0 as _); } 
[INFO] [stderr]    |                  ^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]   --> src/sys.rs:12:27
[INFO] [stderr]    |
[INFO] [stderr] 12 | pub fn HRESULT_FROM_NT(x: DWORD) -> HRESULT {
[INFO] [stderr]    |                           ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HRESULT` in this scope
[INFO] [stderr]   --> src/sys.rs:12:37
[INFO] [stderr]    |
[INFO] [stderr] 12 | pub fn HRESULT_FROM_NT(x: DWORD) -> HRESULT {
[INFO] [stderr]    |                                     ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]   --> src/sys.rs:13:28
[INFO] [stderr]    |
[INFO] [stderr] 13 |     const FACILITY_NT_BIT: DWORD = 0x10000000;
[INFO] [stderr]    |                            ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HRESULT` in this scope
[INFO] [stderr]   --> src/sys.rs:15:30
[INFO] [stderr]    |
[INFO] [stderr] 15 |     (x | FACILITY_NT_BIT) as HRESULT
[INFO] [stderr]    |                              ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope
[INFO] [stderr]   --> src/sys.rs:19:13
[INFO] [stderr]    |
[INFO] [stderr] 19 |     handle: HANDLE,
[INFO] [stderr]    |             ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `PVOID` in this scope
[INFO] [stderr]   --> src/sys.rs:21:25
[INFO] [stderr]    |
[INFO] [stderr] 21 |     object_information: PVOID,
[INFO] [stderr]    |                         ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ULONG` in this scope
[INFO] [stderr]   --> src/sys.rs:22:32
[INFO] [stderr]    |
[INFO] [stderr] 22 |     object_information_length: ULONG,
[INFO] [stderr]    |                                ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `PULONG` in this scope
[INFO] [stderr]   --> src/sys.rs:23:20
[INFO] [stderr]    |
[INFO] [stderr] 23 |     return_length: PULONG,
[INFO] [stderr]    |                    ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]   --> src/sys.rs:24:6
[INFO] [stderr]    |
[INFO] [stderr] 24 | ) -> DWORD;
[INFO] [stderr]    |      ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]   --> src/sys.rs:26:38
[INFO] [stderr]    |
[INFO] [stderr] 26 | const GET_MODULE_HANDLE_EX_FLAG_PIN: DWORD = 0x1;
[INFO] [stderr]    |                                      ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HMODULE` in this scope
[INFO] [stderr]   --> src/sys.rs:30:25
[INFO] [stderr]    |
[INFO] [stderr] 30 |         let mut handle: HMODULE = ptr::null_mut();
[INFO] [stderr]    |                         ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleExW` in this scope
[INFO] [stderr]   --> src/sys.rs:31:33
[INFO] [stderr]    |
[INFO] [stderr] 31 |         match winapi_bool_call!(GetModuleHandleExW(
[INFO] [stderr]    |                                 ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FALSE` in module `$crate::macros`
[INFO] [stderr]   --> src/macros.rs:32:30
[INFO] [stderr]    |
[INFO] [stderr] 32 |           ) == $crate::macros::FALSE {
[INFO] [stderr]    |                                ^^^^^ not found in `$crate::macros`
[INFO] [stderr]    | 
[INFO] [stderr]   ::: src/sys.rs:31:15
[INFO] [stderr]    |
[INFO] [stderr] 31 |           match winapi_bool_call!(GetModuleHandleExW(
[INFO] [stderr]    |  _______________-
[INFO] [stderr] 32 | |             GET_MODULE_HANDLE_EX_FLAG_PIN,
[INFO] [stderr] 33 | |             WideCString::from_str("ntdll.dll").unwrap().as_ptr(),
[INFO] [stderr] 34 | |             &mut handle,
[INFO] [stderr] 35 | |         )) {
[INFO] [stderr]    | |__________- in this macro invocation
[INFO] [stderr]    |
[INFO] [stderr]    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcAddress` in this scope
[INFO] [stderr]   --> src/sys.rs:48:19
[INFO] [stderr]    |
[INFO] [stderr] 48 |             match GetProcAddress(*nt_dll, b"NtQueryObject\0".as_ptr() as LPSTR) {
[INFO] [stderr]    |                   ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LPSTR` in this scope
[INFO] [stderr]   --> src/sys.rs:48:74
[INFO] [stderr]    |
[INFO] [stderr] 48 |             match GetProcAddress(*nt_dll, b"NtQueryObject\0".as_ptr() as LPSTR) {
[INFO] [stderr]    |                                                                          ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ULONG` in this scope
[INFO] [stderr]   --> src/sys.rs:69:21
[INFO] [stderr]    |
[INFO] [stderr] 69 |     pub Attributes: ULONG,
[INFO] [stderr]    |                     ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ACCESS_MASK` in this scope
[INFO] [stderr]   --> src/sys.rs:70:24
[INFO] [stderr]    |
[INFO] [stderr] 70 |     pub GrantedAccess: ACCESS_MASK,
[INFO] [stderr]    |                        ^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ULONG` in this scope
[INFO] [stderr]   --> src/sys.rs:71:22
[INFO] [stderr]    |
[INFO] [stderr] 71 |     pub HandleCount: ULONG,
[INFO] [stderr]    |                      ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ULONG` in this scope
[INFO] [stderr]   --> src/sys.rs:72:23
[INFO] [stderr]    |
[INFO] [stderr] 72 |     pub PointerCount: ULONG,
[INFO] [stderr]    |                       ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ULONG` in this scope
[INFO] [stderr]   --> src/sys.rs:73:16
[INFO] [stderr]    |
[INFO] [stderr] 73 |     Reserved: [ULONG; 10],
[INFO] [stderr]    |                ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `UNICODE_STRING` in this scope
[INFO] [stderr]   --> src/sys.rs:78:19
[INFO] [stderr]    |
[INFO] [stderr] 78 |     pub TypeName: UNICODE_STRING,
[INFO] [stderr]    |                   ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ULONG` in this scope
[INFO] [stderr]   --> src/sys.rs:79:16
[INFO] [stderr]    |
[INFO] [stderr] 79 |     Reserved: [ULONG; 22],
[INFO] [stderr]    |                ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `UNICODE_STRING` in this scope
[INFO] [stderr]   --> src/sys.rs:84:15
[INFO] [stderr]    |
[INFO] [stderr] 84 |     pub Name: UNICODE_STRING,
[INFO] [stderr]    |               ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HMODULE` in this scope
[INFO] [stderr]   --> src/sys.rs:89:23
[INFO] [stderr]    |
[INFO] [stderr] 89 | struct HModuleWrapper(HMODULE);
[INFO] [stderr]    |                       ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HMODULE` in this scope
[INFO] [stderr]   --> src/sys.rs:94:19
[INFO] [stderr]    |
[INFO] [stderr] 94 |     type Target = HMODULE;
[INFO] [stderr]    |                   ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HMODULE` in this scope
[INFO] [stderr]   --> src/sys.rs:96:25
[INFO] [stderr]    |
[INFO] [stderr] 96 |     fn deref(&self) -> &HMODULE {
[INFO] [stderr]    |                         ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error: attribute must be of the form `#[link(name = "...", /*opt*/ kind = "dylib|static|...", /*opt*/ wasm_import_module = "...")]`
[INFO] [stderr]    --> src/handle.rs:585:5
[INFO] [stderr]     |
[INFO] [stderr] 585 |     #[link = "user32.dll"]
[INFO] [stderr]     |     ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[deny(ill_formed_attribute_input)]` on by default
[INFO] [stderr]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stderr]     = note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571>
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary trailing semicolon
[INFO] [stderr]    --> src/macros.rs:190:56
[INFO] [stderr]     |
[INFO] [stderr] 190 |       ( $($s:stmt;)* ) => { catch_panic_hresult! { { $($s;)* #[allow(unreachable_code)] $crate::macros::S_OK } } };
[INFO] [stderr]     |                                                          ^ help: remove this semicolon
[INFO] [stderr] ...
[INFO] [stderr] 250 |           let result = catch_panic_hresult! {
[INFO] [stderr]     |  ______________________-
[INFO] [stderr] 251 | |             panic!("error!");
[INFO] [stderr] 252 | |         };
[INFO] [stderr]     | |_________- in this macro invocation
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(redundant_semicolons)]` on by default
[INFO] [stderr]     = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope
[INFO] [stderr]   --> src/handle.rs:20:22
[INFO] [stderr]    |
[INFO] [stderr] 20 | pub struct WinHandle(HANDLE);
[INFO] [stderr]    |                      ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope
[INFO] [stderr]   --> src/handle.rs:36:43
[INFO] [stderr]    |
[INFO] [stderr] 36 |         if !self.0.is_null() && self.0 != INVALID_HANDLE_VALUE {
[INFO] [stderr]    |                                           ^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `CloseHandle` in this scope
[INFO] [stderr]   --> src/handle.rs:37:22
[INFO] [stderr]    |
[INFO] [stderr] 37 |             unsafe { CloseHandle(self.0); }
[INFO] [stderr]    |                      ^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope
[INFO] [stderr]   --> src/handle.rs:42:28
[INFO] [stderr]    |
[INFO] [stderr] 42 | pub struct WinHandleTarget(HANDLE);
[INFO] [stderr]    |                            ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope
[INFO] [stderr]   --> src/handle.rs:46:43
[INFO] [stderr]    |
[INFO] [stderr] 46 |         if !self.0.is_null() && self.0 != INVALID_HANDLE_VALUE {
[INFO] [stderr]    |                                           ^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `CloseHandle` in this scope
[INFO] [stderr]   --> src/handle.rs:47:22
[INFO] [stderr]    |
[INFO] [stderr] 47 |             unsafe { CloseHandle(self.0); }
[INFO] [stderr]    |                      ^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope
[INFO] [stderr]   --> src/handle.rs:54:46
[INFO] [stderr]    |
[INFO] [stderr] 54 |     pub unsafe fn from_raw_unchecked(handle: HANDLE) -> WinHandle {
[INFO] [stderr]    |                                              ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope
[INFO] [stderr]   --> src/handle.rs:65:29
[INFO] [stderr]    |
[INFO] [stderr] 65 |     pub fn from_raw(handle: HANDLE) -> Option<WinHandle> {
[INFO] [stderr]    |                             ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetHandleInformation` in this scope
[INFO] [stderr]   --> src/handle.rs:68:16
[INFO] [stderr]    |
[INFO] [stderr] 68 |             if GetHandleInformation(handle, &mut _flags) == TRUE {
[INFO] [stderr]    |                ^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope
[INFO] [stderr]   --> src/handle.rs:68:61
[INFO] [stderr]    |
[INFO] [stderr] 68 |             if GetHandleInformation(handle, &mut _flags) == TRUE {
[INFO] [stderr]    |                                                             ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0405]: cannot find trait `AsRawHandle` in this scope
[INFO] [stderr]   --> src/handle.rs:76:67
[INFO] [stderr]    |
[INFO] [stderr] 76 |     pub fn clone_from<T>(t: &T) -> io::Result<WinHandle> where T: AsRawHandle {
[INFO] [stderr]    |                                                                   ^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope
[INFO] [stderr]   --> src/handle.rs:80:35
[INFO] [stderr]    |
[INFO] [stderr] 80 |     pub fn clone_from_raw(handle: HANDLE) -> io::Result<WinHandle> {
[INFO] [stderr]    |                                   ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0405]: cannot find trait `AsRawHandle` in this scope
[INFO] [stderr]   --> src/handle.rs:84:117
[INFO] [stderr]    |
[INFO] [stderr] 84 |     pub fn clone_from_ex<T>(t: &T, inheritable: bool, access: ClonedHandleAccess) -> io::Result<WinHandle> where T: AsRawHandle
[INFO] [stderr]    |                                                                                                                     ^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope
[INFO] [stderr]   --> src/handle.rs:89:45
[INFO] [stderr]    |
[INFO] [stderr] 89 |     pub unsafe fn clone_from_raw_ex(handle: HANDLE, inheritable: bool, access: ClonedHandleAccess) -> io::Result<WinHandle> {
[INFO] [stderr]    |                                             ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `DUPLICATE_SAME_ACCESS` in this scope
[INFO] [stderr]   --> src/handle.rs:91:45
[INFO] [stderr]    |
[INFO] [stderr] 91 |             ClonedHandleAccess::Same => (0, DUPLICATE_SAME_ACCESS),
[INFO] [stderr]    |                                             ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `DuplicateHandle` in this scope
[INFO] [stderr]   --> src/handle.rs:96:32
[INFO] [stderr]    |
[INFO] [stderr] 96 |         winapi_bool_call!(log: DuplicateHandle(
[INFO] [stderr]    |                                ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetCurrentProcess` in this scope
[INFO] [stderr]   --> src/handle.rs:97:13
[INFO] [stderr]    |
[INFO] [stderr] 97 |             GetCurrentProcess(), handle,
[INFO] [stderr]    |             ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetCurrentProcess` in this scope
[INFO] [stderr]   --> src/handle.rs:98:13
[INFO] [stderr]    |
[INFO] [stderr] 98 |             GetCurrentProcess(), &mut *new_handle,
[INFO] [stderr]    |             ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope
[INFO] [stderr]    --> src/handle.rs:100:30
[INFO] [stderr]     |
[INFO] [stderr] 100 |             if inheritable { TRUE } else { FALSE },
[INFO] [stderr]     |                              ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope
[INFO] [stderr]    --> src/handle.rs:100:44
[INFO] [stderr]     |
[INFO] [stderr] 100 |             if inheritable { TRUE } else { FALSE },
[INFO] [stderr]     |                                            ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred
[INFO] [stderr]   --> src/sys.rs:28:1
[INFO] [stderr]    |
[INFO] [stderr] 28 | / lazy_static! {
[INFO] [stderr] 29 | |     static ref NT_DLL_HANDLE: Option<HModuleWrapper> = unsafe {
[INFO] [stderr] 30 | |         let mut handle: HMODULE = ptr::null_mut();
[INFO] [stderr] 31 | |         match winapi_bool_call!(GetModuleHandleExW(
[INFO] [stderr] ...  |
[INFO] [stderr] 42 | |     };
[INFO] [stderr] 43 | | }
[INFO] [stderr]    | |_^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(deprecated)]` on by default
[INFO] [stderr]    = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred
[INFO] [stderr]   --> src/sys.rs:45:1
[INFO] [stderr]    |
[INFO] [stderr] 45 | / lazy_static! {
[INFO] [stderr] 46 | |     pub static ref NtQueryObject: Option<NtQueryObjectFn> = unsafe {
[INFO] [stderr] 47 | |         NT_DLL_HANDLE.and_then(|nt_dll| {
[INFO] [stderr] 48 | |             match GetProcAddress(*nt_dll, b"NtQueryObject\0".as_ptr() as LPSTR) {
[INFO] [stderr] ...  |
[INFO] [stderr] 56 | |     };
[INFO] [stderr] 57 | | }
[INFO] [stderr]    | |_^
[INFO] [stderr]    |
[INFO] [stderr]    = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FALSE` in module `$crate::macros`
[INFO] [stderr]    --> src/macros.rs:13:30
[INFO] [stderr]     |
[INFO] [stderr] 13  |           ) == $crate::macros::FALSE {
[INFO] [stderr]     |                                ^^^^^ not found in `$crate::macros`
[INFO] [stderr]     | 
[INFO] [stderr]    ::: src/handle.rs:96:9
[INFO] [stderr]     |
[INFO] [stderr] 96  | /         winapi_bool_call!(log: DuplicateHandle(
[INFO] [stderr] 97  | |             GetCurrentProcess(), handle,
[INFO] [stderr] 98  | |             GetCurrentProcess(), &mut *new_handle,
[INFO] [stderr] 99  | |             access,
[INFO] [stderr] 100 | |             if inheritable { TRUE } else { FALSE },
[INFO] [stderr] 101 | |             flags,
[INFO] [stderr] 102 | |         ))?;
[INFO] [stderr]     | |__________- in this macro invocation
[INFO] [stderr]     |
[INFO] [stderr]     = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope
[INFO] [stderr]    --> src/handle.rs:107:30
[INFO] [stderr]     |
[INFO] [stderr] 107 |     pub fn into_raw(self) -> HANDLE {
[INFO] [stderr]     |                              ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `DUPLICATE_SAME_ACCESS` in this scope
[INFO] [stderr]    --> src/handle.rs:115:45
[INFO] [stderr]     |
[INFO] [stderr] 115 |             ClonedHandleAccess::Same => (0, DUPLICATE_SAME_ACCESS),
[INFO] [stderr]     |                                             ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `DUPLICATE_CLOSE_SOURCE` in this scope
[INFO] [stderr]    --> src/handle.rs:119:29
[INFO] [stderr]     |
[INFO] [stderr] 119 |         let flags = flags | DUPLICATE_CLOSE_SOURCE;
[INFO] [stderr]     |                             ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `DuplicateHandle` in this scope
[INFO] [stderr]    --> src/handle.rs:124:36
[INFO] [stderr]     |
[INFO] [stderr] 124 |             winapi_bool_call!(log: DuplicateHandle(
[INFO] [stderr]     |                                    ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetCurrentProcess` in this scope
[INFO] [stderr]    --> src/handle.rs:125:17
[INFO] [stderr]     |
[INFO] [stderr] 125 |                 GetCurrentProcess(), old_handle,
[INFO] [stderr]     |                 ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetCurrentProcess` in this scope
[INFO] [stderr]    --> src/handle.rs:126:17
[INFO] [stderr]     |
[INFO] [stderr] 126 |                 GetCurrentProcess(), &mut *new_handle,
[INFO] [stderr]     |                 ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope
[INFO] [stderr]    --> src/handle.rs:128:34
[INFO] [stderr]     |
[INFO] [stderr] 128 |                 if inheritable { TRUE } else { FALSE },
[INFO] [stderr]     |                                  ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope
[INFO] [stderr]    --> src/handle.rs:128:48
[INFO] [stderr]     |
[INFO] [stderr] 128 |                 if inheritable { TRUE } else { FALSE },
[INFO] [stderr]     |                                                ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FALSE` in module `$crate::macros`
[INFO] [stderr]    --> src/macros.rs:13:30
[INFO] [stderr]     |
[INFO] [stderr] 13  |           ) == $crate::macros::FALSE {
[INFO] [stderr]     |                                ^^^^^ not found in `$crate::macros`
[INFO] [stderr]     | 
[INFO] [stderr]    ::: src/handle.rs:124:13
[INFO] [stderr]     |
[INFO] [stderr] 124 | /             winapi_bool_call!(log: DuplicateHandle(
[INFO] [stderr] 125 | |                 GetCurrentProcess(), old_handle,
[INFO] [stderr] 126 | |                 GetCurrentProcess(), &mut *new_handle,
[INFO] [stderr] 127 | |                 access,
[INFO] [stderr] 128 | |                 if inheritable { TRUE } else { FALSE },
[INFO] [stderr] 129 | |                 flags,
[INFO] [stderr] 130 | |             ))?;
[INFO] [stderr]     | |______________- in this macro invocation
[INFO] [stderr]     |
[INFO] [stderr]     = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] error[E0405]: cannot find trait `AsRawHandle` in this scope
[INFO] [stderr]    --> src/handle.rs:147:50
[INFO] [stderr]     |
[INFO] [stderr] 147 |     pub fn from<T>(handle: &T) -> &Self where T: AsRawHandle {
[INFO] [stderr]     |                                                  ^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope
[INFO] [stderr]    --> src/handle.rs:152:50
[INFO] [stderr]     |
[INFO] [stderr] 152 |     pub unsafe fn from_raw_unchecked<'a>(handle: HANDLE) -> &'a Self {
[INFO] [stderr]     |                                                  ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope
[INFO] [stderr]    --> src/handle.rs:163:30
[INFO] [stderr]     |
[INFO] [stderr] 163 |     pub fn from_raw(handle: &HANDLE) -> Option<&Self> {
[INFO] [stderr]     |                              ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetHandleInformation` in this scope
[INFO] [stderr]    --> src/handle.rs:166:16
[INFO] [stderr]     |
[INFO] [stderr] 166 |             if GetHandleInformation(*handle, &mut _flags) == TRUE {
[INFO] [stderr]     |                ^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope
[INFO] [stderr]    --> src/handle.rs:166:62
[INFO] [stderr]     |
[INFO] [stderr] 166 |             if GetHandleInformation(*handle, &mut _flags) == TRUE {
[INFO] [stderr]     |                                                              ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope
[INFO] [stderr]    --> src/handle.rs:174:26
[INFO] [stderr]     |
[INFO] [stderr] 174 |     pub fn get(&self) -> HANDLE {
[INFO] [stderr]     |                          ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ULONG` in this scope
[INFO] [stderr]    --> src/handle.rs:191:36
[INFO] [stderr]     |
[INFO] [stderr] 191 |             let mut return_length: ULONG = 0;
[INFO] [stderr]     |                                    ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `PVOID` in this scope
[INFO] [stderr]    --> src/handle.rs:194:129
[INFO] [stderr]     |
[INFO] [stderr] 194 |             match HRESULT_FROM_NT(nt_query_object(self.get(), OBJECT_INFORMATION_CLASS::TypeInformation, buffer.as_mut_ptr() as PVOID, buffer.len() as ULONG, &mut return_length)) {
[INFO] [stderr]     |                                                                                                                                 ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ULONG` in this scope
[INFO] [stderr]    --> src/handle.rs:194:152
[INFO] [stderr]     |
[INFO] [stderr] 194 |             match HRESULT_FROM_NT(nt_query_object(self.get(), OBJECT_INFORMATION_CLASS::TypeInformation, buffer.as_mut_ptr() as PVOID, buffer.len() as ULONG, &mut return_length)) {
[INFO] [stderr]     |                                                                                                                                                        ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SUCCEEDED` in this scope
[INFO] [stderr]    --> src/handle.rs:195:22
[INFO] [stderr]     |
[INFO] [stderr] 195 |                 s if SUCCEEDED(s) => {},
[INFO] [stderr]     |                      ^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetFileType` in this scope
[INFO] [stderr]    --> src/handle.rs:208:38
[INFO] [stderr]     |
[INFO] [stderr] 208 |                     let kind = match GetFileType(self.get()) {
[INFO] [stderr]     |                                      ^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope
[INFO] [stderr]    --> src/handle.rs:213:32
[INFO] [stderr]     |
[INFO] [stderr] 213 | ...                   if GetLastError() != NO_ERROR {
[INFO] [stderr]     |                          ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `NO_ERROR` in this scope
[INFO] [stderr]    --> src/handle.rs:213:50
[INFO] [stderr]     |
[INFO] [stderr] 213 | ...                   if GetLastError() != NO_ERROR {
[INFO] [stderr]     |                                            ^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ULONG` in this scope
[INFO] [stderr]    --> src/handle.rs:245:36
[INFO] [stderr]     |
[INFO] [stderr] 245 |             let mut return_length: ULONG = 0;
[INFO] [stderr]     |                                    ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `PVOID` in this scope
[INFO] [stderr]    --> src/handle.rs:248:129
[INFO] [stderr]     |
[INFO] [stderr] 248 |             match HRESULT_FROM_NT(nt_query_object(self.get(), OBJECT_INFORMATION_CLASS::NameInformation, buffer.as_mut_ptr() as PVOID, buffer.len() as ULONG, &mut return_length)) {
[INFO] [stderr]     |                                                                                                                                 ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ULONG` in this scope
[INFO] [stderr]    --> src/handle.rs:248:152
[INFO] [stderr]     |
[INFO] [stderr] 248 |             match HRESULT_FROM_NT(nt_query_object(self.get(), OBJECT_INFORMATION_CLASS::NameInformation, buffer.as_mut_ptr() as PVOID, buffer.len() as ULONG, &mut return_length)) {
[INFO] [stderr]     |                                                                                                                                                        ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SUCCEEDED` in this scope
[INFO] [stderr]    --> src/handle.rs:249:22
[INFO] [stderr]     |
[INFO] [stderr] 249 |                 s if SUCCEEDED(s) => {},
[INFO] [stderr]     |                      ^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ACCESS_MASK` in this scope
[INFO] [stderr]    --> src/handle.rs:265:45
[INFO] [stderr]     |
[INFO] [stderr] 146 | impl WinHandleRef {
[INFO] [stderr]     |     - help: you might be missing a type parameter: `<ACCESS_MASK>`
[INFO] [stderr] ...
[INFO] [stderr] 265 |     pub fn access_mask(&self) -> io::Result<ACCESS_MASK> {
[INFO] [stderr]     |                                             ^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ULONG` in this scope
[INFO] [stderr]    --> src/handle.rs:270:46
[INFO] [stderr]     |
[INFO] [stderr] 146 | impl WinHandleRef {
[INFO] [stderr]     |     - help: you might be missing a type parameter: `<ULONG>`
[INFO] [stderr] ...
[INFO] [stderr] 270 |     pub fn handle_count(&self) -> io::Result<ULONG> {
[INFO] [stderr]     |                                              ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ULONG` in this scope
[INFO] [stderr]    --> src/handle.rs:280:36
[INFO] [stderr]     |
[INFO] [stderr] 280 |             let mut return_length: ULONG = 0;
[INFO] [stderr]     |                                    ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `PVOID` in this scope
[INFO] [stderr]    --> src/handle.rs:282:136
[INFO] [stderr]     |
[INFO] [stderr] 282 |             match HRESULT_FROM_NT(nt_query_object(self.get(), OBJECT_INFORMATION_CLASS::BasicInformation, &mut basic_info as *mut _ as PVOID, mem::size_of_val(&basic_info) as ULONG, &mut return_length)) {
[INFO] [stderr]     |                                                                                                                                        ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ULONG` in this scope
[INFO] [stderr]    --> src/handle.rs:282:176
[INFO] [stderr]     |
[INFO] [stderr] 282 |             match HRESULT_FROM_NT(nt_query_object(self.get(), OBJECT_INFORMATION_CLASS::BasicInformation, &mut basic_info as *mut _ as PVOID, mem::size_of_val(&basic_info) as ULONG, &mut return_length)) {
[INFO] [stderr]     |                                                                                                                                                                                ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SUCCEEDED` in this scope
[INFO] [stderr]    --> src/handle.rs:283:22
[INFO] [stderr]     |
[INFO] [stderr] 283 |                 s if SUCCEEDED(s) => {},
[INFO] [stderr]     |                      ^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0405]: cannot find trait `AsRawHandle` in this scope
[INFO] [stderr]    --> src/handle.rs:295:6
[INFO] [stderr]     |
[INFO] [stderr] 295 | impl AsRawHandle for WinHandle {
[INFO] [stderr]     |      ^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `RawHandle` in this scope
[INFO] [stderr]    --> src/handle.rs:296:32
[INFO] [stderr]     |
[INFO] [stderr] 20  | pub struct WinHandle(HANDLE);
[INFO] [stderr]     | ----------------------------- similarly named struct `WinHandle` defined here
[INFO] [stderr] ...
[INFO] [stderr] 296 |     fn as_raw_handle(&self) -> RawHandle { unsafe { mem::transmute(self.get()) } }
[INFO] [stderr]     |                                ^^^^^^^^^ help: a struct with a similar name exists: `WinHandle`
[INFO] [stderr] 
[INFO] [stderr] error[E0405]: cannot find trait `AsRawHandle` in this scope
[INFO] [stderr]    --> src/handle.rs:299:6
[INFO] [stderr]     |
[INFO] [stderr] 299 | impl AsRawHandle for WinHandleRef {
[INFO] [stderr]     |      ^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `RawHandle` in this scope
[INFO] [stderr]    --> src/handle.rs:300:32
[INFO] [stderr]     |
[INFO] [stderr] 20  | pub struct WinHandle(HANDLE);
[INFO] [stderr]     | ----------------------------- similarly named struct `WinHandle` defined here
[INFO] [stderr] ...
[INFO] [stderr] 300 |     fn as_raw_handle(&self) -> RawHandle { unsafe { mem::transmute(self.get()) } }
[INFO] [stderr]     |                                ^^^^^^^^^ help: a struct with a similar name exists: `WinHandle`
[INFO] [stderr] 
[INFO] [stderr] error[E0405]: cannot find trait `IntoRawHandle` in this scope
[INFO] [stderr]    --> src/handle.rs:303:40
[INFO] [stderr]     |
[INFO] [stderr] 303 | impl<T> From<T> for WinHandle where T: IntoRawHandle {
[INFO] [stderr]     |                                        ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/handle.rs:333:14
[INFO] [stderr]     |
[INFO] [stderr] 333 |     Explicit(DWORD),
[INFO] [stderr]     |              ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope
[INFO] [stderr]    --> src/handle.rs:368:19
[INFO] [stderr]     |
[INFO] [stderr] 368 |     type Target = HANDLE;
[INFO] [stderr]     |                   ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope
[INFO] [stderr]    --> src/handle.rs:370:25
[INFO] [stderr]     |
[INFO] [stderr] 370 |     fn deref(&self) -> &HANDLE {
[INFO] [stderr]     |                         ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope
[INFO] [stderr]    --> src/handle.rs:376:37
[INFO] [stderr]     |
[INFO] [stderr] 376 |     fn deref_mut(&mut self) -> &mut HANDLE {
[INFO] [stderr]     |                                     ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/handle.rs:402:11
[INFO] [stderr]     |
[INFO] [stderr] 402 |     Other(DWORD),
[INFO] [stderr]     |           ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IUnknown` in this scope
[INFO] [stderr]  --> src/comptr.rs:7:27
[INFO] [stderr]   |
[INFO] [stderr] 7 | pub struct ComPtr<T>(*mut IUnknown, PhantomData<T>);
[INFO] [stderr]   |                           ^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IUnknown` in this scope
[INFO] [stderr]  --> src/comptr.rs:8:33
[INFO] [stderr]   |
[INFO] [stderr] 8 | pub struct ComPtrTarget<T>(*mut IUnknown, PhantomData<T>);
[INFO] [stderr]   |                                 ^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IUnknown` in this scope
[INFO] [stderr]   --> src/comptr.rs:26:28
[INFO] [stderr]    |
[INFO] [stderr] 26 |         ComPtr(raw as *mut IUnknown, PhantomData)
[INFO] [stderr]    |                            ^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IUnknown` in this scope
[INFO] [stderr]   --> src/comptr.rs:30:24
[INFO] [stderr]    |
[INFO] [stderr] 30 |         (*(raw as *mut IUnknown)).AddRef();
[INFO] [stderr]    |                        ^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IUnknown` in this scope
[INFO] [stderr]   --> src/comptr.rs:31:28
[INFO] [stderr]    |
[INFO] [stderr] 31 |         ComPtr(raw as *mut IUnknown, PhantomData)
[INFO] [stderr]    |                            ^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IUnknown` in this scope
[INFO] [stderr]   --> src/comptr.rs:44:62
[INFO] [stderr]    |
[INFO] [stderr] 39 | impl<T> ComPtrTarget<T> {
[INFO] [stderr]    |       - help: you might be missing a type parameter: `, IUnknown`
[INFO] [stderr] ...
[INFO] [stderr] 44 |     pub unsafe fn as_unknown(&mut self) -> &mut ComPtrTarget<IUnknown> {
[INFO] [stderr]    |                                                              ^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IUnknown` in this scope
[INFO] [stderr]   --> src/comptr.rs:45:66
[INFO] [stderr]    |
[INFO] [stderr] 39 | impl<T> ComPtrTarget<T> {
[INFO] [stderr]    |       - help: you might be missing a type parameter: `, IUnknown`
[INFO] [stderr] ...
[INFO] [stderr] 45 |         &mut *(self as *mut ComPtrTarget<T> as *mut ComPtrTarget<IUnknown>)
[INFO] [stderr]    |                                                                  ^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IUnknown` in this scope
[INFO] [stderr]   --> src/comptr.rs:77:44
[INFO] [stderr]    |
[INFO] [stderr] 77 |         unsafe { &*(&self.0 as *const *mut IUnknown as *const *mut T) }
[INFO] [stderr]    |                                            ^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `IUnknown` in this scope
[INFO] [stderr]   --> src/comptr.rs:83:50
[INFO] [stderr]    |
[INFO] [stderr] 83 |         unsafe { &mut *(&mut self.0 as *mut *mut IUnknown as *mut *mut T) }
[INFO] [stderr]    |                                                  ^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `LocalFree` in this scope
[INFO] [stderr]   --> src/mem.rs:10:18
[INFO] [stderr]    |
[INFO] [stderr] 10 |         unsafe { LocalFree(self.0 as _); } 
[INFO] [stderr]    |                  ^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]   --> src/sys.rs:12:27
[INFO] [stderr]    |
[INFO] [stderr] 12 | pub fn HRESULT_FROM_NT(x: DWORD) -> HRESULT {
[INFO] [stderr]    |                           ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HRESULT` in this scope
[INFO] [stderr]   --> src/sys.rs:12:37
[INFO] [stderr]    |
[INFO] [stderr] 12 | pub fn HRESULT_FROM_NT(x: DWORD) -> HRESULT {
[INFO] [stderr]    |                                     ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]   --> src/sys.rs:13:28
[INFO] [stderr]    |
[INFO] [stderr] 13 |     const FACILITY_NT_BIT: DWORD = 0x10000000;
[INFO] [stderr]    |                            ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HRESULT` in this scope
[INFO] [stderr]   --> src/sys.rs:15:30
[INFO] [stderr]    |
[INFO] [stderr] 15 |     (x | FACILITY_NT_BIT) as HRESULT
[INFO] [stderr]    |                              ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope
[INFO] [stderr]   --> src/sys.rs:19:13
[INFO] [stderr]    |
[INFO] [stderr] 19 |     handle: HANDLE,
[INFO] [stderr]    |             ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `PVOID` in this scope
[INFO] [stderr]   --> src/sys.rs:21:25
[INFO] [stderr]    |
[INFO] [stderr] 21 |     object_information: PVOID,
[INFO] [stderr]    |                         ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ULONG` in this scope
[INFO] [stderr]   --> src/sys.rs:22:32
[INFO] [stderr]    |
[INFO] [stderr] 22 |     object_information_length: ULONG,
[INFO] [stderr]    |                                ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `PULONG` in this scope
[INFO] [stderr]   --> src/sys.rs:23:20
[INFO] [stderr]    |
[INFO] [stderr] 23 |     return_length: PULONG,
[INFO] [stderr]    |                    ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]   --> src/sys.rs:24:6
[INFO] [stderr]    |
[INFO] [stderr] 24 | ) -> DWORD;
[INFO] [stderr]    |      ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]   --> src/sys.rs:26:38
[INFO] [stderr]    |
[INFO] [stderr] 26 | const GET_MODULE_HANDLE_EX_FLAG_PIN: DWORD = 0x1;
[INFO] [stderr]    |                                      ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HMODULE` in this scope
[INFO] [stderr]   --> src/sys.rs:30:25
[INFO] [stderr]    |
[INFO] [stderr] 30 |         let mut handle: HMODULE = ptr::null_mut();
[INFO] [stderr]    |                         ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleExW` in this scope
[INFO] [stderr]   --> src/sys.rs:31:33
[INFO] [stderr]    |
[INFO] [stderr] 31 |         match winapi_bool_call!(GetModuleHandleExW(
[INFO] [stderr]    |                                 ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FALSE` in module `$crate::macros`
[INFO] [stderr]   --> src/macros.rs:32:30
[INFO] [stderr]    |
[INFO] [stderr] 32 |           ) == $crate::macros::FALSE {
[INFO] [stderr]    |                                ^^^^^ not found in `$crate::macros`
[INFO] [stderr]    | 
[INFO] [stderr]   ::: src/sys.rs:31:15
[INFO] [stderr]    |
[INFO] [stderr] 31 |           match winapi_bool_call!(GetModuleHandleExW(
[INFO] [stderr]    |  _______________-
[INFO] [stderr] 32 | |             GET_MODULE_HANDLE_EX_FLAG_PIN,
[INFO] [stderr] 33 | |             WideCString::from_str("ntdll.dll").unwrap().as_ptr(),
[INFO] [stderr] 34 | |             &mut handle,
[INFO] [stderr] 35 | |         )) {
[INFO] [stderr]    | |__________- in this macro invocation
[INFO] [stderr]    |
[INFO] [stderr]    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcAddress` in this scope
[INFO] [stderr]   --> src/sys.rs:48:19
[INFO] [stderr]    |
[INFO] [stderr] 48 |             match GetProcAddress(*nt_dll, b"NtQueryObject\0".as_ptr() as LPSTR) {
[INFO] [stderr]    |                   ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LPSTR` in this scope
[INFO] [stderr]   --> src/sys.rs:48:74
[INFO] [stderr]    |
[INFO] [stderr] 48 |             match GetProcAddress(*nt_dll, b"NtQueryObject\0".as_ptr() as LPSTR) {
[INFO] [stderr]    |                                                                          ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ULONG` in this scope
[INFO] [stderr]   --> src/sys.rs:69:21
[INFO] [stderr]    |
[INFO] [stderr] 69 |     pub Attributes: ULONG,
[INFO] [stderr]    |                     ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ACCESS_MASK` in this scope
[INFO] [stderr]   --> src/sys.rs:70:24
[INFO] [stderr]    |
[INFO] [stderr] 70 |     pub GrantedAccess: ACCESS_MASK,
[INFO] [stderr]    |                        ^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ULONG` in this scope
[INFO] [stderr]   --> src/sys.rs:71:22
[INFO] [stderr]    |
[INFO] [stderr] 71 |     pub HandleCount: ULONG,
[INFO] [stderr]    |                      ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ULONG` in this scope
[INFO] [stderr]   --> src/sys.rs:72:23
[INFO] [stderr]    |
[INFO] [stderr] 72 |     pub PointerCount: ULONG,
[INFO] [stderr]    |                       ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ULONG` in this scope
[INFO] [stderr]   --> src/sys.rs:73:16
[INFO] [stderr]    |
[INFO] [stderr] 73 |     Reserved: [ULONG; 10],
[INFO] [stderr]    |                ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `UNICODE_STRING` in this scope
[INFO] [stderr]   --> src/sys.rs:78:19
[INFO] [stderr]    |
[INFO] [stderr] 78 |     pub TypeName: UNICODE_STRING,
[INFO] [stderr]    |                   ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ULONG` in this scope
[INFO] [stderr]   --> src/sys.rs:79:16
[INFO] [stderr]    |
[INFO] [stderr] 79 |     Reserved: [ULONG; 22],
[INFO] [stderr]    |                ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `UNICODE_STRING` in this scope
[INFO] [stderr]   --> src/sys.rs:84:15
[INFO] [stderr]    |
[INFO] [stderr] 84 |     pub Name: UNICODE_STRING,
[INFO] [stderr]    |               ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HMODULE` in this scope
[INFO] [stderr]   --> src/sys.rs:89:23
[INFO] [stderr]    |
[INFO] [stderr] 89 | struct HModuleWrapper(HMODULE);
[INFO] [stderr]    |                       ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HMODULE` in this scope
[INFO] [stderr]   --> src/sys.rs:94:19
[INFO] [stderr]    |
[INFO] [stderr] 94 |     type Target = HMODULE;
[INFO] [stderr]    |                   ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HMODULE` in this scope
[INFO] [stderr]   --> src/sys.rs:96:25
[INFO] [stderr]    |
[INFO] [stderr] 96 |     fn deref(&self) -> &HMODULE {
[INFO] [stderr]    |                         ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error: aborting due to 181 previous errors
[INFO] [stderr] 
[INFO] [stderr] Some errors have detailed explanations: E0405, E0412, E0425, E0432, E0433.
[INFO] [stderr] For more information about an error, try `rustc --explain E0405`.
[INFO] [stderr] error: could not compile `winhandle`.
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred
[INFO] [stderr]   --> src/sys.rs:28:1
[INFO] [stderr]    |
[INFO] [stderr] 28 | / lazy_static! {
[INFO] [stderr] 29 | |     static ref NT_DLL_HANDLE: Option<HModuleWrapper> = unsafe {
[INFO] [stderr] 30 | |         let mut handle: HMODULE = ptr::null_mut();
[INFO] [stderr] 31 | |         match winapi_bool_call!(GetModuleHandleExW(
[INFO] [stderr] ...  |
[INFO] [stderr] 42 | |     };
[INFO] [stderr] 43 | | }
[INFO] [stderr]    | |_^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(deprecated)]` on by default
[INFO] [stderr]    = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred
[INFO] [stderr]   --> src/sys.rs:45:1
[INFO] [stderr]    |
[INFO] [stderr] 45 | / lazy_static! {
[INFO] [stderr] 46 | |     pub static ref NtQueryObject: Option<NtQueryObjectFn> = unsafe {
[INFO] [stderr] 47 | |         NT_DLL_HANDLE.and_then(|nt_dll| {
[INFO] [stderr] 48 | |             match GetProcAddress(*nt_dll, b"NtQueryObject\0".as_ptr() as LPSTR) {
[INFO] [stderr] ...  |
[INFO] [stderr] 56 | |     };
[INFO] [stderr] 57 | | }
[INFO] [stderr]    | |_^
[INFO] [stderr]    |
[INFO] [stderr]    = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] error: aborting due to 121 previous errors
[INFO] [stderr] 
[INFO] [stderr] Some errors have detailed explanations: E0405, E0412, E0425, E0432, E0433.
[INFO] [stderr] For more information about an error, try `rustc --explain E0405`.
[INFO] [stderr] error: could not compile `winhandle`.
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] running `"docker" "inspect" "48372497d283e457d70a01c6026dfe73d46bf6b3dc62afb976c6ac4e1bcef36f"`
[INFO] running `"docker" "rm" "-f" "48372497d283e457d70a01c6026dfe73d46bf6b3dc62afb976c6ac4e1bcef36f"`
[INFO] [stdout] 48372497d283e457d70a01c6026dfe73d46bf6b3dc62afb976c6ac4e1bcef36f
