[INFO] cloning repository https://github.com/UnTraDe/terraria-autoswing [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/UnTraDe/terraria-autoswing" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FUnTraDe%2Fterraria-autoswing"` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FUnTraDe%2Fterraria-autoswing'... [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 1bdf43b59852e40e0e0c668cafd22ab087406149 [INFO] testing UnTraDe/terraria-autoswing against beta-2020-06-03 for beta-1.45-1 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FUnTraDe%2Fterraria-autoswing" "/workspace/builds/worker-8/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/UnTraDe/terraria-autoswing on toolchain beta-2020-06-03 [INFO] running `"/workspace/cargo-home/bin/cargo" "+beta-2020-06-03" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/UnTraDe/terraria-autoswing [INFO] finished tweaking git repo https://github.com/UnTraDe/terraria-autoswing [INFO] tweaked toml for git repo https://github.com/UnTraDe/terraria-autoswing written to /workspace/builds/worker-8/source/Cargo.toml [INFO] crate git repo https://github.com/UnTraDe/terraria-autoswing already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+beta-2020-06-03" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-06-03" "build" "--frozen"` [INFO] [stdout] 9c5197f25c8ab66594fbba319aee118409a8c53f6cb1abc515b8006e91833f2d [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `"docker" "start" "-a" "9c5197f25c8ab66594fbba319aee118409a8c53f6cb1abc515b8006e91833f2d"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Compiling winapi v0.3.8 [INFO] [stderr] Compiling terraria-autoswing v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] error[E0432]: unresolved import `winapi::um` [INFO] [stderr] --> src/main.rs:2:13 [INFO] [stderr] | [INFO] [stderr] 2 | use winapi::um::*; [INFO] [stderr] | ^^ could not find `um` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `winapi::shared` [INFO] [stderr] --> src/main.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use winapi::shared; [INFO] [stderr] | ^^^^^^^^^^^^^^ no `shared` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `winapi::ctypes`, `shared::minwindef::DWORD`, `shared::minwindef::BOOL`, `shared::minwindef::HINSTANCE__` [INFO] [stderr] --> src/main.rs:6:25 [INFO] [stderr] | [INFO] [stderr] 6 | use shared::minwindef::{DWORD, BOOL, HINSTANCE__}; [INFO] [stderr] | ^^^^^ ^^^^ ^^^^^^^^^^^ [INFO] [stderr] 7 | use winnt::HANDLE; [INFO] [stderr] 8 | use winapi::ctypes::c_void; [INFO] [stderr] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `winnt` [INFO] [stderr] --> src/main.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use winnt::HANDLE; [INFO] [stderr] | ^^^^^ use of undeclared type or module `winnt` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tlhelp32` [INFO] [stderr] --> src/main.rs:15:18 [INFO] [stderr] | [INFO] [stderr] 15 | let snapshot = tlhelp32::CreateToolhelp32Snapshot(tlhelp32::TH32CS_SNAPPROCESS, 0); [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `tlhelp32` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tlhelp32` [INFO] [stderr] --> src/main.rs:15:53 [INFO] [stderr] | [INFO] [stderr] 15 | let snapshot = tlhelp32::CreateToolhelp32Snapshot(tlhelp32::TH32CS_SNAPPROCESS, 0); [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `tlhelp32` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tlhelp32` [INFO] [stderr] --> src/main.rs:17:19 [INFO] [stderr] | [INFO] [stderr] 17 | let mut entry = tlhelp32::PROCESSENTRY32 { [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `tlhelp32` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tlhelp32` [INFO] [stderr] --> src/main.rs:18:22 [INFO] [stderr] | [INFO] [stderr] 18 | dwSize: size_of::() as u32, [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `tlhelp32` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tlhelp32` [INFO] [stderr] --> src/main.rs:30:6 [INFO] [stderr] | [INFO] [stderr] 30 | if tlhelp32::Process32First(snapshot, &mut entry as *mut tlhelp32::PROCESSENTRY32) != 0 { [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `tlhelp32` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tlhelp32` [INFO] [stderr] --> src/main.rs:30:60 [INFO] [stderr] | [INFO] [stderr] 30 | if tlhelp32::Process32First(snapshot, &mut entry as *mut tlhelp32::PROCESSENTRY32) != 0 { [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `tlhelp32` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tlhelp32` [INFO] [stderr] --> src/main.rs:40:10 [INFO] [stderr] | [INFO] [stderr] 40 | while tlhelp32::Process32Next(snapshot, &mut entry as *mut tlhelp32::PROCESSENTRY32) != 0 { [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `tlhelp32` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tlhelp32` [INFO] [stderr] --> src/main.rs:40:63 [INFO] [stderr] | [INFO] [stderr] 40 | while tlhelp32::Process32Next(snapshot, &mut entry as *mut tlhelp32::PROCESSENTRY32) != 0 { [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `tlhelp32` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `handleapi` [INFO] [stderr] --> src/main.rs:50:3 [INFO] [stderr] | [INFO] [stderr] 50 | handleapi::CloseHandle(snapshot); [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `handleapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `psapi` [INFO] [stderr] --> src/main.rs:56:61 [INFO] [stderr] | [INFO] [stderr] 56 | fn get_module_info(process: HANDLE, module: &str) -> Option { [INFO] [stderr] | ^^^^^ use of undeclared type or module `psapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `psapi` [INFO] [stderr] --> src/main.rs:62:6 [INFO] [stderr] | [INFO] [stderr] 62 | if psapi::EnumProcessModulesEx(process, &mut (modules[0]) as *mut *mut HINSTANCE__, size, &mut used_size as *mut DWORD, psapi::LIST_MODULES_ALL) != 0 { [INFO] [stderr] | ^^^^^ use of undeclared type or module `psapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `psapi` [INFO] [stderr] --> src/main.rs:62:123 [INFO] [stderr] | [INFO] [stderr] 62 | if psapi::EnumProcessModulesEx(process, &mut (modules[0]) as *mut *mut HINSTANCE__, size, &mut used_size as *mut DWORD, psapi::LIST_MODULES_ALL) != 0 { [INFO] [stderr] | ^^^^^ use of undeclared type or module `psapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `psapi` [INFO] [stderr] --> src/main.rs:68:8 [INFO] [stderr] | [INFO] [stderr] 68 | if psapi::GetModuleBaseNameA(process, modules[i], &mut buf[0] as *mut i8, 128) != 0 { [INFO] [stderr] | ^^^^^ use of undeclared type or module `psapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `psapi` [INFO] [stderr] --> src/main.rs:73:22 [INFO] [stderr] | [INFO] [stderr] 73 | let mut info = psapi::MODULEINFO { [INFO] [stderr] | ^^^^^ use of undeclared type or module `psapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `ctypes` in `winapi` [INFO] [stderr] --> src/main.rs:74:39 [INFO] [stderr] | [INFO] [stderr] 74 | lpBaseOfDll: 0 as *mut winapi::ctypes::c_void, [INFO] [stderr] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `ctypes` in `winapi` [INFO] [stderr] --> src/main.rs:76:38 [INFO] [stderr] | [INFO] [stderr] 76 | EntryPoint: 0 as *mut winapi::ctypes::c_void [INFO] [stderr] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `psapi` [INFO] [stderr] --> src/main.rs:79:10 [INFO] [stderr] | [INFO] [stderr] 79 | if psapi::GetModuleInformation(process, modules[0], &mut info as *mut psapi::MODULEINFO, size_of::() as DWORD) != 0 { [INFO] [stderr] | ^^^^^ use of undeclared type or module `psapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `psapi` [INFO] [stderr] --> src/main.rs:79:77 [INFO] [stderr] | [INFO] [stderr] 79 | if psapi::GetModuleInformation(process, modules[0], &mut info as *mut psapi::MODULEINFO, size_of::() as DWORD) != 0 { [INFO] [stderr] | ^^^^^ use of undeclared type or module `psapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `psapi` [INFO] [stderr] --> src/main.rs:79:106 [INFO] [stderr] | [INFO] [stderr] 79 | if psapi::GetModuleInformation(process, modules[0], &mut info as *mut psapi::MODULEINFO, size_of::() as DWORD) != 0 { [INFO] [stderr] | ^^^^^ use of undeclared type or module `psapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `errhandlingapi` [INFO] [stderr] --> src/main.rs:82:18 [INFO] [stderr] | [INFO] [stderr] 82 | let err = errhandlingapi::GetLastError(); [INFO] [stderr] | ^^^^^^^^^^^^^^ use of undeclared type or module `errhandlingapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `errhandlingapi` [INFO] [stderr] --> src/main.rs:89:16 [INFO] [stderr] | [INFO] [stderr] 89 | let err = errhandlingapi::GetLastError(); [INFO] [stderr] | ^^^^^^^^^^^^^^ use of undeclared type or module `errhandlingapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `errhandlingapi` [INFO] [stderr] --> src/main.rs:95:14 [INFO] [stderr] | [INFO] [stderr] 95 | let err = errhandlingapi::GetLastError(); [INFO] [stderr] | ^^^^^^^^^^^^^^ use of undeclared type or module `errhandlingapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winnt` [INFO] [stderr] --> src/main.rs:129:19 [INFO] [stderr] | [INFO] [stderr] 129 | let mut info = winnt::MEMORY_BASIC_INFORMATION { [INFO] [stderr] | ^^^^^ use of undeclared type or module `winnt` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `memoryapi` [INFO] [stderr] --> src/main.rs:139:17 [INFO] [stderr] | [INFO] [stderr] 139 | let filled = memoryapi::VirtualQueryEx(process, current_addr as *const c_void, &mut info as *mut winnt::MEMORY_BASIC_INFORMATION, size_of::()); [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `memoryapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winnt` [INFO] [stderr] --> src/main.rs:139:101 [INFO] [stderr] | [INFO] [stderr] 139 | let filled = memoryapi::VirtualQueryEx(process, current_addr as *const c_void, &mut info as *mut winnt::MEMORY_BASIC_INFORMATION, size_of::()); [INFO] [stderr] | ^^^^^ use of undeclared type or module `winnt` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winnt` [INFO] [stderr] --> src/main.rs:139:144 [INFO] [stderr] | [INFO] [stderr] 139 | let filled = memoryapi::VirtualQueryEx(process, current_addr as *const c_void, &mut info as *mut winnt::MEMORY_BASIC_INFORMATION, size_of::()); [INFO] [stderr] | ^^^^^ use of undeclared type or module `winnt` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winnt` [INFO] [stderr] --> src/main.rs:144:21 [INFO] [stderr] | [INFO] [stderr] 144 | if (info.State & winnt::MEM_COMMIT) != 0 && (info.Protect & winnt::PAGE_GUARD) == 0 && (info.Protect & winnt::PAGE_NOACCESS) == 0 { [INFO] [stderr] | ^^^^^ use of undeclared type or module `winnt` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winnt` [INFO] [stderr] --> src/main.rs:144:64 [INFO] [stderr] | [INFO] [stderr] 144 | if (info.State & winnt::MEM_COMMIT) != 0 && (info.Protect & winnt::PAGE_GUARD) == 0 && (info.Protect & winnt::PAGE_NOACCESS) == 0 { [INFO] [stderr] | ^^^^^ use of undeclared type or module `winnt` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winnt` [INFO] [stderr] --> src/main.rs:144:107 [INFO] [stderr] | [INFO] [stderr] 144 | if (info.State & winnt::MEM_COMMIT) != 0 && (info.Protect & winnt::PAGE_GUARD) == 0 && (info.Protect & winnt::PAGE_NOACCESS) == 0 { [INFO] [stderr] | ^^^^^ use of undeclared type or module `winnt` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `memoryapi` [INFO] [stderr] --> src/main.rs:151:8 [INFO] [stderr] | [INFO] [stderr] 151 | if memoryapi::ReadProcessMemory(process, info.BaseAddress, buf.as_mut_ptr() as *mut c_void, info.RegionSize, &mut bytes_read as *mut usize) == 0 { [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `memoryapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `errhandlingapi` [INFO] [stderr] --> src/main.rs:152:16 [INFO] [stderr] | [INFO] [stderr] 152 | let err = errhandlingapi::GetLastError(); [INFO] [stderr] | ^^^^^^^^^^^^^^ use of undeclared type or module `errhandlingapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `memoryapi` [INFO] [stderr] --> src/main.rs:192:6 [INFO] [stderr] | [INFO] [stderr] 192 | if memoryapi::VirtualProtectEx(process, addr, size, winnt::PAGE_EXECUTE_READWRITE, &mut old_protect as *mut DWORD) == 0 { [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `memoryapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winnt` [INFO] [stderr] --> src/main.rs:192:55 [INFO] [stderr] | [INFO] [stderr] 192 | if memoryapi::VirtualProtectEx(process, addr, size, winnt::PAGE_EXECUTE_READWRITE, &mut old_protect as *mut DWORD) == 0 { [INFO] [stderr] | ^^^^^ use of undeclared type or module `winnt` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `errhandlingapi` [INFO] [stderr] --> src/main.rs:193:14 [INFO] [stderr] | [INFO] [stderr] 193 | let err = errhandlingapi::GetLastError(); [INFO] [stderr] | ^^^^^^^^^^^^^^ use of undeclared type or module `errhandlingapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `memoryapi` [INFO] [stderr] --> src/main.rs:199:6 [INFO] [stderr] | [INFO] [stderr] 199 | if memoryapi::WriteProcessMemory(process, addr, &nop_array[0] as *const u8 as *const c_void, size, &mut bytes_written as *mut usize) == 0 { [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `memoryapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `errhandlingapi` [INFO] [stderr] --> src/main.rs:200:14 [INFO] [stderr] | [INFO] [stderr] 200 | let err = errhandlingapi::GetLastError(); [INFO] [stderr] | ^^^^^^^^^^^^^^ use of undeclared type or module `errhandlingapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `memoryapi` [INFO] [stderr] --> src/main.rs:206:6 [INFO] [stderr] | [INFO] [stderr] 206 | if memoryapi::VirtualProtectEx(process, addr, size, old_protect, &mut temp as *mut DWORD) == 0 { [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `memoryapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `errhandlingapi` [INFO] [stderr] --> src/main.rs:207:14 [INFO] [stderr] | [INFO] [stderr] 207 | let err = errhandlingapi::GetLastError(); [INFO] [stderr] | ^^^^^^^^^^^^^^ use of undeclared type or module `errhandlingapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `processthreadsapi` [INFO] [stderr] --> src/main.rs:222:18 [INFO] [stderr] | [INFO] [stderr] 222 | let process = processthreadsapi::OpenProcess(winnt::PROCESS_ALL_ACCESS, false as BOOL, process_id); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ use of undeclared type or module `processthreadsapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winnt` [INFO] [stderr] --> src/main.rs:222:49 [INFO] [stderr] | [INFO] [stderr] 222 | let process = processthreadsapi::OpenProcess(winnt::PROCESS_ALL_ACCESS, false as BOOL, process_id); [INFO] [stderr] | ^^^^^ use of undeclared type or module `winnt` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `handleapi` [INFO] [stderr] --> src/main.rs:237:4 [INFO] [stderr] | [INFO] [stderr] 237 | handleapi::CloseHandle(process); [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `handleapi` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/main.rs:10:50 [INFO] [stderr] | [INFO] [stderr] 10 | fn find_process_id_by_name(name: &str) -> Option { [INFO] [stderr] | - ^^^^^ not found in this scope [INFO] [stderr] | | [INFO] [stderr] | help: you might be missing a type parameter: `` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HINSTANCE__` in this scope [INFO] [stderr] --> src/main.rs:58:32 [INFO] [stderr] | [INFO] [stderr] 58 | let mut modules = [0 as *mut HINSTANCE__; 1024]; [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HINSTANCE__` in this scope [INFO] [stderr] --> src/main.rs:59:30 [INFO] [stderr] | [INFO] [stderr] 56 | fn get_module_info(process: HANDLE, module: &str) -> Option { [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] ... [INFO] [stderr] 59 | let size = size_of::<[*mut HINSTANCE__; 1024]>() as DWORD; [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/main.rs:59:55 [INFO] [stderr] | [INFO] [stderr] 59 | let size = size_of::<[*mut HINSTANCE__; 1024]>() as DWORD; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/main.rs:60:28 [INFO] [stderr] | [INFO] [stderr] 60 | let mut used_size = 0 as DWORD; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HINSTANCE__` in this scope [INFO] [stderr] --> src/main.rs:62:74 [INFO] [stderr] | [INFO] [stderr] 62 | if psapi::EnumProcessModulesEx(process, &mut (modules[0]) as *mut *mut HINSTANCE__, size, &mut used_size as *mut DWORD, psapi::LIST_MODULES_ALL) != 0 { [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/main.rs:62:116 [INFO] [stderr] | [INFO] [stderr] 62 | if psapi::EnumProcessModulesEx(process, &mut (modules[0]) as *mut *mut HINSTANCE__, size, &mut used_size as *mut DWORD, psapi::LIST_MODULES_ALL) != 0 { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HINSTANCE__` in this scope [INFO] [stderr] --> src/main.rs:64:59 [INFO] [stderr] | [INFO] [stderr] 56 | fn get_module_info(process: HANDLE, module: &str) -> Option { [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] ... [INFO] [stderr] 64 | let module_count = used_size as usize / size_of::<*mut HINSTANCE__>(); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/main.rs:79:130 [INFO] [stderr] | [INFO] [stderr] 79 | if psapi::GetModuleInformation(process, modules[0], &mut info as *mut psapi::MODULEINFO, size_of::() as DWORD) != 0 { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/main.rs:190:30 [INFO] [stderr] | [INFO] [stderr] 190 | let mut old_protect = 0 as DWORD; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/main.rs:192:111 [INFO] [stderr] | [INFO] [stderr] 192 | if memoryapi::VirtualProtectEx(process, addr, size, winnt::PAGE_EXECUTE_READWRITE, &mut old_protect as *mut DWORD) == 0 { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/main.rs:204:23 [INFO] [stderr] | [INFO] [stderr] 204 | let mut temp = 0 as DWORD; // According to the MSDN documentation the function will fail if lpflOldProtect is null [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/main.rs:206:86 [INFO] [stderr] | [INFO] [stderr] 206 | if memoryapi::VirtualProtectEx(process, addr, size, old_protect, &mut temp as *mut DWORD) == 0 { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `BOOL` in this scope [INFO] [stderr] --> src/main.rs:222:85 [INFO] [stderr] | [INFO] [stderr] 222 | let process = processthreadsapi::OpenProcess(winnt::PROCESS_ALL_ACCESS, false as BOOL, process_id); [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error: aborting due to 59 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0412, E0432, E0433. [INFO] [stderr] For more information about an error, try `rustc --explain E0412`. [INFO] [stderr] error: could not compile `terraria-autoswing`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "9c5197f25c8ab66594fbba319aee118409a8c53f6cb1abc515b8006e91833f2d"` [INFO] running `"docker" "rm" "-f" "9c5197f25c8ab66594fbba319aee118409a8c53f6cb1abc515b8006e91833f2d"` [INFO] [stdout] 9c5197f25c8ab66594fbba319aee118409a8c53f6cb1abc515b8006e91833f2d