[INFO] cloning repository https://github.com/retep998/dojob-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/retep998/dojob-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fretep998%2Fdojob-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fretep998%2Fdojob-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 55ca7e35df8f9c9c0729055f1df4769565e77e0f [INFO] checking retep998/dojob-rs against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fretep998%2Fdojob-rs" "/workspace/builds/worker-10/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-10/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/retep998/dojob-rs on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/retep998/dojob-rs [INFO] finished tweaking git repo https://github.com/retep998/dojob-rs [INFO] tweaked toml for git repo https://github.com/retep998/dojob-rs written to /workspace/builds/worker-10/source/Cargo.toml [INFO] crate git repo https://github.com/retep998/dojob-rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] error: the lock file /workspace/builds/worker-10/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag. [INFO] the lockfile is outdated, regenerating it [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "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] 1ae44b07bebf433f89a9f1c67376b538c6732b36a200f82b8e1f70873b9cf876 [INFO] running `Command { std: "docker" "start" "-a" "1ae44b07bebf433f89a9f1c67376b538c6732b36a200f82b8e1f70873b9cf876", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1ae44b07bebf433f89a9f1c67376b538c6732b36a200f82b8e1f70873b9cf876", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1ae44b07bebf433f89a9f1c67376b538c6732b36a200f82b8e1f70873b9cf876", kill_on_drop: false }` [INFO] [stdout] 1ae44b07bebf433f89a9f1c67376b538c6732b36a200f82b8e1f70873b9cf876 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6d059e16c9da4754c7461e4a9e40b37dbfdbe7b9334b9a1569f6846e4f47f3b3 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "6d059e16c9da4754c7461e4a9e40b37dbfdbe7b9334b9a1569f6846e4f47f3b3", kill_on_drop: false }` [INFO] [stderr] Compiling winapi-build v0.1.1 [INFO] [stderr] Checking winapi v0.2.8 [INFO] [stderr] Compiling kernel32-sys v0.2.2 [INFO] [stderr] Compiling psapi-sys v0.1.1 [INFO] [stderr] Checking dojob v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/main.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | use std::os::windows::prelude::*; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/main.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | use std::os::windows::prelude::*; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in crate `win` [INFO] [stdout] --> src/main.rs:18:29 [INFO] [stdout] | [INFO] [stdout] 18 | static mut job_handle: win::HANDLE = 0 as win::HANDLE; [INFO] [stdout] | ^^^^^^ not found in `win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in crate `win` [INFO] [stdout] --> src/main.rs:18:48 [INFO] [stdout] | [INFO] [stdout] 18 | static mut job_handle: win::HANDLE = 0 as win::HANDLE; [INFO] [stdout] | ^^^^^^ not found in `win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in crate `win` [INFO] [stdout] --> src/main.rs:20:31 [INFO] [stdout] | [INFO] [stdout] 20 | fn print_zombies(handle: win::HANDLE) { [INFO] [stdout] | ^^^^^^ not found in `win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JOBOBJECT_BASIC_PROCESS_ID_LIST` in crate `win` [INFO] [stdout] --> src/main.rs:24:40 [INFO] [stdout] | [INFO] [stdout] 24 | #[repr(C)] struct ProcessList(win::JOBOBJECT_BASIC_PROCESS_ID_LIST, [win::ULONG_PTR; NPROC]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ULONG_PTR` in crate `win` [INFO] [stdout] --> src/main.rs:24:79 [INFO] [stdout] | [INFO] [stdout] 24 | #[repr(C)] struct ProcessList(win::JOBOBJECT_BASIC_PROCESS_ID_LIST, [win::ULONG_PTR; NPROC]); [INFO] [stdout] | ^^^^^^^^^ not found in `win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `JOBOBJECT_BASIC_PROCESS_ID_LIST` in crate `win` [INFO] [stdout] --> src/main.rs:25:38 [INFO] [stdout] | [INFO] [stdout] 25 | let mut procs = ProcessList(win::JOBOBJECT_BASIC_PROCESS_ID_LIST { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in crate `win` [INFO] [stdout] --> src/main.rs:26:50 [INFO] [stdout] | [INFO] [stdout] 26 | NumberOfAssignedProcesses: NPROC as win::DWORD, [INFO] [stdout] | ^^^^^ not found in `win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `QueryInformationJobObject` in crate `k32` [INFO] [stdout] --> src/main.rs:31:22 [INFO] [stdout] | [INFO] [stdout] 31 | if unsafe { k32::QueryInformationJobObject( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `k32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `JobObjectBasicProcessIdList` in crate `win` [INFO] [stdout] --> src/main.rs:32:22 [INFO] [stdout] | [INFO] [stdout] 32 | handle, win::JobObjectBasicProcessIdList, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in crate `win` [INFO] [stdout] --> src/main.rs:33:38 [INFO] [stdout] | [INFO] [stdout] 33 | &mut procs as *mut _ as win::LPVOID, size_of_val(&procs) as win::DWORD, null_mut(), [INFO] [stdout] | ^^^^^^ not found in `win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in crate `win` [INFO] [stdout] --> src/main.rs:33:74 [INFO] [stdout] | [INFO] [stdout] 33 | &mut procs as *mut _ as win::LPVOID, size_of_val(&procs) as win::DWORD, null_mut(), [INFO] [stdout] | ^^^^^ not found in `win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in crate `k32` [INFO] [stdout] --> src/main.rs:35:26 [INFO] [stdout] | [INFO] [stdout] 35 | if unsafe { k32::GetLastError() } == win::ERROR_MORE_DATA { [INFO] [stdout] | ^^^^^^^^^^^^ not found in `k32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ERROR_MORE_DATA` in crate `win` [INFO] [stdout] --> src/main.rs:35:51 [INFO] [stdout] | [INFO] [stdout] 35 | if unsafe { k32::GetLastError() } == win::ERROR_MORE_DATA { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in `win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in crate `win` [INFO] [stdout] --> src/main.rs:37:62 [INFO] [stdout] | [INFO] [stdout] 37 | procs.0.NumberOfProcessIdsInList = NPROC as win::DWORD; [INFO] [stdout] | ^^^^^ not found in `win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `OpenProcess` in crate `k32` [INFO] [stdout] --> src/main.rs:46:18 [INFO] [stdout] | [INFO] [stdout] 46 | k32::OpenProcess(win::PROCESS_QUERY_INFORMATION, win::FALSE, procid as win::DWORD) [INFO] [stdout] | ^^^^^^^^^^^ not found in `k32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PROCESS_QUERY_INFORMATION` in crate `win` [INFO] [stdout] --> src/main.rs:46:35 [INFO] [stdout] | [INFO] [stdout] 46 | k32::OpenProcess(win::PROCESS_QUERY_INFORMATION, win::FALSE, procid as win::DWORD) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in crate `win` [INFO] [stdout] --> src/main.rs:46:67 [INFO] [stdout] | [INFO] [stdout] 46 | k32::OpenProcess(win::PROCESS_QUERY_INFORMATION, win::FALSE, procid as win::DWORD) [INFO] [stdout] | ^^^^^ not found in `win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in crate `win` [INFO] [stdout] --> src/main.rs:46:89 [INFO] [stdout] | [INFO] [stdout] 46 | k32::OpenProcess(win::PROCESS_QUERY_INFORMATION, win::FALSE, procid as win::DWORD) [INFO] [stdout] | ^^^^^ not found in `win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcessImageFileNameW` in crate `psapi` [INFO] [stdout] --> src/main.rs:51:20 [INFO] [stdout] | [INFO] [stdout] 51 | psapi::GetProcessImageFileNameW(process, buf.as_mut_ptr(), buf.len() as win::DWORD) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in `psapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in crate `win` [INFO] [stdout] --> src/main.rs:51:90 [INFO] [stdout] | [INFO] [stdout] 51 | psapi::GetProcessImageFileNameW(process, buf.as_mut_ptr(), buf.len() as win::DWORD) [INFO] [stdout] | ^^^^^ not found in `win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in crate `win` [INFO] [stdout] --> src/main.rs:60:43 [INFO] [stdout] | [INFO] [stdout] 60 | unsafe extern "system" fn handler(_: win::DWORD) -> win::BOOL { [INFO] [stdout] | ^^^^^ not found in `win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BOOL` in crate `win` [INFO] [stdout] --> src/main.rs:60:58 [INFO] [stdout] | [INFO] [stdout] 60 | unsafe extern "system" fn handler(_: win::DWORD) -> win::BOOL { [INFO] [stdout] | ^^^^ not found in `win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `TerminateJobObject` in crate `k32` [INFO] [stdout] --> src/main.rs:64:20 [INFO] [stdout] | [INFO] [stdout] 64 | let err = k32::TerminateJobObject(job_handle, 273); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in `k32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TRUE` in crate `win` [INFO] [stdout] --> src/main.rs:66:10 [INFO] [stdout] | [INFO] [stdout] 66 | win::TRUE [INFO] [stdout] | ^^^^ not found in `win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateJobObjectW` in crate `k32` [INFO] [stdout] --> src/main.rs:81:36 [INFO] [stdout] | [INFO] [stdout] 81 | let mut handle = unsafe { k32::CreateJobObjectW(null_mut(), name.as_ptr()) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in `k32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in crate `k32` [INFO] [stdout] --> src/main.rs:83:22 [INFO] [stdout] | [INFO] [stdout] 83 | if unsafe { k32::GetLastError() } == win::ERROR_ALREADY_EXISTS { [INFO] [stdout] | ^^^^^^^^^^^^ not found in `k32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ERROR_ALREADY_EXISTS` in crate `win` [INFO] [stdout] --> src/main.rs:83:47 [INFO] [stdout] | [INFO] [stdout] 83 | if unsafe { k32::GetLastError() } == win::ERROR_ALREADY_EXISTS { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in `win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `TerminateJobObject` in crate `k32` [INFO] [stdout] --> src/main.rs:87:33 [INFO] [stdout] | [INFO] [stdout] 87 | let err = unsafe { k32::TerminateJobObject(handle, 9001) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in `k32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateJobObjectW` in crate `k32` [INFO] [stdout] --> src/main.rs:91:32 [INFO] [stdout] | [INFO] [stdout] 91 | handle = unsafe { k32::CreateJobObjectW(null_mut(), name.as_ptr()) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in `k32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JOBOBJECT_EXTENDED_LIMIT_INFORMATION` in crate `win` [INFO] [stdout] --> src/main.rs:96:24 [INFO] [stdout] | [INFO] [stdout] 96 | let mut info: win::JOBOBJECT_EXTENDED_LIMIT_INFORMATION = unsafe { zeroed() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE` in crate `win` [INFO] [stdout] --> src/main.rs:97:50 [INFO] [stdout] | [INFO] [stdout] 97 | info.BasicLimitInformation.LimitFlags = win::JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetInformationJobObject` in crate `k32` [INFO] [stdout] --> src/main.rs:98:29 [INFO] [stdout] | [INFO] [stdout] 98 | let err = unsafe { k32::SetInformationJobObject( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in `k32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `JobObjectExtendedLimitInformation` in crate `win` [INFO] [stdout] --> src/main.rs:99:22 [INFO] [stdout] | [INFO] [stdout] 99 | handle, win::JobObjectExtendedLimitInformation, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in crate `win` [INFO] [stdout] --> src/main.rs:100:37 [INFO] [stdout] | [INFO] [stdout] 100 | &mut info as *mut _ as win::LPVOID, size_of_val(&info) as win::DWORD, [INFO] [stdout] | ^^^^^^ not found in `win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in crate `win` [INFO] [stdout] --> src/main.rs:100:72 [INFO] [stdout] | [INFO] [stdout] 100 | &mut info as *mut _ as win::LPVOID, size_of_val(&info) as win::DWORD, [INFO] [stdout] | ^^^^^ not found in `win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetCurrentProcess` in crate `k32` [INFO] [stdout] --> src/main.rs:104:33 [INFO] [stdout] | [INFO] [stdout] 104 | let process = unsafe { k32::GetCurrentProcess() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in `k32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `AssignProcessToJobObject` in crate `k32` [INFO] [stdout] --> src/main.rs:105:29 [INFO] [stdout] | [INFO] [stdout] 105 | let err = unsafe { k32::AssignProcessToJobObject(handle, process) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in `k32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetConsoleCtrlHandler` in crate `k32` [INFO] [stdout] --> src/main.rs:108:29 [INFO] [stdout] | [INFO] [stdout] 108 | let err = unsafe { k32::SetConsoleCtrlHandler(Some(handler), win::TRUE) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in `k32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TRUE` in crate `win` [INFO] [stdout] --> src/main.rs:108:71 [INFO] [stdout] | [INFO] [stdout] 108 | let err = unsafe { k32::SetConsoleCtrlHandler(Some(handler), win::TRUE) }; [INFO] [stdout] | ^^^^ not found in `win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in crate `win` [INFO] [stdout] --> src/main.rs:18:29 [INFO] [stdout] | [INFO] [stdout] 18 | static mut job_handle: win::HANDLE = 0 as win::HANDLE; [INFO] [stdout] | ^^^^^^ not found in `win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in crate `win` [INFO] [stdout] --> src/main.rs:18:48 [INFO] [stdout] | [INFO] [stdout] 18 | static mut job_handle: win::HANDLE = 0 as win::HANDLE; [INFO] [stdout] | ^^^^^^ not found in `win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in crate `win` [INFO] [stdout] --> src/main.rs:20:31 [INFO] [stdout] | [INFO] [stdout] 20 | fn print_zombies(handle: win::HANDLE) { [INFO] [stdout] | ^^^^^^ not found in `win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JOBOBJECT_BASIC_PROCESS_ID_LIST` in crate `win` [INFO] [stdout] --> src/main.rs:24:40 [INFO] [stdout] | [INFO] [stdout] 24 | #[repr(C)] struct ProcessList(win::JOBOBJECT_BASIC_PROCESS_ID_LIST, [win::ULONG_PTR; NPROC]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ULONG_PTR` in crate `win` [INFO] [stdout] --> src/main.rs:24:79 [INFO] [stdout] | [INFO] [stdout] 24 | #[repr(C)] struct ProcessList(win::JOBOBJECT_BASIC_PROCESS_ID_LIST, [win::ULONG_PTR; NPROC]); [INFO] [stdout] | ^^^^^^^^^ not found in `win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `JOBOBJECT_BASIC_PROCESS_ID_LIST` in crate `win` [INFO] [stdout] --> src/main.rs:25:38 [INFO] [stdout] | [INFO] [stdout] 25 | let mut procs = ProcessList(win::JOBOBJECT_BASIC_PROCESS_ID_LIST { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in crate `win` [INFO] [stdout] --> src/main.rs:26:50 [INFO] [stdout] | [INFO] [stdout] 26 | NumberOfAssignedProcesses: NPROC as win::DWORD, [INFO] [stdout] | ^^^^^ not found in `win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `QueryInformationJobObject` in crate `k32` [INFO] [stdout] --> src/main.rs:31:22 [INFO] [stdout] | [INFO] [stdout] 31 | if unsafe { k32::QueryInformationJobObject( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `k32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `JobObjectBasicProcessIdList` in crate `win` [INFO] [stdout] --> src/main.rs:32:22 [INFO] [stdout] | [INFO] [stdout] 32 | handle, win::JobObjectBasicProcessIdList, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in crate `win` [INFO] [stdout] --> src/main.rs:33:38 [INFO] [stdout] | [INFO] [stdout] 33 | &mut procs as *mut _ as win::LPVOID, size_of_val(&procs) as win::DWORD, null_mut(), [INFO] [stdout] | ^^^^^^ not found in `win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in crate `win` [INFO] [stdout] --> src/main.rs:33:74 [INFO] [stdout] | [INFO] [stdout] 33 | &mut procs as *mut _ as win::LPVOID, size_of_val(&procs) as win::DWORD, null_mut(), [INFO] [stdout] | ^^^^^ not found in `win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in crate `k32` [INFO] [stdout] --> src/main.rs:35:26 [INFO] [stdout] | [INFO] [stdout] 35 | if unsafe { k32::GetLastError() } == win::ERROR_MORE_DATA { [INFO] [stdout] | ^^^^^^^^^^^^ not found in `k32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ERROR_MORE_DATA` in crate `win` [INFO] [stdout] --> src/main.rs:35:51 [INFO] [stdout] | [INFO] [stdout] 35 | if unsafe { k32::GetLastError() } == win::ERROR_MORE_DATA { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in `win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in crate `win` [INFO] [stdout] --> src/main.rs:37:62 [INFO] [stdout] | [INFO] [stdout] 37 | procs.0.NumberOfProcessIdsInList = NPROC as win::DWORD; [INFO] [stdout] | ^^^^^ not found in `win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `OpenProcess` in crate `k32` [INFO] [stdout] --> src/main.rs:46:18 [INFO] [stdout] | [INFO] [stdout] 46 | k32::OpenProcess(win::PROCESS_QUERY_INFORMATION, win::FALSE, procid as win::DWORD) [INFO] [stdout] | ^^^^^^^^^^^ not found in `k32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PROCESS_QUERY_INFORMATION` in crate `win` [INFO] [stdout] --> src/main.rs:46:35 [INFO] [stdout] | [INFO] [stdout] 46 | k32::OpenProcess(win::PROCESS_QUERY_INFORMATION, win::FALSE, procid as win::DWORD) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in crate `win` [INFO] [stdout] --> src/main.rs:46:67 [INFO] [stdout] | [INFO] [stdout] 46 | k32::OpenProcess(win::PROCESS_QUERY_INFORMATION, win::FALSE, procid as win::DWORD) [INFO] [stdout] | ^^^^^ not found in `win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in crate `win` [INFO] [stdout] --> src/main.rs:46:89 [INFO] [stdout] | [INFO] [stdout] 46 | k32::OpenProcess(win::PROCESS_QUERY_INFORMATION, win::FALSE, procid as win::DWORD) [INFO] [stdout] | ^^^^^ not found in `win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcessImageFileNameW` in crate `psapi` [INFO] [stdout] --> src/main.rs:51:20 [INFO] [stdout] | [INFO] [stdout] 51 | psapi::GetProcessImageFileNameW(process, buf.as_mut_ptr(), buf.len() as win::DWORD) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in `psapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in crate `win` [INFO] [stdout] --> src/main.rs:51:90 [INFO] [stdout] | [INFO] [stdout] 51 | psapi::GetProcessImageFileNameW(process, buf.as_mut_ptr(), buf.len() as win::DWORD) [INFO] [stdout] | ^^^^^ not found in `win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in crate `win` [INFO] [stdout] --> src/main.rs:60:43 [INFO] [stdout] | [INFO] [stdout] 60 | unsafe extern "system" fn handler(_: win::DWORD) -> win::BOOL { [INFO] [stdout] | ^^^^^ not found in `win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BOOL` in crate `win` [INFO] [stdout] --> src/main.rs:60:58 [INFO] [stdout] | [INFO] [stdout] 60 | unsafe extern "system" fn handler(_: win::DWORD) -> win::BOOL { [INFO] [stdout] | ^^^^ not found in `win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `TerminateJobObject` in crate `k32` [INFO] [stdout] --> src/main.rs:64:20 [INFO] [stdout] | [INFO] [stdout] 64 | let err = k32::TerminateJobObject(job_handle, 273); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in `k32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TRUE` in crate `win` [INFO] [stdout] --> src/main.rs:66:10 [INFO] [stdout] | [INFO] [stdout] 66 | win::TRUE [INFO] [stdout] | ^^^^ not found in `win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateJobObjectW` in crate `k32` [INFO] [stdout] --> src/main.rs:81:36 [INFO] [stdout] | [INFO] [stdout] 81 | let mut handle = unsafe { k32::CreateJobObjectW(null_mut(), name.as_ptr()) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in `k32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in crate `k32` [INFO] [stdout] --> src/main.rs:83:22 [INFO] [stdout] | [INFO] [stdout] 83 | if unsafe { k32::GetLastError() } == win::ERROR_ALREADY_EXISTS { [INFO] [stdout] | ^^^^^^^^^^^^ not found in `k32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ERROR_ALREADY_EXISTS` in crate `win` [INFO] [stdout] --> src/main.rs:83:47 [INFO] [stdout] | [INFO] [stdout] 83 | if unsafe { k32::GetLastError() } == win::ERROR_ALREADY_EXISTS { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in `win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `TerminateJobObject` in crate `k32` [INFO] [stdout] --> src/main.rs:87:33 [INFO] [stdout] | [INFO] [stdout] 87 | let err = unsafe { k32::TerminateJobObject(handle, 9001) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in `k32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateJobObjectW` in crate `k32` [INFO] [stdout] --> src/main.rs:91:32 [INFO] [stdout] | [INFO] [stdout] 91 | handle = unsafe { k32::CreateJobObjectW(null_mut(), name.as_ptr()) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in `k32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JOBOBJECT_EXTENDED_LIMIT_INFORMATION` in crate `win` [INFO] [stdout] --> src/main.rs:96:24 [INFO] [stdout] | [INFO] [stdout] 96 | let mut info: win::JOBOBJECT_EXTENDED_LIMIT_INFORMATION = unsafe { zeroed() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE` in crate `win` [INFO] [stdout] --> src/main.rs:97:50 [INFO] [stdout] | [INFO] [stdout] 97 | info.BasicLimitInformation.LimitFlags = win::JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetInformationJobObject` in crate `k32` [INFO] [stdout] --> src/main.rs:98:29 [INFO] [stdout] | [INFO] [stdout] 98 | let err = unsafe { k32::SetInformationJobObject( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in `k32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `JobObjectExtendedLimitInformation` in crate `win` [INFO] [stdout] --> src/main.rs:99:22 [INFO] [stdout] | [INFO] [stdout] 99 | handle, win::JobObjectExtendedLimitInformation, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in crate `win` [INFO] [stdout] --> src/main.rs:100:37 [INFO] [stdout] | [INFO] [stdout] 100 | &mut info as *mut _ as win::LPVOID, size_of_val(&info) as win::DWORD, [INFO] [stdout] | ^^^^^^ not found in `win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in crate `win` [INFO] [stdout] --> src/main.rs:100:72 [INFO] [stdout] | [INFO] [stdout] 100 | &mut info as *mut _ as win::LPVOID, size_of_val(&info) as win::DWORD, [INFO] [stdout] | ^^^^^ not found in `win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetCurrentProcess` in crate `k32` [INFO] [stdout] --> src/main.rs:104:33 [INFO] [stdout] | [INFO] [stdout] 104 | let process = unsafe { k32::GetCurrentProcess() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in `k32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `AssignProcessToJobObject` in crate `k32` [INFO] [stdout] --> src/main.rs:105:29 [INFO] [stdout] | [INFO] [stdout] 105 | let err = unsafe { k32::AssignProcessToJobObject(handle, process) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in `k32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetConsoleCtrlHandler` in crate `k32` [INFO] [stdout] --> src/main.rs:108:29 [INFO] [stdout] | [INFO] [stdout] 108 | let err = unsafe { k32::SetConsoleCtrlHandler(Some(handler), win::TRUE) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in `k32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TRUE` in crate `win` [INFO] [stdout] --> src/main.rs:108:71 [INFO] [stdout] | [INFO] [stdout] 108 | let err = unsafe { k32::SetConsoleCtrlHandler(Some(handler), win::TRUE) }; [INFO] [stdout] | ^^^^ not found in `win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_wide` found for struct `OsString` in the current scope [INFO] [stdout] --> src/main.rs:54:30 [INFO] [stdout] | [INFO] [stdout] 54 | let name = OsString::from_wide(&buf[..len as usize]); [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `OsString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_wide` found for struct `OsString` in the current scope [INFO] [stdout] --> src/main.rs:54:30 [INFO] [stdout] | [INFO] [stdout] 54 | let name = OsString::from_wide(&buf[..len as usize]); [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `OsString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode_wide` found for reference `&OsStr` in the current scope [INFO] [stdout] --> src/main.rs:78:44 [INFO] [stdout] | [INFO] [stdout] 78 | let mut name: Vec<_> = dir.as_os_str().encode_wide().chain(Some(0)).collect(); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&OsStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode_wide` found for reference `&OsStr` in the current scope [INFO] [stdout] --> src/main.rs:78:44 [INFO] [stdout] | [INFO] [stdout] 78 | let mut name: Vec<_> = dir.as_os_str().encode_wide().chain(Some(0)).collect(); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&OsStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 42 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0425, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 42 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0422, 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 `dojob` [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" "6d059e16c9da4754c7461e4a9e40b37dbfdbe7b9334b9a1569f6846e4f47f3b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6d059e16c9da4754c7461e4a9e40b37dbfdbe7b9334b9a1569f6846e4f47f3b3", kill_on_drop: false }` [INFO] [stdout] 6d059e16c9da4754c7461e4a9e40b37dbfdbe7b9334b9a1569f6846e4f47f3b3