[INFO] fetching crate memory_utils 0.2.2... [INFO] testing memory_utils-0.2.2 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate memory_utils 0.2.2 into /workspace/builds/worker-0-tc1/source [INFO] started tweaking crates.io crate memory_utils 0.2.2 [INFO] finished tweaking crates.io crate memory_utils 0.2.2 [INFO] tweaked toml for crates.io crate memory_utils 0.2.2 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate memory_utils 0.2.2 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate memory_utils 0.2.2 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a579dfac6cfde7dacbd2369fe8d5a9793411e1f1662be0cda3f2584481c53d01 [INFO] running `Command { std: "docker" "start" "-a" "a579dfac6cfde7dacbd2369fe8d5a9793411e1f1662be0cda3f2584481c53d01", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a579dfac6cfde7dacbd2369fe8d5a9793411e1f1662be0cda3f2584481c53d01", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a579dfac6cfde7dacbd2369fe8d5a9793411e1f1662be0cda3f2584481c53d01", kill_on_drop: false }` [INFO] [stdout] a579dfac6cfde7dacbd2369fe8d5a9793411e1f1662be0cda3f2584481c53d01 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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" "RUSTDOCFLAGS=--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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7ba3af0032633bb8252838f57527650209fa4de2dcdf759e8a32437a093aeb97 [INFO] running `Command { std: "docker" "start" "-a" "7ba3af0032633bb8252838f57527650209fa4de2dcdf759e8a32437a093aeb97", kill_on_drop: false }` [INFO] [stderr] Compiling winapi v0.3.9 [INFO] [stderr] Compiling memory_utils v0.2.2 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/process.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | um::{ [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/process.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | shared::{ [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/dll.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | os::windows::ffi::OsStrExt, [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/std/src/os/mod.rs:56:5 [INFO] [stdout] | [INFO] [stdout] = note: the item is gated here [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/std/src/os/mod.rs:120:10 [INFO] [stdout] | [INFO] [stdout] = note: the item is gated here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/dll.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | shared::minwindef::*, [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/dll.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | um::{ [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/process.rs:89:17 [INFO] [stdout] | [INFO] [stdout] 89 | pub handle: HANDLE, [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/process.rs:134:22 [INFO] [stdout] | [INFO] [stdout] 134 | pub export_info: IMAGE_EXPORT_DIRECTORY, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PAGE_NOACCESS` in this scope [INFO] [stdout] --> src/process.rs:171:41 [INFO] [stdout] | [INFO] [stdout] 171 | ProtectOptions::NoAccess => PAGE_NOACCESS, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PAGE_READONLY` in this scope [INFO] [stdout] --> src/process.rs:172:41 [INFO] [stdout] | [INFO] [stdout] 172 | ProtectOptions::ReadOnly => PAGE_READONLY, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PAGE_READWRITE` in this scope [INFO] [stdout] --> src/process.rs:173:42 [INFO] [stdout] | [INFO] [stdout] 173 | ProtectOptions::ReadWrite => PAGE_READWRITE, [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PAGE_WRITECOPY` in this scope [INFO] [stdout] --> src/process.rs:174:42 [INFO] [stdout] | [INFO] [stdout] 174 | ProtectOptions::WriteCopy => PAGE_WRITECOPY, [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PAGE_EXECUTE` in this scope [INFO] [stdout] --> src/process.rs:175:40 [INFO] [stdout] | [INFO] [stdout] 175 | ProtectOptions::Execute => PAGE_EXECUTE, [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PAGE_EXECUTE_READ` in this scope [INFO] [stdout] --> src/process.rs:176:44 [INFO] [stdout] | [INFO] [stdout] 176 | ProtectOptions::ExecuteRead => PAGE_EXECUTE_READ, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PAGE_EXECUTE_READWRITE` in this scope [INFO] [stdout] --> src/process.rs:177:49 [INFO] [stdout] | [INFO] [stdout] 177 | ProtectOptions::ExecuteReadWrite => PAGE_EXECUTE_READWRITE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PAGE_EXECUTE_WRITECOPY` in this scope [INFO] [stdout] --> src/process.rs:178:49 [INFO] [stdout] | [INFO] [stdout] 178 | ProtectOptions::ExecuteWriteCopy => PAGE_EXECUTE_WRITECOPY, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PAGE_GUARD` in this scope [INFO] [stdout] --> src/process.rs:179:38 [INFO] [stdout] | [INFO] [stdout] 179 | ProtectOptions::Guard => PAGE_GUARD, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PAGE_NOCACHE` in this scope [INFO] [stdout] --> src/process.rs:180:40 [INFO] [stdout] | [INFO] [stdout] 180 | ProtectOptions::NoCache => PAGE_NOCACHE, [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PAGE_WRITECOMBINE` in this scope [INFO] [stdout] --> src/process.rs:181:45 [INFO] [stdout] | [INFO] [stdout] 181 | ProtectOptions::WriteCombine => PAGE_WRITECOMBINE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PROCESS_VM_READ` in this scope [INFO] [stdout] --> src/process.rs:224:43 [INFO] [stdout] | [INFO] [stdout] 224 | let handle = unsafe { OpenProcess(PROCESS_VM_READ | PROCESS_QUERY_INFORMATION | PROCESS_VM_WRITE | PROCESS_VM_OPERATION, 0, pid) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PROCESS_QUERY_INFORMATION` in this scope [INFO] [stdout] --> src/process.rs:224:61 [INFO] [stdout] | [INFO] [stdout] 224 | let handle = unsafe { OpenProcess(PROCESS_VM_READ | PROCESS_QUERY_INFORMATION | PROCESS_VM_WRITE | PROCESS_VM_OPERATION, 0, pid) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PROCESS_VM_WRITE` in this scope [INFO] [stdout] --> src/process.rs:224:89 [INFO] [stdout] | [INFO] [stdout] 224 | let handle = unsafe { OpenProcess(PROCESS_VM_READ | PROCESS_QUERY_INFORMATION | PROCESS_VM_WRITE | PROCESS_VM_OPERATION, 0, pid) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PROCESS_VM_OPERATION` in this scope [INFO] [stdout] --> src/process.rs:224:108 [INFO] [stdout] | [INFO] [stdout] 224 | let handle = unsafe { OpenProcess(PROCESS_VM_READ | PROCESS_QUERY_INFORMATION | PROCESS_VM_WRITE | PROCESS_VM_OPERATION, 0, pid) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PROCESS_VM_WRITE` in this scope [INFO] [stdout] --> src/process.rs:477:38 [INFO] [stdout] | [INFO] [stdout] 477 | let handle = OpenProcess(PROCESS_VM_WRITE | PROCESS_VM_OPERATION, 0, self.pid); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PROCESS_VM_OPERATION` in this scope [INFO] [stdout] --> src/process.rs:477:57 [INFO] [stdout] | [INFO] [stdout] 477 | let handle = OpenProcess(PROCESS_VM_WRITE | PROCESS_VM_OPERATION, 0, self.pid); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PAGE_EXECUTE_READWRITE` in this scope [INFO] [stdout] --> src/process.rs:490:70 [INFO] [stdout] | [INFO] [stdout] 490 | VirtualProtectEx(handle, address as LPVOID, patch.len(), PAGE_EXECUTE_READWRITE, &mut old_protect); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PROCESS_VM_READ` in this scope [INFO] [stdout] --> src/process.rs:526:38 [INFO] [stdout] | [INFO] [stdout] 526 | let handle = OpenProcess(PROCESS_VM_READ | PROCESS_VM_OPERATION | PROCESS_VM_WRITE, 0, self.pid); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PROCESS_VM_OPERATION` in this scope [INFO] [stdout] --> src/process.rs:526:56 [INFO] [stdout] | [INFO] [stdout] 526 | let handle = OpenProcess(PROCESS_VM_READ | PROCESS_VM_OPERATION | PROCESS_VM_WRITE, 0, self.pid); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PROCESS_VM_WRITE` in this scope [INFO] [stdout] --> src/process.rs:526:79 [INFO] [stdout] | [INFO] [stdout] 526 | let handle = OpenProcess(PROCESS_VM_READ | PROCESS_VM_OPERATION | PROCESS_VM_WRITE, 0, self.pid); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_COMMIT` in this scope [INFO] [stdout] --> src/process.rs:535:17 [INFO] [stdout] | [INFO] [stdout] 535 | MEM_COMMIT | MEM_RESERVE, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_RESERVE` in this scope [INFO] [stdout] --> src/process.rs:535:30 [INFO] [stdout] | [INFO] [stdout] 535 | MEM_COMMIT | MEM_RESERVE, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PAGE_EXECUTE_READWRITE` in this scope [INFO] [stdout] --> src/process.rs:536:17 [INFO] [stdout] | [INFO] [stdout] 536 | PAGE_EXECUTE_READWRITE [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PROCESS_VM_READ` in this scope [INFO] [stdout] --> src/process.rs:648:38 [INFO] [stdout] | [INFO] [stdout] 648 | let handle = OpenProcess(PROCESS_VM_READ | PROCESS_VM_WRITE | PROCESS_VM_OPERATION, 0, self.pid); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PROCESS_VM_WRITE` in this scope [INFO] [stdout] --> src/process.rs:648:56 [INFO] [stdout] | [INFO] [stdout] 648 | let handle = OpenProcess(PROCESS_VM_READ | PROCESS_VM_WRITE | PROCESS_VM_OPERATION, 0, self.pid); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PROCESS_VM_OPERATION` in this scope [INFO] [stdout] --> src/process.rs:648:75 [INFO] [stdout] | [INFO] [stdout] 648 | let handle = OpenProcess(PROCESS_VM_READ | PROCESS_VM_WRITE | PROCESS_VM_OPERATION, 0, self.pid); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_COMMIT` in this scope [INFO] [stdout] --> src/process.rs:660:17 [INFO] [stdout] | [INFO] [stdout] 660 | MEM_COMMIT | MEM_RESERVE, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_RESERVE` in this scope [INFO] [stdout] --> src/process.rs:660:30 [INFO] [stdout] | [INFO] [stdout] 660 | MEM_COMMIT | MEM_RESERVE, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PAGE_EXECUTE_READ` in this scope [INFO] [stdout] --> src/process.rs:661:17 [INFO] [stdout] | [INFO] [stdout] 661 | PAGE_EXECUTE_READ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_RELEASE` in this scope [INFO] [stdout] --> src/process.rs:688:54 [INFO] [stdout] | [INFO] [stdout] 688 | VirtualFreeEx(handle, trampoline, 0, MEM_RELEASE); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_RELEASE` in this scope [INFO] [stdout] --> src/process.rs:711:54 [INFO] [stdout] | [INFO] [stdout] 711 | VirtualFreeEx(handle, trampoline, 0, MEM_RELEASE); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PAGE_EXECUTE_READWRITE` in this scope [INFO] [stdout] --> src/process.rs:728:17 [INFO] [stdout] | [INFO] [stdout] 728 | PAGE_EXECUTE_READWRITE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_RELEASE` in this scope [INFO] [stdout] --> src/process.rs:749:54 [INFO] [stdout] | [INFO] [stdout] 749 | VirtualFreeEx(handle, trampoline, 0, MEM_RELEASE); [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/process.rs:889:34 [INFO] [stdout] | [INFO] [stdout] 889 | let mut dos_headers: IMAGE_DOS_HEADER = zeroed(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PROCESS_VM_READ` in this scope [INFO] [stdout] --> src/process.rs:892:39 [INFO] [stdout] | [INFO] [stdout] 892 | let process = OpenProcess(PROCESS_VM_READ | PROCESS_QUERY_INFORMATION, 0, self.pid); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PROCESS_QUERY_INFORMATION` in this scope [INFO] [stdout] --> src/process.rs:892:57 [INFO] [stdout] | [INFO] [stdout] 892 | let process = OpenProcess(PROCESS_VM_READ | PROCESS_QUERY_INFORMATION, 0, self.pid); [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/process.rs:900:27 [INFO] [stdout] | [INFO] [stdout] 900 | size_of::(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 206 | impl Process { [INFO] [stdout] | ++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IMAGE_NT_HEADERS64` in this scope [INFO] [stdout] --> src/process.rs:918:33 [INFO] [stdout] | [INFO] [stdout] 918 | let mut nt_headers: IMAGE_NT_HEADERS64 = zeroed(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IMAGE_NT_HEADERS64` in this scope [INFO] [stdout] --> src/process.rs:924:27 [INFO] [stdout] | [INFO] [stdout] 924 | size_of::(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 206 | impl Process { [INFO] [stdout] | ++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IMAGE_NT_HEADERS64` in this scope [INFO] [stdout] --> src/process.rs:942:66 [INFO] [stdout] | [INFO] [stdout] 942 | let section_header_addr = nt_header_addr + size_of::(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 206 | impl Process { [INFO] [stdout] | ++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IMAGE_SECTION_HEADER` in this scope [INFO] [stdout] --> src/process.rs:948:34 [INFO] [stdout] | [INFO] [stdout] 948 | let mut section: IMAGE_SECTION_HEADER = zeroed(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IMAGE_SECTION_HEADER` in this scope [INFO] [stdout] --> src/process.rs:951:59 [INFO] [stdout] | [INFO] [stdout] 951 | ( section_header_addr + i * size_of::() ) as LPCVOID, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 206 | impl Process { [INFO] [stdout] | ++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IMAGE_SECTION_HEADER` in this scope [INFO] [stdout] --> src/process.rs:953:31 [INFO] [stdout] | [INFO] [stdout] 953 | size_of::(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 206 | impl Process { [INFO] [stdout] | ++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `IMAGE_DIRECTORY_ENTRY_EXPORT` in this scope [INFO] [stdout] --> src/process.rs:1009:74 [INFO] [stdout] | [INFO] [stdout] 1009 | let export_dir_rva = nt_headers.OptionalHeader.DataDirectory[IMAGE_DIRECTORY_ENTRY_EXPORT as usize].VirtualAddress; [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/process.rs:1012:37 [INFO] [stdout] | [INFO] [stdout] 1012 | let mut export_dir: IMAGE_EXPORT_DIRECTORY = zeroed(); [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/process.rs:1018:31 [INFO] [stdout] | [INFO] [stdout] 1018 | size_of::(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 206 | impl Process { [INFO] [stdout] | ++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PROCESS_QUERY_INFORMATION` in this scope [INFO] [stdout] --> src/process.rs:1070:39 [INFO] [stdout] | [INFO] [stdout] 1070 | let process = OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_VM_READ, 0, self.pid); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PROCESS_VM_READ` in this scope [INFO] [stdout] --> src/process.rs:1070:67 [INFO] [stdout] | [INFO] [stdout] 1070 | let process = OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_VM_READ, 0, self.pid); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MEMORY_BASIC_INFORMATION` in this scope [INFO] [stdout] --> src/process.rs:1075:26 [INFO] [stdout] | [INFO] [stdout] 1075 | let mut mbi: MEMORY_BASIC_INFORMATION = zeroed(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MEMORY_BASIC_INFORMATION` in this scope [INFO] [stdout] --> src/process.rs:1080:27 [INFO] [stdout] | [INFO] [stdout] 1080 | size_of::() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 206 | impl Process { [INFO] [stdout] | ++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PROCESS_TERMINATE` in this scope [INFO] [stdout] --> src/process.rs:1139:38 [INFO] [stdout] | [INFO] [stdout] 1139 | let handle = OpenProcess(PROCESS_TERMINATE, 0, self.pid); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `CONTEXT` in this scope [INFO] [stdout] --> src/process.rs:1293:64 [INFO] [stdout] | [INFO] [stdout] 1293 | pub fn get_thread_context(&self, thread_id: u32) -> Result { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 206 | impl Process { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `THREAD_GET_CONTEXT` in this scope [INFO] [stdout] --> src/process.rs:1299:37 [INFO] [stdout] | [INFO] [stdout] 1299 | let thread = OpenThread(THREAD_GET_CONTEXT, 0, thread_id); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `CONTEXT` in this scope [INFO] [stdout] --> src/process.rs:1304:30 [INFO] [stdout] | [INFO] [stdout] 1304 | let mut context: CONTEXT = zeroed(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CONTEXT_ALL` in this scope [INFO] [stdout] --> src/process.rs:1305:36 [INFO] [stdout] | [INFO] [stdout] 1305 | context.ContextFlags = CONTEXT_ALL; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LONG` in this scope [INFO] [stdout] --> src/process.rs:1330:55 [INFO] [stdout] | [INFO] [stdout] 1330 | pub fn read_long(&self, address: usize) -> Result { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 206 | impl Process { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LONG` in this scope [INFO] [stdout] --> src/process.rs:1331:28 [INFO] [stdout] | [INFO] [stdout] 1331 | self.read_memory::(address) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 206 | impl Process { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LONGLONG` in this scope [INFO] [stdout] --> src/process.rs:1337:59 [INFO] [stdout] | [INFO] [stdout] 1337 | pub fn read_longlong(&self, address: usize) -> Result { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 206 | impl Process { [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LONGLONG` in this scope [INFO] [stdout] --> src/process.rs:1338:28 [INFO] [stdout] | [INFO] [stdout] 1338 | self.read_memory::(address) [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 206 | impl Process { [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/process.rs:1382:25 [INFO] [stdout] | [INFO] [stdout] 1382 | let thread: HANDLE = OpenThread(THREAD_GET_CONTEXT | THREAD_QUERY_INFORMATION, 0, thread_id); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `THREAD_GET_CONTEXT` in this scope [INFO] [stdout] --> src/process.rs:1382:45 [INFO] [stdout] | [INFO] [stdout] 1382 | let thread: HANDLE = OpenThread(THREAD_GET_CONTEXT | THREAD_QUERY_INFORMATION, 0, thread_id); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `THREAD_QUERY_INFORMATION` in this scope [INFO] [stdout] --> src/process.rs:1382:66 [INFO] [stdout] | [INFO] [stdout] 1382 | let thread: HANDLE = OpenThread(THREAD_GET_CONTEXT | THREAD_QUERY_INFORMATION, 0, thread_id); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `CONTEXT` in this scope [INFO] [stdout] --> src/process.rs:1387:30 [INFO] [stdout] | [INFO] [stdout] 1387 | let mut context: CONTEXT = zeroed(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CONTEXT_ALL` in this scope [INFO] [stdout] --> src/process.rs:1388:36 [INFO] [stdout] | [INFO] [stdout] 1388 | context.ContextFlags = CONTEXT_ALL; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MEMORY_BASIC_INFORMATION` in this scope [INFO] [stdout] --> src/process.rs:1406:26 [INFO] [stdout] | [INFO] [stdout] 1406 | let mut mbi: MEMORY_BASIC_INFORMATION = zeroed(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MEMORY_BASIC_INFORMATION` in this scope [INFO] [stdout] --> src/process.rs:1411:27 [INFO] [stdout] | [INFO] [stdout] 1411 | size_of::(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 206 | impl Process { [INFO] [stdout] | ++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MEMORY_BASIC_INFORMATION` in this scope [INFO] [stdout] --> src/process.rs:1477:26 [INFO] [stdout] | [INFO] [stdout] 1477 | let mut mbi: MEMORY_BASIC_INFORMATION = zeroed(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MEMORY_BASIC_INFORMATION` in this scope [INFO] [stdout] --> src/process.rs:1482:27 [INFO] [stdout] | [INFO] [stdout] 1482 | size_of::(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 206 | impl Process { [INFO] [stdout] | ++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MEMORY_BASIC_INFORMATION` in this scope [INFO] [stdout] --> src/process.rs:1743:26 [INFO] [stdout] | [INFO] [stdout] 1743 | let mut mbi: MEMORY_BASIC_INFORMATION = zeroed(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MEMORY_BASIC_INFORMATION` in this scope [INFO] [stdout] --> src/process.rs:1745:94 [INFO] [stdout] | [INFO] [stdout] 1745 | while VirtualQueryEx(self.handle, addr as LPCVOID, &mut mbi as *mut _, size_of::()) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 206 | impl Process { [INFO] [stdout] | ++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_COMMIT` in this scope [INFO] [stdout] --> src/process.rs:1746:33 [INFO] [stdout] | [INFO] [stdout] 1746 | if mbi.State == MEM_COMMIT && ( [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PAGE_EXECUTE_READWRITE` in this scope [INFO] [stdout] --> src/process.rs:1747:36 [INFO] [stdout] | [INFO] [stdout] 1747 | mbi.Protect == PAGE_EXECUTE_READWRITE [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PAGE_READWRITE` in this scope [INFO] [stdout] --> src/process.rs:1748:44 [INFO] [stdout] | [INFO] [stdout] 1748 | || mbi.Protect == PAGE_READWRITE [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PAGE_READONLY` in this scope [INFO] [stdout] --> src/process.rs:1749:43 [INFO] [stdout] | [INFO] [stdout] 1749 | || mbi.Protect == PAGE_READONLY ) && [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/process.rs:1845:33 [INFO] [stdout] | [INFO] [stdout] 1845 | let thread: HANDLE = OpenThread(THREAD_SUSPEND_RESUME, 0, entry.th32ThreadID); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `THREAD_SUSPEND_RESUME` in this scope [INFO] [stdout] --> src/process.rs:1845:53 [INFO] [stdout] | [INFO] [stdout] 1845 | let thread: HANDLE = OpenThread(THREAD_SUSPEND_RESUME, 0, entry.th32ThreadID); [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/process.rs:1905:33 [INFO] [stdout] | [INFO] [stdout] 1905 | let thread: HANDLE = OpenThread(THREAD_SUSPEND_RESUME, 0, entry.th32ThreadID); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `THREAD_SUSPEND_RESUME` in this scope [INFO] [stdout] --> src/process.rs:1905:53 [INFO] [stdout] | [INFO] [stdout] 1905 | let thread: HANDLE = OpenThread(THREAD_SUSPEND_RESUME, 0, entry.th32ThreadID); [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/process.rs:2003:25 [INFO] [stdout] | [INFO] [stdout] 2003 | let thread: HANDLE = OpenThread(THREAD_SUSPEND_RESUME, 0, thread_id); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `THREAD_SUSPEND_RESUME` in this scope [INFO] [stdout] --> src/process.rs:2003:45 [INFO] [stdout] | [INFO] [stdout] 2003 | let thread: HANDLE = OpenThread(THREAD_SUSPEND_RESUME, 0, thread_id); [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/process.rs:2046:25 [INFO] [stdout] | [INFO] [stdout] 2046 | let thread: HANDLE = OpenThread(THREAD_SUSPEND_RESUME, 0, thread_id); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `THREAD_SUSPEND_RESUME` in this scope [INFO] [stdout] --> src/process.rs:2046:45 [INFO] [stdout] | [INFO] [stdout] 2046 | let thread: HANDLE = OpenThread(THREAD_SUSPEND_RESUME, 0, thread_id); [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/dll.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | pub module: HMODULE, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `FARPROC` in this scope [INFO] [stdout] --> src/dll.rs:76:50 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn get_proc(&self, name: &str) -> Result { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 24 | impl DllHandle { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `FARPROC` in this scope [INFO] [stdout] --> src/dll.rs:118:23 [INFO] [stdout] | [INFO] [stdout] 118 | from: FARPROC, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `FARPROC` in this scope [INFO] [stdout] --> src/dll.rs:185:55 [INFO] [stdout] | [INFO] [stdout] 185 | pub fn hook_function(&self, name: &str, new_func: FARPROC) -> Result { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `FARPROC` in this scope [INFO] [stdout] --> src/dll.rs:185:74 [INFO] [stdout] | [INFO] [stdout] 185 | pub fn hook_function(&self, name: &str, new_func: FARPROC) -> Result { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 24 | impl DllHandle { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PAGE_EXECUTE_READWRITE` in this scope [INFO] [stdout] --> src/dll.rs:193:17 [INFO] [stdout] | [INFO] [stdout] 193 | PAGE_EXECUTE_READWRITE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `FARPROC` in this scope [INFO] [stdout] --> src/dll.rs:219:50 [INFO] [stdout] | [INFO] [stdout] 219 | unsafe fn create_trampoline(&self, original: FARPROC, original_bytes: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `FARPROC` in this scope [INFO] [stdout] --> src/dll.rs:219:92 [INFO] [stdout] | [INFO] [stdout] 219 | unsafe fn create_trampoline(&self, original: FARPROC, original_bytes: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 24 | impl DllHandle { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_COMMIT` in this scope [INFO] [stdout] --> src/dll.rs:224:13 [INFO] [stdout] | [INFO] [stdout] 224 | MEM_COMMIT | MEM_RESERVE, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_RESERVE` in this scope [INFO] [stdout] --> src/dll.rs:224:26 [INFO] [stdout] | [INFO] [stdout] 224 | MEM_COMMIT | MEM_RESERVE, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PAGE_EXECUTE_READWRITE` in this scope [INFO] [stdout] --> src/dll.rs:225:13 [INFO] [stdout] | [INFO] [stdout] 225 | PAGE_EXECUTE_READWRITE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PAGE_EXECUTE_READ` in this scope [INFO] [stdout] --> src/dll.rs:250:13 [INFO] [stdout] | [INFO] [stdout] 250 | PAGE_EXECUTE_READ, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `FARPROC` in this scope [INFO] [stdout] --> src/dll.rs:254:26 [INFO] [stdout] | [INFO] [stdout] 254 | Ok(trampoline as FARPROC) [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode_wide` found for reference `&OsStr` in the current scope [INFO] [stdout] --> src/dll.rs:56:18 [INFO] [stdout] | [INFO] [stdout] 55 | let wide: Vec = OsStr::new(path) [INFO] [stdout] | __________________________________- [INFO] [stdout] 56 | | .encode_wide() [INFO] [stdout] | | -^^^^^^^^^^^ method not found in `&OsStr` [INFO] [stdout] | |_________________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/process.rs:190:13 [INFO] [stdout] | [INFO] [stdout] 189 | PAGE_NOACCESS => ProtectOptions::NoAccess, [INFO] [stdout] | ------------- matches any value [INFO] [stdout] 190 | PAGE_READONLY => ProtectOptions::ReadOnly, [INFO] [stdout] | ^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/process.rs:191:13 [INFO] [stdout] | [INFO] [stdout] 189 | PAGE_NOACCESS => ProtectOptions::NoAccess, [INFO] [stdout] | ------------- matches any value [INFO] [stdout] 190 | PAGE_READONLY => ProtectOptions::ReadOnly, [INFO] [stdout] 191 | PAGE_READWRITE => ProtectOptions::ReadWrite, [INFO] [stdout] | ^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/process.rs:192:13 [INFO] [stdout] | [INFO] [stdout] 189 | PAGE_NOACCESS => ProtectOptions::NoAccess, [INFO] [stdout] | ------------- matches any value [INFO] [stdout] ... [INFO] [stdout] 192 | PAGE_WRITECOPY => ProtectOptions::WriteCopy, [INFO] [stdout] | ^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/process.rs:193:13 [INFO] [stdout] | [INFO] [stdout] 189 | PAGE_NOACCESS => ProtectOptions::NoAccess, [INFO] [stdout] | ------------- matches any value [INFO] [stdout] ... [INFO] [stdout] 193 | PAGE_EXECUTE => ProtectOptions::Execute, [INFO] [stdout] | ^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/process.rs:194:13 [INFO] [stdout] | [INFO] [stdout] 189 | PAGE_NOACCESS => ProtectOptions::NoAccess, [INFO] [stdout] | ------------- matches any value [INFO] [stdout] ... [INFO] [stdout] 194 | PAGE_EXECUTE_READ => ProtectOptions::ExecuteRead, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/process.rs:195:13 [INFO] [stdout] | [INFO] [stdout] 189 | PAGE_NOACCESS => ProtectOptions::NoAccess, [INFO] [stdout] | ------------- matches any value [INFO] [stdout] ... [INFO] [stdout] 195 | PAGE_EXECUTE_READWRITE => ProtectOptions::ExecuteReadWrite, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/process.rs:196:13 [INFO] [stdout] | [INFO] [stdout] 189 | PAGE_NOACCESS => ProtectOptions::NoAccess, [INFO] [stdout] | ------------- matches any value [INFO] [stdout] ... [INFO] [stdout] 196 | PAGE_EXECUTE_WRITECOPY => ProtectOptions::ExecuteWriteCopy, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/process.rs:197:13 [INFO] [stdout] | [INFO] [stdout] 189 | PAGE_NOACCESS => ProtectOptions::NoAccess, [INFO] [stdout] | ------------- matches any value [INFO] [stdout] ... [INFO] [stdout] 197 | PAGE_GUARD => ProtectOptions::Guard, [INFO] [stdout] | ^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/process.rs:198:13 [INFO] [stdout] | [INFO] [stdout] 189 | PAGE_NOACCESS => ProtectOptions::NoAccess, [INFO] [stdout] | ------------- matches any value [INFO] [stdout] ... [INFO] [stdout] 198 | PAGE_NOCACHE => ProtectOptions::NoCache, [INFO] [stdout] | ^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/process.rs:199:13 [INFO] [stdout] | [INFO] [stdout] 189 | PAGE_NOACCESS => ProtectOptions::NoAccess, [INFO] [stdout] | ------------- matches any value [INFO] [stdout] ... [INFO] [stdout] 199 | PAGE_WRITECOMBINE => ProtectOptions::WriteCombine, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/process.rs:200:13 [INFO] [stdout] | [INFO] [stdout] 189 | PAGE_NOACCESS => ProtectOptions::NoAccess, [INFO] [stdout] | ------------- matches any value [INFO] [stdout] ... [INFO] [stdout] 200 | _ => ProtectOptions::NoAccess, // shouldn't happen since we covered all protection from above, but just in case [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `PAGE_NOACCESS` [INFO] [stdout] --> src/process.rs:189:13 [INFO] [stdout] | [INFO] [stdout] 189 | PAGE_NOACCESS => ProtectOptions::NoAccess, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_PAGE_NOACCESS` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `PAGE_READONLY` [INFO] [stdout] --> src/process.rs:190:13 [INFO] [stdout] | [INFO] [stdout] 190 | PAGE_READONLY => ProtectOptions::ReadOnly, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_PAGE_READONLY` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `PAGE_READWRITE` [INFO] [stdout] --> src/process.rs:191:13 [INFO] [stdout] | [INFO] [stdout] 191 | PAGE_READWRITE => ProtectOptions::ReadWrite, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_PAGE_READWRITE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `PAGE_WRITECOPY` [INFO] [stdout] --> src/process.rs:192:13 [INFO] [stdout] | [INFO] [stdout] 192 | PAGE_WRITECOPY => ProtectOptions::WriteCopy, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_PAGE_WRITECOPY` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `PAGE_EXECUTE` [INFO] [stdout] --> src/process.rs:193:13 [INFO] [stdout] | [INFO] [stdout] 193 | PAGE_EXECUTE => ProtectOptions::Execute, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_PAGE_EXECUTE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `PAGE_EXECUTE_READ` [INFO] [stdout] --> src/process.rs:194:13 [INFO] [stdout] | [INFO] [stdout] 194 | PAGE_EXECUTE_READ => ProtectOptions::ExecuteRead, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_PAGE_EXECUTE_READ` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `PAGE_EXECUTE_READWRITE` [INFO] [stdout] --> src/process.rs:195:13 [INFO] [stdout] | [INFO] [stdout] 195 | PAGE_EXECUTE_READWRITE => ProtectOptions::ExecuteReadWrite, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_PAGE_EXECUTE_READWRITE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `PAGE_EXECUTE_WRITECOPY` [INFO] [stdout] --> src/process.rs:196:13 [INFO] [stdout] | [INFO] [stdout] 196 | PAGE_EXECUTE_WRITECOPY => ProtectOptions::ExecuteWriteCopy, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_PAGE_EXECUTE_WRITECOPY` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `PAGE_GUARD` [INFO] [stdout] --> src/process.rs:197:13 [INFO] [stdout] | [INFO] [stdout] 197 | PAGE_GUARD => ProtectOptions::Guard, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_PAGE_GUARD` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `PAGE_NOCACHE` [INFO] [stdout] --> src/process.rs:198:13 [INFO] [stdout] | [INFO] [stdout] 198 | PAGE_NOCACHE => ProtectOptions::NoCache, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_PAGE_NOCACHE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `PAGE_WRITECOMBINE` [INFO] [stdout] --> src/process.rs:199:13 [INFO] [stdout] | [INFO] [stdout] 199 | PAGE_WRITECOMBINE => ProtectOptions::WriteCombine, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_PAGE_WRITECOMBINE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `memory_utils` (lib) due to 104 previous errors; 22 warnings emitted [INFO] running `Command { std: "docker" "inspect" "7ba3af0032633bb8252838f57527650209fa4de2dcdf759e8a32437a093aeb97", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7ba3af0032633bb8252838f57527650209fa4de2dcdf759e8a32437a093aeb97", kill_on_drop: false }` [INFO] [stdout] 7ba3af0032633bb8252838f57527650209fa4de2dcdf759e8a32437a093aeb97