[INFO] cloning repository https://github.com/GRDigital/memory-reader [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/GRDigital/memory-reader" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGRDigital%2Fmemory-reader", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGRDigital%2Fmemory-reader'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 682e789a8680d80c46a9a073d15878c13e46b3d5 [INFO] checking GRDigital/memory-reader against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGRDigital%2Fmemory-reader" "/workspace/builds/worker-5/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/GRDigital/memory-reader 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 git repo https://github.com/GRDigital/memory-reader [INFO] finished tweaking git repo https://github.com/GRDigital/memory-reader [INFO] tweaked toml for git repo https://github.com/GRDigital/memory-reader written to /workspace/builds/worker-5/source/Cargo.toml [INFO] crate git repo https://github.com/GRDigital/memory-reader already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "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] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] ba40cded6b43de6e1cf1f9a7677b0bd16f09e221c7a25e1af45a3d4835856a65 [INFO] running `Command { std: "docker" "start" "-a" "ba40cded6b43de6e1cf1f9a7677b0bd16f09e221c7a25e1af45a3d4835856a65", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ba40cded6b43de6e1cf1f9a7677b0bd16f09e221c7a25e1af45a3d4835856a65", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ba40cded6b43de6e1cf1f9a7677b0bd16f09e221c7a25e1af45a3d4835856a65", kill_on_drop: false }` [INFO] [stdout] ba40cded6b43de6e1cf1f9a7677b0bd16f09e221c7a25e1af45a3d4835856a65 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "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] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 3f737206d1f6ba3e8ed0a72d73575f393d7fbd5d2e9465b6ee9cd6302c08a73f [INFO] running `Command { std: "docker" "start" "-a" "3f737206d1f6ba3e8ed0a72d73575f393d7fbd5d2e9465b6ee9cd6302c08a73f", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.7 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.12 [INFO] [stderr] Compiling winapi v0.3.7 [INFO] [stderr] Compiling libc v0.2.59 [INFO] [stderr] Compiling anyhow v1.0.26 [INFO] [stderr] Compiling serde v1.0.94 [INFO] [stderr] Checking scopeguard v1.0.0 [INFO] [stderr] Checking widestring v0.4.0 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Compiling serde_derive v1.0.104 [INFO] [stderr] Checking memory-reader v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/read_memory.rs:4:2 [INFO] [stdout] | [INFO] [stdout] 4 | um::{handleapi::CloseHandle, tlhelp32::*, winnt::HANDLE}, [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::ctypes` [INFO] [stdout] --> src/read_memory.rs:3:2 [INFO] [stdout] | [INFO] [stdout] 3 | ctypes::*, [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/read_memory.rs:4:2 [INFO] [stdout] | [INFO] [stdout] 4 | um::{handleapi::CloseHandle, tlhelp32::*, winnt::HANDLE}, [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::ctypes` [INFO] [stdout] --> src/read_memory.rs:3:2 [INFO] [stdout] | [INFO] [stdout] 3 | ctypes::*, [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PROCESSENTRY32W` [INFO] [stdout] --> src/read_memory.rs:13:20 [INFO] [stdout] | [INFO] [stdout] 13 | let mut process = PROCESSENTRY32W::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `PROCESSENTRY32W` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PROCESSENTRY32W` [INFO] [stdout] --> src/read_memory.rs:13:20 [INFO] [stdout] | [INFO] [stdout] 13 | let mut process = PROCESSENTRY32W::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `PROCESSENTRY32W` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MODULEENTRY32W` [INFO] [stdout] --> src/read_memory.rs:43:25 [INFO] [stdout] | [INFO] [stdout] 43 | let mut module_entry = MODULEENTRY32W::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `MODULEENTRY32W` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MODULEENTRY32W` [INFO] [stdout] --> src/read_memory.rs:43:25 [INFO] [stdout] | [INFO] [stdout] 43 | let mut module_entry = MODULEENTRY32W::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `MODULEENTRY32W` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MODULEENTRY32W` [INFO] [stdout] --> src/read_memory.rs:68:26 [INFO] [stdout] | [INFO] [stdout] 68 | let mut module_entry = MODULEENTRY32W::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `MODULEENTRY32W` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MODULEENTRY32W` [INFO] [stdout] --> src/read_memory.rs:68:26 [INFO] [stdout] | [INFO] [stdout] 68 | let mut module_entry = MODULEENTRY32W::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `MODULEENTRY32W` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateToolhelp32Snapshot` in this scope [INFO] [stdout] --> src/read_memory.rs:8:40 [INFO] [stdout] | [INFO] [stdout] 8 | let all_processes_snapshot = unsafe { CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TH32CS_SNAPPROCESS` in this scope [INFO] [stdout] --> src/read_memory.rs:8:65 [INFO] [stdout] | [INFO] [stdout] 8 | let all_processes_snapshot = unsafe { CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0) }; [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/read_memory.rs:9:21 [INFO] [stdout] | [INFO] [stdout] 9 | defer!(if unsafe { CloseHandle(all_processes_snapshot) } == 0 { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PROCESSENTRY32W` in this scope [INFO] [stdout] --> src/read_memory.rs:16:40 [INFO] [stdout] | [INFO] [stdout] 7 | fn get_pid(process_name: &str) -> anyhow::Result { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 16 | process.dwSize = std::mem::size_of::() as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Process32FirstW` in this scope [INFO] [stdout] --> src/read_memory.rs:19:14 [INFO] [stdout] | [INFO] [stdout] 19 | if unsafe { Process32FirstW(all_processes_snapshot, &mut process) } == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Process32NextW` in this scope [INFO] [stdout] --> src/read_memory.rs:29:15 [INFO] [stdout] | [INFO] [stdout] 29 | if unsafe { Process32NextW(all_processes_snapshot, &mut process) } == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateToolhelp32Snapshot` in this scope [INFO] [stdout] --> src/read_memory.rs:38:34 [INFO] [stdout] | [INFO] [stdout] 38 | let process_snapshot = unsafe { CreateToolhelp32Snapshot(TH32CS_SNAPMODULE | TH32CS_SNAPMODULE32, pid) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TH32CS_SNAPMODULE` in this scope [INFO] [stdout] --> src/read_memory.rs:38:59 [INFO] [stdout] | [INFO] [stdout] 38 | let process_snapshot = unsafe { CreateToolhelp32Snapshot(TH32CS_SNAPMODULE | TH32CS_SNAPMODULE32, pid) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TH32CS_SNAPMODULE32` in this scope [INFO] [stdout] --> src/read_memory.rs:38:79 [INFO] [stdout] | [INFO] [stdout] 38 | let process_snapshot = unsafe { CreateToolhelp32Snapshot(TH32CS_SNAPMODULE | TH32CS_SNAPMODULE32, pid) }; [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/read_memory.rs:39:21 [INFO] [stdout] | [INFO] [stdout] 39 | defer!(if unsafe { CloseHandle(process_snapshot) } == 0 { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MODULEENTRY32W` in this scope [INFO] [stdout] --> src/read_memory.rs:46:45 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn process_path(process_name: &str) -> anyhow::Result { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 46 | module_entry.dwSize = std::mem::size_of::() as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Module32FirstW` in this scope [INFO] [stdout] --> src/read_memory.rs:49:14 [INFO] [stdout] | [INFO] [stdout] 49 | if unsafe { Module32FirstW(process_snapshot, &mut module_entry) } != 1 { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateToolhelp32Snapshot` in this scope [INFO] [stdout] --> src/read_memory.rs:8:40 [INFO] [stdout] | [INFO] [stdout] 8 | let all_processes_snapshot = unsafe { CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 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/read_memory.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | snapshot: HANDLE, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TH32CS_SNAPPROCESS` in this scope [INFO] [stdout] --> src/read_memory.rs:8:65 [INFO] [stdout] | [INFO] [stdout] 8 | let all_processes_snapshot = unsafe { CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 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/read_memory.rs:66:25 [INFO] [stdout] | [INFO] [stdout] 66 | let process_snapshot: HANDLE = unsafe { CreateToolhelp32Snapshot(TH32CS_SNAPMODULE | TH32CS_SNAPMODULE32, pid) }; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateToolhelp32Snapshot` in this scope [INFO] [stdout] --> src/read_memory.rs:66:43 [INFO] [stdout] | [INFO] [stdout] 66 | let process_snapshot: HANDLE = unsafe { CreateToolhelp32Snapshot(TH32CS_SNAPMODULE | TH32CS_SNAPMODULE32, pid) }; [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/read_memory.rs:9:21 [INFO] [stdout] | [INFO] [stdout] 9 | defer!(if unsafe { CloseHandle(all_processes_snapshot) } == 0 { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TH32CS_SNAPMODULE` in this scope [INFO] [stdout] --> src/read_memory.rs:66:68 [INFO] [stdout] | [INFO] [stdout] 66 | let process_snapshot: HANDLE = unsafe { CreateToolhelp32Snapshot(TH32CS_SNAPMODULE | TH32CS_SNAPMODULE32, pid) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PROCESSENTRY32W` in this scope [INFO] [stdout] --> src/read_memory.rs:16:40 [INFO] [stdout] | [INFO] [stdout] 7 | fn get_pid(process_name: &str) -> anyhow::Result { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 16 | process.dwSize = std::mem::size_of::() as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TH32CS_SNAPMODULE32` in this scope [INFO] [stdout] --> src/read_memory.rs:66:88 [INFO] [stdout] | [INFO] [stdout] 66 | let process_snapshot: HANDLE = unsafe { CreateToolhelp32Snapshot(TH32CS_SNAPMODULE | TH32CS_SNAPMODULE32, pid) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Process32FirstW` in this scope [INFO] [stdout] --> src/read_memory.rs:19:14 [INFO] [stdout] | [INFO] [stdout] 19 | if unsafe { Process32FirstW(all_processes_snapshot, &mut process) } == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MODULEENTRY32W` in this scope [INFO] [stdout] --> src/read_memory.rs:71:46 [INFO] [stdout] | [INFO] [stdout] 64 | impl Module { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 71 | module_entry.dwSize = std::mem::size_of::() as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Process32NextW` in this scope [INFO] [stdout] --> src/read_memory.rs:29:15 [INFO] [stdout] | [INFO] [stdout] 29 | if unsafe { Process32NextW(all_processes_snapshot, &mut process) } == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Module32FirstW` in this scope [INFO] [stdout] --> src/read_memory.rs:74:15 [INFO] [stdout] | [INFO] [stdout] 74 | if unsafe { Module32FirstW(process_snapshot, &mut module_entry) } != 1 { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateToolhelp32Snapshot` in this scope [INFO] [stdout] --> src/read_memory.rs:38:34 [INFO] [stdout] | [INFO] [stdout] 38 | let process_snapshot = unsafe { CreateToolhelp32Snapshot(TH32CS_SNAPMODULE | TH32CS_SNAPMODULE32, pid) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Module32NextW` in this scope [INFO] [stdout] --> src/read_memory.rs:90:16 [INFO] [stdout] | [INFO] [stdout] 90 | if unsafe { Module32NextW(process_snapshot, &mut module_entry) } == 0 { [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/read_memory.rs:91:17 [INFO] [stdout] | [INFO] [stdout] 91 | if unsafe { CloseHandle(process_snapshot) } == 0 { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TH32CS_SNAPMODULE` in this scope [INFO] [stdout] --> src/read_memory.rs:38:59 [INFO] [stdout] | [INFO] [stdout] 38 | let process_snapshot = unsafe { CreateToolhelp32Snapshot(TH32CS_SNAPMODULE | TH32CS_SNAPMODULE32, pid) }; [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/read_memory.rs:104:15 [INFO] [stdout] | [INFO] [stdout] 104 | if unsafe { CloseHandle(self.snapshot) } == 0 { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Toolhelp32ReadProcessMemory` in this scope [INFO] [stdout] --> src/read_memory.rs:113:17 [INFO] [stdout] | [INFO] [stdout] 113 | let success = Toolhelp32ReadProcessMemory(pid, address as *const c_void, buffer as *mut c_void, std::mem::size_of::(), &mut 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope [INFO] [stdout] --> src/read_memory.rs:113:68 [INFO] [stdout] | [INFO] [stdout] 113 | let success = Toolhelp32ReadProcessMemory(pid, address as *const c_void, buffer as *mut c_void, std::mem::size_of::(), &mut 0); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 1 | use libc::c_void; [INFO] [stdout] | [INFO] [stdout] 1 | use std::os::raw::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope [INFO] [stdout] --> src/read_memory.rs:113:91 [INFO] [stdout] | [INFO] [stdout] 113 | let success = Toolhelp32ReadProcessMemory(pid, address as *const c_void, buffer as *mut c_void, std::mem::size_of::(), &mut 0); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 1 | use libc::c_void; [INFO] [stdout] | [INFO] [stdout] 1 | use std::os::raw::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TH32CS_SNAPMODULE32` in this scope [INFO] [stdout] --> src/read_memory.rs:38:79 [INFO] [stdout] | [INFO] [stdout] 38 | let process_snapshot = unsafe { CreateToolhelp32Snapshot(TH32CS_SNAPMODULE | TH32CS_SNAPMODULE32, pid) }; [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/read_memory.rs:39:21 [INFO] [stdout] | [INFO] [stdout] 39 | defer!(if unsafe { CloseHandle(process_snapshot) } == 0 { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MODULEENTRY32W` in this scope [INFO] [stdout] --> src/read_memory.rs:46:45 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn process_path(process_name: &str) -> anyhow::Result { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 46 | module_entry.dwSize = std::mem::size_of::() as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Module32FirstW` in this scope [INFO] [stdout] --> src/read_memory.rs:49:14 [INFO] [stdout] | [INFO] [stdout] 49 | if unsafe { Module32FirstW(process_snapshot, &mut module_entry) } != 1 { [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/read_memory.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | snapshot: 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/read_memory.rs:66:25 [INFO] [stdout] | [INFO] [stdout] 66 | let process_snapshot: HANDLE = unsafe { CreateToolhelp32Snapshot(TH32CS_SNAPMODULE | TH32CS_SNAPMODULE32, pid) }; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateToolhelp32Snapshot` in this scope [INFO] [stdout] --> src/read_memory.rs:66:43 [INFO] [stdout] | [INFO] [stdout] 66 | let process_snapshot: HANDLE = unsafe { CreateToolhelp32Snapshot(TH32CS_SNAPMODULE | TH32CS_SNAPMODULE32, pid) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TH32CS_SNAPMODULE` in this scope [INFO] [stdout] --> src/read_memory.rs:66:68 [INFO] [stdout] | [INFO] [stdout] 66 | let process_snapshot: HANDLE = unsafe { CreateToolhelp32Snapshot(TH32CS_SNAPMODULE | TH32CS_SNAPMODULE32, pid) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TH32CS_SNAPMODULE32` in this scope [INFO] [stdout] --> src/read_memory.rs:66:88 [INFO] [stdout] | [INFO] [stdout] 66 | let process_snapshot: HANDLE = unsafe { CreateToolhelp32Snapshot(TH32CS_SNAPMODULE | TH32CS_SNAPMODULE32, pid) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MODULEENTRY32W` in this scope [INFO] [stdout] --> src/read_memory.rs:71:46 [INFO] [stdout] | [INFO] [stdout] 64 | impl Module { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 71 | module_entry.dwSize = std::mem::size_of::() as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Module32FirstW` in this scope [INFO] [stdout] --> src/read_memory.rs:74:15 [INFO] [stdout] | [INFO] [stdout] 74 | if unsafe { Module32FirstW(process_snapshot, &mut module_entry) } != 1 { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Module32NextW` in this scope [INFO] [stdout] --> src/read_memory.rs:90:16 [INFO] [stdout] | [INFO] [stdout] 90 | if unsafe { Module32NextW(process_snapshot, &mut module_entry) } == 0 { [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/read_memory.rs:91:17 [INFO] [stdout] | [INFO] [stdout] 91 | if unsafe { CloseHandle(process_snapshot) } == 0 { [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/read_memory.rs:104:15 [INFO] [stdout] | [INFO] [stdout] 104 | if unsafe { CloseHandle(self.snapshot) } == 0 { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Toolhelp32ReadProcessMemory` in this scope [INFO] [stdout] --> src/read_memory.rs:113:17 [INFO] [stdout] | [INFO] [stdout] 113 | let success = Toolhelp32ReadProcessMemory(pid, address as *const c_void, buffer as *mut c_void, std::mem::size_of::(), &mut 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope [INFO] [stdout] --> src/read_memory.rs:113:68 [INFO] [stdout] | [INFO] [stdout] 113 | let success = Toolhelp32ReadProcessMemory(pid, address as *const c_void, buffer as *mut c_void, std::mem::size_of::(), &mut 0); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 1 | use libc::c_void; [INFO] [stdout] | [INFO] [stdout] 1 | use std::os::raw::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope [INFO] [stdout] --> src/read_memory.rs:113:91 [INFO] [stdout] | [INFO] [stdout] 113 | let success = Toolhelp32ReadProcessMemory(pid, address as *const c_void, buffer as *mut c_void, std::mem::size_of::(), &mut 0); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 1 | use libc::c_void; [INFO] [stdout] | [INFO] [stdout] 1 | use std::os::raw::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 30 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 30 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `memory-reader` [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" "3f737206d1f6ba3e8ed0a72d73575f393d7fbd5d2e9465b6ee9cd6302c08a73f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3f737206d1f6ba3e8ed0a72d73575f393d7fbd5d2e9465b6ee9cd6302c08a73f", kill_on_drop: false }` [INFO] [stdout] 3f737206d1f6ba3e8ed0a72d73575f393d7fbd5d2e9465b6ee9cd6302c08a73f