[INFO] cloning repository https://github.com/alexcrichton/rustjob [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/alexcrichton/rustjob" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falexcrichton%2Frustjob", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falexcrichton%2Frustjob'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 07d2601c8bf63d06584b2c4e248fd2c65c18d224 [INFO] checking alexcrichton/rustjob against try#f47dd4da3ae8c32c9e65d307bfe640b143e674df for pr-77526 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falexcrichton%2Frustjob" "/workspace/builds/worker-11/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-11/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/alexcrichton/rustjob on toolchain f47dd4da3ae8c32c9e65d307bfe640b143e674df [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/alexcrichton/rustjob [INFO] finished tweaking git repo https://github.com/alexcrichton/rustjob [INFO] tweaked toml for git repo https://github.com/alexcrichton/rustjob written to /workspace/builds/worker-11/source/Cargo.toml [INFO] crate git repo https://github.com/alexcrichton/rustjob already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] error: the lock file /workspace/builds/worker-11/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" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "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-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9f68ad519b5803c0e792e4c0c9fc142ca30324731f06d07fa3e726effaf8037b [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" "9f68ad519b5803c0e792e4c0c9fc142ca30324731f06d07fa3e726effaf8037b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9f68ad519b5803c0e792e4c0c9fc142ca30324731f06d07fa3e726effaf8037b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9f68ad519b5803c0e792e4c0c9fc142ca30324731f06d07fa3e726effaf8037b", kill_on_drop: false }` [INFO] [stdout] 9f68ad519b5803c0e792e4c0c9fc142ca30324731f06d07fa3e726effaf8037b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9ce53e8533fbe877eec54ead0b17f6458c80f1ef4b59fb250851e4eef528ec41 [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" "9ce53e8533fbe877eec54ead0b17f6458c80f1ef4b59fb250851e4eef528ec41", kill_on_drop: false }` [INFO] [stderr] Compiling winapi-build v0.1.1 [INFO] [stderr] Checking winapi v0.2.8 [INFO] [stderr] Compiling psapi-sys v0.1.1 [INFO] [stderr] Compiling kernel32-sys v0.2.2 [INFO] [stderr] Checking rustjob v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/main.rs:31:14 [INFO] [stdout] | [INFO] [stdout] 31 | 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 `winapi` [INFO] [stdout] --> src/main.rs:79:23 [INFO] [stdout] | [INFO] [stdout] 79 | struct Handle(winapi::HANDLE); [INFO] [stdout] | ^^^^^^ not found in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/main.rs:31:14 [INFO] [stdout] | [INFO] [stdout] 31 | use std::os::windows::prelude::*; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseHandle` in crate `kernel32` [INFO] [stdout] --> src/main.rs:84:23 [INFO] [stdout] | [INFO] [stdout] 84 | kernel32::CloseHandle(self.0); [INFO] [stdout] | ^^^^^^^^^^^ not found in `kernel32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateJobObjectW` in this scope [INFO] [stdout] --> src/main.rs:99:15 [INFO] [stdout] | [INFO] [stdout] 99 | let job = CreateJobObjectW(0 as *mut _, 0 as *const _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JOBOBJECT_EXTENDED_LIMIT_INFORMATION` in this scope [INFO] [stdout] --> src/main.rs:104:19 [INFO] [stdout] | [INFO] [stdout] 104 | let mut info: JOBOBJECT_EXTENDED_LIMIT_INFORMATION = mem::zeroed(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE` in this scope [INFO] [stdout] --> src/main.rs:105:45 [INFO] [stdout] | [INFO] [stdout] 105 | info.BasicLimitInformation.LimitFlags = JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetInformationJobObject` in this scope [INFO] [stdout] --> src/main.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | let r = SetInformationJobObject(job, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `JobObjectExtendedLimitInformation` in this scope [INFO] [stdout] --> src/main.rs:107:37 [INFO] [stdout] | [INFO] [stdout] 107 | ... JobObjectExtendedLimitInformation, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/main.rs:108:60 [INFO] [stdout] | [INFO] [stdout] 108 | ... &mut info as *mut _ as LPVOID, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/main.rs:109:64 [INFO] [stdout] | [INFO] [stdout] 109 | ... mem::size_of_val(&info) as DWORD); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `AssignProcessToJobObject` in this scope [INFO] [stdout] --> src/main.rs:113:13 [INFO] [stdout] | [INFO] [stdout] 113 | let r = AssignProcessToJobObject(job, GetCurrentProcess()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetCurrentProcess` in this scope [INFO] [stdout] --> src/main.rs:113:43 [INFO] [stdout] | [INFO] [stdout] 113 | let r = AssignProcessToJobObject(job, GetCurrentProcess()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JOBOBJECT_BASIC_PROCESS_ID_LIST` in this scope [INFO] [stdout] --> src/main.rs:134:17 [INFO] [stdout] | [INFO] [stdout] 134 | header: JOBOBJECT_BASIC_PROCESS_ID_LIST, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ULONG_PTR` in this scope [INFO] [stdout] --> src/main.rs:135:16 [INFO] [stdout] | [INFO] [stdout] 135 | list: [ULONG_PTR; 1024], [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `QueryInformationJobObject` in this scope [INFO] [stdout] --> src/main.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | let r = QueryInformationJobObject(job.0, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `JobObjectBasicProcessIdList` in this scope [INFO] [stdout] --> src/main.rs:140:39 [INFO] [stdout] | [INFO] [stdout] 140 | ... JobObjectBasicProcessIdList, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/main.rs:141:62 [INFO] [stdout] | [INFO] [stdout] 141 | ... &mut jobs as *mut _ as LPVOID, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/main.rs:142:66 [INFO] [stdout] | [INFO] [stdout] 142 | ... mem::size_of_val(&jobs) as DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/main.rs:155:18 [INFO] [stdout] | [INFO] [stdout] 155 | if id as DWORD == GetCurrentProcessId() { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetCurrentProcessId` in this scope [INFO] [stdout] --> src/main.rs:155:27 [INFO] [stdout] | [INFO] [stdout] 155 | if id as DWORD == GetCurrentProcessId() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `OpenProcess` in this scope [INFO] [stdout] --> src/main.rs:161:17 [INFO] [stdout] | [INFO] [stdout] 161 | let p = OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_TERMINATE | [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/main.rs:161:29 [INFO] [stdout] | [INFO] [stdout] 161 | let p = OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_TERMINATE | [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PROCESS_TERMINATE` in this scope [INFO] [stdout] --> src/main.rs:161:57 [INFO] [stdout] | [INFO] [stdout] 161 | let p = OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_TERMINATE | [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SYNCHRONIZE` in this scope [INFO] [stdout] --> src/main.rs:162:33 [INFO] [stdout] | [INFO] [stdout] 162 | ... SYNCHRONIZE, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/main.rs:163:29 [INFO] [stdout] | [INFO] [stdout] 163 | ... FALSE, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/main.rs:164:35 [INFO] [stdout] | [INFO] [stdout] 164 | ... id as DWORD); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcessImageFileNameW` in this scope [INFO] [stdout] --> src/main.rs:173:17 [INFO] [stdout] | [INFO] [stdout] 173 | let r = GetProcessImageFileNameW(p.0, buf.as_mut_ptr(), buf.len() as DWORD); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/main.rs:173:78 [INFO] [stdout] | [INFO] [stdout] 173 | let r = GetProcessImageFileNameW(p.0, buf.as_mut_ptr(), buf.len() as DWORD); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `IsProcessInJob` in this scope [INFO] [stdout] --> src/main.rs:184:17 [INFO] [stdout] | [INFO] [stdout] 184 | let r = IsProcessInJob(p.0, job.0, &mut res); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TRUE` in this scope [INFO] [stdout] --> src/main.rs:188:19 [INFO] [stdout] | [INFO] [stdout] 188 | if res != TRUE { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `TerminateProcess` in this scope [INFO] [stdout] --> src/main.rs:212:17 [INFO] [stdout] | [INFO] [stdout] 212 | let r = TerminateProcess(p.0, 1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WaitForSingleObject` in this scope [INFO] [stdout] --> src/main.rs:219:17 [INFO] [stdout] | [INFO] [stdout] 219 | let r = WaitForSingleObject(p.0, INFINITE); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `INFINITE` in this scope [INFO] [stdout] --> src/main.rs:219:42 [INFO] [stdout] | [INFO] [stdout] 219 | let r = WaitForSingleObject(p.0, INFINITE); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JOBOBJECT_EXTENDED_LIMIT_INFORMATION` in this scope [INFO] [stdout] --> src/main.rs:243:19 [INFO] [stdout] | [INFO] [stdout] 243 | let mut info: JOBOBJECT_EXTENDED_LIMIT_INFORMATION = mem::zeroed(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetInformationJobObject` in this scope [INFO] [stdout] --> src/main.rs:244:13 [INFO] [stdout] | [INFO] [stdout] 244 | let r = SetInformationJobObject(job.0, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `JobObjectExtendedLimitInformation` in this scope [INFO] [stdout] --> src/main.rs:245:37 [INFO] [stdout] | [INFO] [stdout] 245 | ... JobObjectExtendedLimitInformation, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/main.rs:246:60 [INFO] [stdout] | [INFO] [stdout] 246 | ... &mut info as *mut _ as LPVOID, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/main.rs:247:64 [INFO] [stdout] | [INFO] [stdout] 247 | ... mem::size_of_val(&info) as DWORD); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `kernel32::*` [INFO] [stdout] --> src/main.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | use kernel32::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `winapi::*` [INFO] [stdout] --> src/main.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 97 | use winapi::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `kernel32::*` [INFO] [stdout] --> src/main.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 128 | use kernel32::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `psapi::*` [INFO] [stdout] --> src/main.rs:129:9 [INFO] [stdout] | [INFO] [stdout] 129 | use psapi::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `winapi::*` [INFO] [stdout] --> src/main.rs:130:9 [INFO] [stdout] | [INFO] [stdout] 130 | use winapi::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `kernel32::*` [INFO] [stdout] --> src/main.rs:240:9 [INFO] [stdout] | [INFO] [stdout] 240 | use kernel32::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `winapi::*` [INFO] [stdout] --> src/main.rs:241:9 [INFO] [stdout] | [INFO] [stdout] 241 | use winapi::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in crate `winapi` [INFO] [stdout] --> src/main.rs:79:23 [INFO] [stdout] | [INFO] [stdout] 79 | struct Handle(winapi::HANDLE); [INFO] [stdout] | ^^^^^^ not found in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseHandle` in crate `kernel32` [INFO] [stdout] --> src/main.rs:84:23 [INFO] [stdout] | [INFO] [stdout] 84 | kernel32::CloseHandle(self.0); [INFO] [stdout] | ^^^^^^^^^^^ not found in `kernel32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateJobObjectW` in this scope [INFO] [stdout] --> src/main.rs:99:15 [INFO] [stdout] | [INFO] [stdout] 99 | let job = CreateJobObjectW(0 as *mut _, 0 as *const _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JOBOBJECT_EXTENDED_LIMIT_INFORMATION` in this scope [INFO] [stdout] --> src/main.rs:104:19 [INFO] [stdout] | [INFO] [stdout] 104 | let mut info: JOBOBJECT_EXTENDED_LIMIT_INFORMATION = mem::zeroed(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE` in this scope [INFO] [stdout] --> src/main.rs:105:45 [INFO] [stdout] | [INFO] [stdout] 105 | info.BasicLimitInformation.LimitFlags = JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetInformationJobObject` in this scope [INFO] [stdout] --> src/main.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | let r = SetInformationJobObject(job, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `JobObjectExtendedLimitInformation` in this scope [INFO] [stdout] --> src/main.rs:107:37 [INFO] [stdout] | [INFO] [stdout] 107 | ... JobObjectExtendedLimitInformation, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/main.rs:108:60 [INFO] [stdout] | [INFO] [stdout] 108 | ... &mut info as *mut _ as LPVOID, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/main.rs:109:64 [INFO] [stdout] | [INFO] [stdout] 109 | ... mem::size_of_val(&info) as DWORD); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `AssignProcessToJobObject` in this scope [INFO] [stdout] --> src/main.rs:113:13 [INFO] [stdout] | [INFO] [stdout] 113 | let r = AssignProcessToJobObject(job, GetCurrentProcess()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetCurrentProcess` in this scope [INFO] [stdout] --> src/main.rs:113:43 [INFO] [stdout] | [INFO] [stdout] 113 | let r = AssignProcessToJobObject(job, GetCurrentProcess()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JOBOBJECT_BASIC_PROCESS_ID_LIST` in this scope [INFO] [stdout] --> src/main.rs:134:17 [INFO] [stdout] | [INFO] [stdout] 134 | header: JOBOBJECT_BASIC_PROCESS_ID_LIST, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ULONG_PTR` in this scope [INFO] [stdout] --> src/main.rs:135:16 [INFO] [stdout] | [INFO] [stdout] 135 | list: [ULONG_PTR; 1024], [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `QueryInformationJobObject` in this scope [INFO] [stdout] --> src/main.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | let r = QueryInformationJobObject(job.0, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `JobObjectBasicProcessIdList` in this scope [INFO] [stdout] --> src/main.rs:140:39 [INFO] [stdout] | [INFO] [stdout] 140 | ... JobObjectBasicProcessIdList, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/main.rs:141:62 [INFO] [stdout] | [INFO] [stdout] 141 | ... &mut jobs as *mut _ as LPVOID, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/main.rs:142:66 [INFO] [stdout] | [INFO] [stdout] 142 | ... mem::size_of_val(&jobs) as DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/main.rs:155:18 [INFO] [stdout] | [INFO] [stdout] 155 | if id as DWORD == GetCurrentProcessId() { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetCurrentProcessId` in this scope [INFO] [stdout] --> src/main.rs:155:27 [INFO] [stdout] | [INFO] [stdout] 155 | if id as DWORD == GetCurrentProcessId() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `OpenProcess` in this scope [INFO] [stdout] --> src/main.rs:161:17 [INFO] [stdout] | [INFO] [stdout] 161 | let p = OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_TERMINATE | [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/main.rs:161:29 [INFO] [stdout] | [INFO] [stdout] 161 | let p = OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_TERMINATE | [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PROCESS_TERMINATE` in this scope [INFO] [stdout] --> src/main.rs:161:57 [INFO] [stdout] | [INFO] [stdout] 161 | let p = OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_TERMINATE | [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SYNCHRONIZE` in this scope [INFO] [stdout] --> src/main.rs:162:33 [INFO] [stdout] | [INFO] [stdout] 162 | ... SYNCHRONIZE, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/main.rs:163:29 [INFO] [stdout] | [INFO] [stdout] 163 | ... FALSE, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/main.rs:164:35 [INFO] [stdout] | [INFO] [stdout] 164 | ... id as DWORD); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcessImageFileNameW` in this scope [INFO] [stdout] --> src/main.rs:173:17 [INFO] [stdout] | [INFO] [stdout] 173 | let r = GetProcessImageFileNameW(p.0, buf.as_mut_ptr(), buf.len() as DWORD); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/main.rs:173:78 [INFO] [stdout] | [INFO] [stdout] 173 | let r = GetProcessImageFileNameW(p.0, buf.as_mut_ptr(), buf.len() as DWORD); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `IsProcessInJob` in this scope [INFO] [stdout] --> src/main.rs:184:17 [INFO] [stdout] | [INFO] [stdout] 184 | let r = IsProcessInJob(p.0, job.0, &mut res); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TRUE` in this scope [INFO] [stdout] --> src/main.rs:188:19 [INFO] [stdout] | [INFO] [stdout] 188 | if res != TRUE { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `TerminateProcess` in this scope [INFO] [stdout] --> src/main.rs:212:17 [INFO] [stdout] | [INFO] [stdout] 212 | let r = TerminateProcess(p.0, 1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WaitForSingleObject` in this scope [INFO] [stdout] --> src/main.rs:219:17 [INFO] [stdout] | [INFO] [stdout] 219 | let r = WaitForSingleObject(p.0, INFINITE); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `INFINITE` in this scope [INFO] [stdout] --> src/main.rs:219:42 [INFO] [stdout] | [INFO] [stdout] 219 | let r = WaitForSingleObject(p.0, INFINITE); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JOBOBJECT_EXTENDED_LIMIT_INFORMATION` in this scope [INFO] [stdout] --> src/main.rs:243:19 [INFO] [stdout] | [INFO] [stdout] 243 | let mut info: JOBOBJECT_EXTENDED_LIMIT_INFORMATION = mem::zeroed(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetInformationJobObject` in this scope [INFO] [stdout] --> src/main.rs:244:13 [INFO] [stdout] | [INFO] [stdout] 244 | let r = SetInformationJobObject(job.0, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `JobObjectExtendedLimitInformation` in this scope [INFO] [stdout] --> src/main.rs:245:37 [INFO] [stdout] | [INFO] [stdout] 245 | ... JobObjectExtendedLimitInformation, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/main.rs:246:60 [INFO] [stdout] | [INFO] [stdout] 246 | ... &mut info as *mut _ as LPVOID, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/main.rs:247:64 [INFO] [stdout] | [INFO] [stdout] 247 | ... mem::size_of_val(&info) as DWORD); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `kernel32::*` [INFO] [stdout] --> src/main.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | use kernel32::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `winapi::*` [INFO] [stdout] --> src/main.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 97 | use winapi::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `kernel32::*` [INFO] [stdout] --> src/main.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 128 | use kernel32::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `psapi::*` [INFO] [stdout] --> src/main.rs:129:9 [INFO] [stdout] | [INFO] [stdout] 129 | use psapi::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `winapi::*` [INFO] [stdout] --> src/main.rs:130:9 [INFO] [stdout] | [INFO] [stdout] 130 | use winapi::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `kernel32::*` [INFO] [stdout] --> src/main.rs:240:9 [INFO] [stdout] | [INFO] [stdout] 240 | use kernel32::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `winapi::*` [INFO] [stdout] --> src/main.rs:241:9 [INFO] [stdout] | [INFO] [stdout] 241 | use winapi::*; [INFO] [stdout] | ^^^^^^^^^ [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:177:27 [INFO] [stdout] | [INFO] [stdout] 177 | let s = OsString::from_wide(&buf[..r as usize]); [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `OsString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 39 previous errors; 7 warnings emitted [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] [stdout] error[E0599]: no function or associated item named `from_wide` found for struct `OsString` in the current scope [INFO] [stdout] --> src/main.rs:177:27 [INFO] [stdout] | [INFO] [stdout] 177 | let s = OsString::from_wide(&buf[..r as usize]); [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `OsString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 39 previous errors; 7 warnings emitted [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 `rustjob` [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" "9ce53e8533fbe877eec54ead0b17f6458c80f1ef4b59fb250851e4eef528ec41", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9ce53e8533fbe877eec54ead0b17f6458c80f1ef4b59fb250851e4eef528ec41", kill_on_drop: false }` [INFO] [stdout] 9ce53e8533fbe877eec54ead0b17f6458c80f1ef4b59fb250851e4eef528ec41