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