[INFO] fetching crate winapi-hash 0.1.3... [INFO] testing winapi-hash-0.1.3 against beta-2022-04-10 for beta-1.61-1 [INFO] extracting crate winapi-hash 0.1.3 into /workspace/builds/worker-4/source [INFO] validating manifest of crates.io crate winapi-hash 0.1.3 on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate winapi-hash 0.1.3 [INFO] finished tweaking crates.io crate winapi-hash 0.1.3 [INFO] tweaked toml for crates.io crate winapi-hash 0.1.3 written to /workspace/builds/worker-4/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: the cargo feature `strip` has been stabilized in the 1.58 release and is no longer necessary to be listed in the manifest [INFO] [stderr] See https://doc.rust-lang.org/beta/cargo/reference/profiles.html#strip-option for more information about using this feature. [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 8f11ba9a063f30eee78d0518854c4b3e5085486b24d63480d2bdf9850bcd32b6 [INFO] running `Command { std: "docker" "start" "-a" "8f11ba9a063f30eee78d0518854c4b3e5085486b24d63480d2bdf9850bcd32b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8f11ba9a063f30eee78d0518854c4b3e5085486b24d63480d2bdf9850bcd32b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8f11ba9a063f30eee78d0518854c4b3e5085486b24d63480d2bdf9850bcd32b6", kill_on_drop: false }` [INFO] [stdout] 8f11ba9a063f30eee78d0518854c4b3e5085486b24d63480d2bdf9850bcd32b6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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=warn" "-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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 51d8b9e7296c6d2b3aee1ea3fccb9706b351d5ebadc907bdac00bd8a1803d3c2 [INFO] running `Command { std: "docker" "start" "-a" "51d8b9e7296c6d2b3aee1ea3fccb9706b351d5ebadc907bdac00bd8a1803d3c2", kill_on_drop: false }` [INFO] [stderr] warning: the cargo feature `strip` has been stabilized in the 1.58 release and is no longer necessary to be listed in the manifest [INFO] [stderr] See https://doc.rust-lang.org/beta/cargo/reference/profiles.html#strip-option for more information about using this feature. [INFO] [stderr] Compiling winapi v0.3.9 [INFO] [stderr] Compiling ntapi v0.3.7 [INFO] [stderr] Compiling winapi-hash v0.1.3 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/util/image_export_directory.rs:1:28 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{to_va, winapi::um::winnt::LPCSTR}; [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/util/image_export_directory.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | shared::{ [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/util/image_export_directory.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | um::winnt::IMAGE_EXPORT_DIRECTORY, [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/util/module_entry_list.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::shared::ntdef::PLIST_ENTRY; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/util/wide.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | os::windows::ffi::{OsStrExt, OsStringExt}, [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/lib.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | shared::{basetsd::ULONG_PTR, minwindef::HMODULE}, [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/lib.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | um::winnt::LPCWSTR, [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/lib.rs:93:21 [INFO] [stdout] | [INFO] [stdout] 93 | use winapi::um::winnt::*; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winapi_local` in `ntapi` [INFO] [stdout] --> src/lib.rs:119:20 [INFO] [stdout] | [INFO] [stdout] 119 | use ntapi::winapi_local::um::winnt::NtCurrentTeb; [INFO] [stdout] | ^^^^^^^^^^^^ could not find `winapi_local` in `ntapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/lib.rs:137:13 [INFO] [stdout] | [INFO] [stdout] 137 | shared::{minwindef::DWORD, ntdef::NULL}, [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/lib.rs:138:13 [INFO] [stdout] | [INFO] [stdout] 138 | um::winnt::*, [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `ntapi::ntldr`, `ntapi::FIELD_OFFSET` [INFO] [stdout] --> src/util/module_entry_list.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | ntldr::{LDR_DATA_TABLE_ENTRY, PLDR_DATA_TABLE_ENTRY}, [INFO] [stdout] | ^^^^^ could not find `ntldr` in `ntapi` [INFO] [stdout] 3 | FIELD_OFFSET, [INFO] [stdout] | ^^^^^^^^^^^^ no `FIELD_OFFSET` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `FIELD_OFFSET` [INFO] [stdout] --> src/util/module_entry_list.rs:33:42 [INFO] [stdout] | [INFO] [stdout] 33 | (*((self.curr as usize - FIELD_OFFSET!(LDR_DATA_TABLE_ENTRY, InMemoryOrderLinks)) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/util/mod.rs:9:27 [INFO] [stdout] | [INFO] [stdout] 9 | ($base as winapi::shared::minwindef::LPBYTE).offset($offset as isize) [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/util/image_export_directory.rs:35:29 [INFO] [stdout] | [INFO] [stdout] 35 | let exp_addrs = to_va!(self.handle, self.exp_dir.AddressOfFunctions) as PDWORD; [INFO] [stdout] | ---------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `to_va` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/util/mod.rs:9:27 [INFO] [stdout] | [INFO] [stdout] 9 | ($base as winapi::shared::minwindef::LPBYTE).offset($offset as isize) [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/util/image_export_directory.rs:36:29 [INFO] [stdout] | [INFO] [stdout] 36 | let exp_names = to_va!(self.handle, self.exp_dir.AddressOfNames) as PDWORD; [INFO] [stdout] | ------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `to_va` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/util/mod.rs:9:27 [INFO] [stdout] | [INFO] [stdout] 9 | ($base as winapi::shared::minwindef::LPBYTE).offset($offset as isize) [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/util/image_export_directory.rs:37:28 [INFO] [stdout] | [INFO] [stdout] 37 | let exp_ords = to_va!(self.handle, self.exp_dir.AddressOfNameOrdinals) as PWORD; [INFO] [stdout] | ------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `to_va` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/util/mod.rs:9:27 [INFO] [stdout] | [INFO] [stdout] 9 | ($base as winapi::shared::minwindef::LPBYTE).offset($offset as isize) [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/util/image_export_directory.rs:39:52 [INFO] [stdout] | [INFO] [stdout] 39 | let fn_name = std::ffi::CStr::from_ptr(to_va!( [INFO] [stdout] | ____________________________________________________- [INFO] [stdout] 40 | | self.handle, [INFO] [stdout] 41 | | *exp_names.add(self.index as usize) [INFO] [stdout] 42 | | ) as LPCSTR) [INFO] [stdout] | |_____________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `to_va` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/util/mod.rs:9:27 [INFO] [stdout] | [INFO] [stdout] 9 | ($base as winapi::shared::minwindef::LPBYTE).offset($offset as isize) [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/util/image_export_directory.rs:46:26 [INFO] [stdout] | [INFO] [stdout] 46 | let fn_ptr = to_va!( [INFO] [stdout] | __________________________- [INFO] [stdout] 47 | | self.handle, [INFO] [stdout] 48 | | *(exp_addrs.add(*(exp_ords.add(self.index as usize)) as usize)) [INFO] [stdout] 49 | | ) as ULONG_PTR; [INFO] [stdout] | |_____________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `to_va` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OsStringExt` [INFO] [stdout] --> src/util/wide.rs:60:22 [INFO] [stdout] | [INFO] [stdout] 60 | ::from_wide(wide).into() [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `OsStringExt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/util/mod.rs:9:27 [INFO] [stdout] | [INFO] [stdout] 9 | ($base as winapi::shared::minwindef::LPBYTE).offset($offset as isize) [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:100:42 [INFO] [stdout] | [INFO] [stdout] 100 | let nt_hdr: IMAGE_NT_HEADERS = *(to_va!(handle, dos_hdr.e_lfanew) as PIMAGE_NT_HEADERS); [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `to_va` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/util/mod.rs:9:27 [INFO] [stdout] | [INFO] [stdout] 9 | ($base as winapi::shared::minwindef::LPBYTE).offset($offset as isize) [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:101:49 [INFO] [stdout] | [INFO] [stdout] 101 | let exp_dir: IMAGE_EXPORT_DIRECTORY = *(to_va!( [INFO] [stdout] | _________________________________________________- [INFO] [stdout] 102 | | handle, [INFO] [stdout] 103 | | nt_hdr.OptionalHeader.DataDirectory[IMAGE_DIRECTORY_ENTRY_EXPORT as usize] [INFO] [stdout] 104 | | .VirtualAddress [INFO] [stdout] 105 | | ) as PIMAGE_EXPORT_DIRECTORY); [INFO] [stdout] | |_________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `to_va` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/util/mod.rs:9:27 [INFO] [stdout] | [INFO] [stdout] 9 | ($base as winapi::shared::minwindef::LPBYTE).offset($offset as isize) [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:150:24 [INFO] [stdout] | [INFO] [stdout] 150 | let nt_hdr = *(to_va!(handle, dos_hdr.e_lfanew) as PIMAGE_NT_HEADERS) as IMAGE_NT_HEADERS; [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `to_va` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HMODULE` in this scope [INFO] [stdout] --> src/util/image_export_directory.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | handle: HMODULE, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IMAGE_EXPORT_DIRECTORY` in this scope [INFO] [stdout] --> src/util/image_export_directory.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | exp_dir: IMAGE_EXPORT_DIRECTORY, [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/util/image_export_directory.rs:17:24 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new(handle: HMODULE, exp_dir: IMAGE_EXPORT_DIRECTORY) -> Self { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IMAGE_EXPORT_DIRECTORY` in this scope [INFO] [stdout] --> src/util/image_export_directory.rs:17:42 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new(handle: HMODULE, exp_dir: IMAGE_EXPORT_DIRECTORY) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ULONG_PTR` in this scope [INFO] [stdout] --> src/util/image_export_directory.rs:27:18 [INFO] [stdout] | [INFO] [stdout] 27 | type Item = (ULONG_PTR, String); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PDWORD` in this scope [INFO] [stdout] --> src/util/image_export_directory.rs:35:85 [INFO] [stdout] | [INFO] [stdout] 35 | let exp_addrs = to_va!(self.handle, self.exp_dir.AddressOfFunctions) as PDWORD; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PDWORD` in this scope [INFO] [stdout] --> src/util/image_export_directory.rs:36:81 [INFO] [stdout] | [INFO] [stdout] 36 | let exp_names = to_va!(self.handle, self.exp_dir.AddressOfNames) as PDWORD; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PWORD` in this scope [INFO] [stdout] --> src/util/image_export_directory.rs:37:87 [INFO] [stdout] | [INFO] [stdout] 37 | let exp_ords = to_va!(self.handle, self.exp_dir.AddressOfNameOrdinals) as PWORD; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCSTR` in this scope [INFO] [stdout] --> src/util/image_export_directory.rs:42:18 [INFO] [stdout] | [INFO] [stdout] 42 | ) as LPCSTR) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ULONG_PTR` in this scope [INFO] [stdout] --> src/util/image_export_directory.rs:49:18 [INFO] [stdout] | [INFO] [stdout] 49 | ) as ULONG_PTR; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PLIST_ENTRY` in this scope [INFO] [stdout] --> src/util/module_entry_list.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | head: PLIST_ENTRY, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PLIST_ENTRY` in this scope [INFO] [stdout] --> src/util/module_entry_list.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | curr: PLIST_ENTRY, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PLIST_ENTRY` in this scope [INFO] [stdout] --> src/util/module_entry_list.rs:13:29 [INFO] [stdout] | [INFO] [stdout] 13 | pub unsafe fn new(head: PLIST_ENTRY) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OsStringExt` [INFO] [stdout] --> src/util/wide.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | OsStringExt::from_wide(wide) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 54 | OsString::from_wide(wide) [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 1 | use std::os::unix::prelude::OsStringExt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCWSTR` in this scope [INFO] [stdout] --> src/lib.rs:46:22 [INFO] [stdout] | [INFO] [stdout] 46 | load_library: fn(LPCWSTR) -> 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/lib.rs:46:34 [INFO] [stdout] | [INFO] [stdout] 46 | load_library: fn(LPCWSTR) -> HMODULE, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ULONG_PTR` in this scope [INFO] [stdout] --> src/lib.rs:61:35 [INFO] [stdout] | [INFO] [stdout] 50 | impl ApiHashResolver [INFO] [stdout] | - help: you might be missing a type parameter: `, ULONG_PTR` [INFO] [stdout] ... [INFO] [stdout] 61 | std::mem::transmute:: HMODULE>( [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCWSTR` in this scope [INFO] [stdout] --> src/lib.rs:61:49 [INFO] [stdout] | [INFO] [stdout] 50 | impl ApiHashResolver [INFO] [stdout] | - help: you might be missing a type parameter: `, LPCWSTR` [INFO] [stdout] ... [INFO] [stdout] 61 | std::mem::transmute:: 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/lib.rs:61:61 [INFO] [stdout] | [INFO] [stdout] 50 | impl ApiHashResolver [INFO] [stdout] | - help: you might be missing a type parameter: `, HMODULE` [INFO] [stdout] ... [INFO] [stdout] 61 | std::mem::transmute:: HMODULE>( [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ULONG_PTR` in this scope [INFO] [stdout] --> src/lib.rs:86:17 [INFO] [stdout] | [INFO] [stdout] 50 | impl ApiHashResolver [INFO] [stdout] | - help: you might be missing a type parameter: `, ULONG_PTR` [INFO] [stdout] ... [INFO] [stdout] 86 | ) -> Result { [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/lib.rs:87:21 [INFO] [stdout] | [INFO] [stdout] 87 | let module: HMODULE = (self.load_library)(ToWide::to_wide_null(&module_name).as_ptr()); [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/lib.rs:91:31 [INFO] [stdout] | [INFO] [stdout] 91 | unsafe fn resolve(handle: HMODULE, hash: [u8; H::OUTPUT_SIZE]) -> Result { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ULONG_PTR` in this scope [INFO] [stdout] --> src/lib.rs:91:78 [INFO] [stdout] | [INFO] [stdout] 50 | impl ApiHashResolver [INFO] [stdout] | - help: you might be missing a type parameter: `, ULONG_PTR` [INFO] [stdout] ... [INFO] [stdout] 91 | unsafe fn resolve(handle: HMODULE, hash: [u8; H::OUTPUT_SIZE]) -> Result { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IMAGE_DOS_HEADER` in this scope [INFO] [stdout] --> src/lib.rs:99:22 [INFO] [stdout] | [INFO] [stdout] 99 | let dos_hdr: IMAGE_DOS_HEADER = *(handle as PIMAGE_DOS_HEADER); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PIMAGE_DOS_HEADER` in this scope [INFO] [stdout] --> src/lib.rs:99:53 [INFO] [stdout] | [INFO] [stdout] 99 | let dos_hdr: IMAGE_DOS_HEADER = *(handle as PIMAGE_DOS_HEADER); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IMAGE_NT_HEADERS` in this scope [INFO] [stdout] --> src/lib.rs:100:21 [INFO] [stdout] | [INFO] [stdout] 100 | let nt_hdr: IMAGE_NT_HEADERS = *(to_va!(handle, dos_hdr.e_lfanew) as PIMAGE_NT_HEADERS); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PIMAGE_NT_HEADERS` in this scope [INFO] [stdout] --> src/lib.rs:100:78 [INFO] [stdout] | [INFO] [stdout] 100 | let nt_hdr: IMAGE_NT_HEADERS = *(to_va!(handle, dos_hdr.e_lfanew) as PIMAGE_NT_HEADERS); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IMAGE_EXPORT_DIRECTORY` in this scope [INFO] [stdout] --> src/lib.rs:101:22 [INFO] [stdout] | [INFO] [stdout] 101 | let exp_dir: IMAGE_EXPORT_DIRECTORY = *(to_va!( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `IMAGE_DIRECTORY_ENTRY_EXPORT` in this scope [INFO] [stdout] --> src/lib.rs:103:49 [INFO] [stdout] | [INFO] [stdout] 103 | nt_hdr.OptionalHeader.DataDirectory[IMAGE_DIRECTORY_ENTRY_EXPORT as usize] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PIMAGE_EXPORT_DIRECTORY` in this scope [INFO] [stdout] --> src/lib.rs:105:14 [INFO] [stdout] | [INFO] [stdout] 105 | ) as PIMAGE_EXPORT_DIRECTORY); [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/lib.rs:117:55 [INFO] [stdout] | [INFO] [stdout] 50 | impl ApiHashResolver [INFO] [stdout] | - help: you might be missing a type parameter: `, HMODULE` [INFO] [stdout] ... [INFO] [stdout] 117 | unsafe fn get_module_base(module: &str) -> Result { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `NtCurrentTeb` in this scope [INFO] [stdout] --> src/lib.rs:123:25 [INFO] [stdout] | [INFO] [stdout] 123 | &mut (*(*(*(NtCurrentTeb())).ProcessEnvironmentBlock).Ldr).InMemoryOrderModuleList, [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/lib.rs:128:44 [INFO] [stdout] | [INFO] [stdout] 128 | return Ok(entry.DllBase as 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/lib.rs:135:39 [INFO] [stdout] | [INFO] [stdout] 135 | unsafe fn is_valid_module(handle: HMODULE) -> bool { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NULL` in this scope [INFO] [stdout] --> src/lib.rs:141:22 [INFO] [stdout] | [INFO] [stdout] 141 | if handle == NULL as 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/lib.rs:141:30 [INFO] [stdout] | [INFO] [stdout] 141 | if handle == NULL as HMODULE { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PIMAGE_DOS_HEADER` in this scope [INFO] [stdout] --> src/lib.rs:145:35 [INFO] [stdout] | [INFO] [stdout] 145 | let dos_hdr = *(handle as PIMAGE_DOS_HEADER) as IMAGE_DOS_HEADER; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IMAGE_DOS_HEADER` in this scope [INFO] [stdout] --> src/lib.rs:145:57 [INFO] [stdout] | [INFO] [stdout] 145 | let dos_hdr = *(handle as PIMAGE_DOS_HEADER) as IMAGE_DOS_HEADER; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `IMAGE_DOS_SIGNATURE` in this scope [INFO] [stdout] --> src/lib.rs:146:31 [INFO] [stdout] | [INFO] [stdout] 146 | if dos_hdr.e_magic != IMAGE_DOS_SIGNATURE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PIMAGE_NT_HEADERS` in this scope [INFO] [stdout] --> src/lib.rs:150:60 [INFO] [stdout] | [INFO] [stdout] 150 | let nt_hdr = *(to_va!(handle, dos_hdr.e_lfanew) as PIMAGE_NT_HEADERS) as IMAGE_NT_HEADERS; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IMAGE_NT_HEADERS` in this scope [INFO] [stdout] --> src/lib.rs:150:82 [INFO] [stdout] | [INFO] [stdout] 150 | let nt_hdr = *(to_va!(handle, dos_hdr.e_lfanew) as PIMAGE_NT_HEADERS) as IMAGE_NT_HEADERS; [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/lib.rs:151:32 [INFO] [stdout] | [INFO] [stdout] 151 | if nt_hdr.Signature as DWORD != IMAGE_NT_SIGNATURE { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `IMAGE_NT_SIGNATURE` in this scope [INFO] [stdout] --> src/lib.rs:151:41 [INFO] [stdout] | [INFO] [stdout] 151 | if nt_hdr.Signature as DWORD != IMAGE_NT_SIGNATURE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `IMAGE_FILE_DLL` in this scope [INFO] [stdout] --> src/lib.rs:154:48 [INFO] [stdout] | [INFO] [stdout] 154 | if nt_hdr.FileHeader.Characteristics & IMAGE_FILE_DLL == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `IMAGE_DIRECTORY_ENTRY_EXPORT` in this scope [INFO] [stdout] --> src/lib.rs:158:60 [INFO] [stdout] | [INFO] [stdout] 158 | let data_dir = nt_hdr.OptionalHeader.DataDirectory[IMAGE_DIRECTORY_ENTRY_EXPORT as usize]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0554]: `#![feature]` may not be used on the beta release channel [INFO] [stdout] --> src/lib.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | #![feature(adt_const_params)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0554]: `#![feature]` may not be used on the beta release channel [INFO] [stdout] --> src/lib.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | #![feature(generic_const_exprs)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode_wide` found for reference `&OsStr` in the current scope [INFO] [stdout] --> src/util/wide.rs:18:23 [INFO] [stdout] | [INFO] [stdout] 18 | self.as_ref().encode_wide().collect() [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&OsStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode_wide` found for reference `&OsStr` in the current scope [INFO] [stdout] --> src/util/wide.rs:22:23 [INFO] [stdout] | [INFO] [stdout] 22 | self.as_ref().encode_wide().chain(Some(0)).collect() [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&OsStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 71 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0432, E0433, E0554, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `winapi-hash` due to 72 previous errors [INFO] running `Command { std: "docker" "inspect" "51d8b9e7296c6d2b3aee1ea3fccb9706b351d5ebadc907bdac00bd8a1803d3c2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "51d8b9e7296c6d2b3aee1ea3fccb9706b351d5ebadc907bdac00bd8a1803d3c2", kill_on_drop: false }` [INFO] [stdout] 51d8b9e7296c6d2b3aee1ea3fccb9706b351d5ebadc907bdac00bd8a1803d3c2