[INFO] cloning repository https://github.com/vivashu27/rustbox [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/vivashu27/rustbox" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvivashu27%2Frustbox", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvivashu27%2Frustbox'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 96cc22a58f3fe3741286a9ee93a341ac0c0f78df [INFO] checking vivashu27/rustbox against try#2277c63fa464d237b17b68d3b87f9fbb89e58a3e for pr-133570-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvivashu27%2Frustbox" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/vivashu27/rustbox on toolchain 2277c63fa464d237b17b68d3b87f9fbb89e58a3e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2277c63fa464d237b17b68d3b87f9fbb89e58a3e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/vivashu27/rustbox [INFO] finished tweaking git repo https://github.com/vivashu27/rustbox [INFO] tweaked toml for git repo https://github.com/vivashu27/rustbox written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/vivashu27/rustbox already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2277c63fa464d237b17b68d3b87f9fbb89e58a3e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking vivashu27/rustbox against try#2277c63fa464d237b17b68d3b87f9fbb89e58a3e for pr-133570-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvivashu27%2Frustbox" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/vivashu27/rustbox on toolchain 2277c63fa464d237b17b68d3b87f9fbb89e58a3e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2277c63fa464d237b17b68d3b87f9fbb89e58a3e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/vivashu27/rustbox [INFO] finished tweaking git repo https://github.com/vivashu27/rustbox [INFO] tweaked toml for git repo https://github.com/vivashu27/rustbox written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/vivashu27/rustbox already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2277c63fa464d237b17b68d3b87f9fbb89e58a3e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+2277c63fa464d237b17b68d3b87f9fbb89e58a3e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a4ae8c928dbb21f30a55e2b611edb5178fdd0d5a837b3b840772117375747926 [INFO] running `Command { std: "docker" "start" "-a" "a4ae8c928dbb21f30a55e2b611edb5178fdd0d5a837b3b840772117375747926", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a4ae8c928dbb21f30a55e2b611edb5178fdd0d5a837b3b840772117375747926", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a4ae8c928dbb21f30a55e2b611edb5178fdd0d5a837b3b840772117375747926", kill_on_drop: false }` [INFO] [stdout] a4ae8c928dbb21f30a55e2b611edb5178fdd0d5a837b3b840772117375747926 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+2277c63fa464d237b17b68d3b87f9fbb89e58a3e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 479d3a02d56ad3260cf367e6c79cbd0df46a7c8051a46683f85753f4a3e02893 [INFO] running `Command { std: "docker" "start" "-a" "479d3a02d56ad3260cf367e6c79cbd0df46a7c8051a46683f85753f4a3e02893", kill_on_drop: false }` [INFO] [stderr] Checking rustbox v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/main.rs:11:6 [INFO] [stdout] | [INFO] [stdout] 11 | use winapi::um::tlhelp32::*; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use winapi::um::wininet::InternetCheckConnectionA; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use winapi::shared::minwindef::HKEY; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::um::synchapi::Sleep; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use winapi::um::minwinbase::SYSTEMTIME; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use winapi::shared::ntdef::ULARGE_INTEGER; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use winapi::um::sysinfoapi::GetTickCount; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use winapi::um::sysinfoapi::{GetSystemInfo,SYSTEM_INFO}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use winapi::shared::minwindef::DWORD; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use winapi::um::sysinfoapi::{GetSystemTime,LPMEMORYSTATUSEX,MEMORYSTATUSEX,GlobalMemoryStatusEx}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use winapi::um::fileapi::GetDiskFreeSpaceExW; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use winapi::um::winreg::{RegOpenKeyExA, RegCloseKey}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/main.rs:11:6 [INFO] [stdout] | [INFO] [stdout] 11 | use winapi::um::tlhelp32::*; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use winapi::um::wininet::InternetCheckConnectionA; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use winapi::shared::minwindef::HKEY; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::um::synchapi::Sleep; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use winapi::um::minwinbase::SYSTEMTIME; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `winapi::um::wininet::InternetCheckConnectionA`, `winapi::shared::minwindef::HKEY`, `winapi::um::synchapi::Sleep`, `winapi::um::minwinbase::SYSTEMTIME`, `winapi::shared::ntdef::ULARGE_INTEGER`, `winapi::um::sysinfoapi::GetTickCount`, `winapi::um::sysinfoapi::GetSystemInfo`, `winapi::um::sysinfoapi::SYSTEM_INFO`, `winapi::shared::minwindef::DWORD`, `winapi::um::sysinfoapi::GetSystemTime`, `winapi::um::sysinfoapi::LPMEMORYSTATUSEX`, `winapi::um::sysinfoapi::MEMORYSTATUSEX`, `winapi::um::sysinfoapi::GlobalMemoryStatusEx`, `winapi::um::fileapi::GetDiskFreeSpaceExW`, `winapi::um::winreg::RegOpenKeyExA`, `winapi::um::winreg::RegCloseKey` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use winapi::um::wininet::InternetCheckConnectionA; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 8 | use winapi::shared::minwindef::HKEY; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 9 | use winapi::um::synchapi::Sleep; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | use winapi::um::minwinbase::SYSTEMTIME; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | use winapi::shared::ntdef::ULARGE_INTEGER; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | use winapi::um::sysinfoapi::GetTickCount; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 15 | use winapi::um::sysinfoapi::{GetSystemInfo,SYSTEM_INFO}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] 16 | use winapi::shared::minwindef::DWORD; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 17 | use winapi::um::sysinfoapi::{GetSystemTime,LPMEMORYSTATUSEX,MEMORYSTATUSEX,GlobalMemoryStatusEx}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 18 | use winapi::um::fileapi::GetDiskFreeSpaceExW; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 19 | use winapi::um::winreg::{RegOpenKeyExA, RegCloseKey}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use winapi::shared::ntdef::ULARGE_INTEGER; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use winapi::um::sysinfoapi::GetTickCount; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use winapi::um::sysinfoapi::{GetSystemInfo,SYSTEM_INFO}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use winapi::shared::minwindef::DWORD; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use winapi::um::sysinfoapi::{GetSystemTime,LPMEMORYSTATUSEX,MEMORYSTATUSEX,GlobalMemoryStatusEx}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use winapi::um::fileapi::GetDiskFreeSpaceExW; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use winapi::um::winreg::{RegOpenKeyExA, RegCloseKey}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `winapi::um::wininet::InternetCheckConnectionA`, `winapi::shared::minwindef::HKEY`, `winapi::um::synchapi::Sleep`, `winapi::um::minwinbase::SYSTEMTIME`, `winapi::shared::ntdef::ULARGE_INTEGER`, `winapi::um::sysinfoapi::GetTickCount`, `winapi::um::sysinfoapi::GetSystemInfo`, `winapi::um::sysinfoapi::SYSTEM_INFO`, `winapi::shared::minwindef::DWORD`, `winapi::um::sysinfoapi::GetSystemTime`, `winapi::um::sysinfoapi::LPMEMORYSTATUSEX`, `winapi::um::sysinfoapi::MEMORYSTATUSEX`, `winapi::um::sysinfoapi::GlobalMemoryStatusEx`, `winapi::um::fileapi::GetDiskFreeSpaceExW`, `winapi::um::winreg::RegOpenKeyExA`, `winapi::um::winreg::RegCloseKey` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use winapi::um::wininet::InternetCheckConnectionA; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 8 | use winapi::shared::minwindef::HKEY; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 9 | use winapi::um::synchapi::Sleep; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | use winapi::um::minwinbase::SYSTEMTIME; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | use winapi::shared::ntdef::ULARGE_INTEGER; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | use winapi::um::sysinfoapi::GetTickCount; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 15 | use winapi::um::sysinfoapi::{GetSystemInfo,SYSTEM_INFO}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] 16 | use winapi::shared::minwindef::DWORD; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 17 | use winapi::um::sysinfoapi::{GetSystemTime,LPMEMORYSTATUSEX,MEMORYSTATUSEX,GlobalMemoryStatusEx}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 18 | use winapi::um::fileapi::GetDiskFreeSpaceExW; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 19 | use winapi::um::winreg::{RegOpenKeyExA, RegCloseKey}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/main.rs:51:23 [INFO] [stdout] | [INFO] [stdout] 51 | let pshandle:winapi::um::winnt::HANDLE=CreateToolhelp32Snapshot(0x00000002, 0); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/main.rs:52:25 [INFO] [stdout] | [INFO] [stdout] 52 | if pshandle != winapi::um::handleapi::INVALID_HANDLE_VALUE{ [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/main.rs:51:23 [INFO] [stdout] | [INFO] [stdout] 51 | let pshandle:winapi::um::winnt::HANDLE=CreateToolhelp32Snapshot(0x00000002, 0); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/main.rs:108:17 [INFO] [stdout] | [INFO] [stdout] 108 | winapi::um::winreg::HKEY_LOCAL_MACHINE, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/main.rs:52:25 [INFO] [stdout] | [INFO] [stdout] 52 | if pshandle != winapi::um::handleapi::INVALID_HANDLE_VALUE{ [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/main.rs:111:17 [INFO] [stdout] | [INFO] [stdout] 111 | winapi::um::winnt::KEY_READ , [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/main.rs:112:35 [INFO] [stdout] | [INFO] [stdout] 112 | hkey as *mut *mut winapi::shared::minwindef::HKEY__ [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/main.rs:114:26 [INFO] [stdout] | [INFO] [stdout] 114 | if result == winapi::shared::winerror::ERROR_SUCCESS as i32{ [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/main.rs:108:17 [INFO] [stdout] | [INFO] [stdout] 108 | winapi::um::winreg::HKEY_LOCAL_MACHINE, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/main.rs:115:30 [INFO] [stdout] | [INFO] [stdout] 115 | if(result != winapi::shared::winerror::ERROR_FILE_NOT_FOUND as i32){ [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/main.rs:181:76 [INFO] [stdout] | [INFO] [stdout] 181 | if(InternetCheckConnectionA("https://google.com".as_ptr() as *const i8,winapi::um::wininet::FLAG_ICC_FORCE_CONNECTION , 0)!=0){ [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/main.rs:111:17 [INFO] [stdout] | [INFO] [stdout] 111 | winapi::um::winnt::KEY_READ , [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/main.rs:215:25 [INFO] [stdout] | [INFO] [stdout] 215 | null_mut() as *mut winapi::um::winnt::ULARGE_INTEGER, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/main.rs:112:35 [INFO] [stdout] | [INFO] [stdout] 112 | hkey as *mut *mut winapi::shared::minwindef::HKEY__ [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/main.rs:216:46 [INFO] [stdout] | [INFO] [stdout] 216 | &mut total_space, null_mut() as *mut winapi::um::winnt::ULARGE_INTEGER)!=0){ [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PROCESSENTRY32` in this scope [INFO] [stdout] --> src/main.rs:53:29 [INFO] [stdout] | [INFO] [stdout] 53 | let mut psentry:PROCESSENTRY32=std::mem::zeroed(); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PROCESSENTRY32` in this scope [INFO] [stdout] --> src/main.rs:54:50 [INFO] [stdout] | [INFO] [stdout] 54 | psentry.dwSize = std::mem::size_of::() as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 32 | fn check_process()->bool{ [INFO] [stdout] | ++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/main.rs:114:26 [INFO] [stdout] | [INFO] [stdout] 114 | if result == winapi::shared::winerror::ERROR_SUCCESS as i32{ [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/main.rs:115:30 [INFO] [stdout] | [INFO] [stdout] 115 | if(result != winapi::shared::winerror::ERROR_FILE_NOT_FOUND as i32){ [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | ...if (check_users() && check_hostname() && check_RAM() && check_process() && check_uptime() && check_hardisk_size() && sleep_disallowed() && check_network_isolation() && check_files()&&check_reg()||check_process(... [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 23 - if (check_users() && check_hostname() && check_RAM() && check_process() && check_uptime() && check_hardisk_size() && sleep_disallowed() && check_network_isolation() && check_files()&&check_reg()||check_process()){ [INFO] [stdout] 23 + if check_users() && check_hostname() && check_RAM() && check_process() && check_uptime() && check_hardisk_size() && sleep_disallowed() && check_network_isolation() && check_files()&&check_reg()||check_process() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/main.rs:58:22 [INFO] [stdout] | [INFO] [stdout] 58 | while(Process32Next(pshandle, &mut psentry)!=0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 58 - while(Process32Next(pshandle, &mut psentry)!=0){ [INFO] [stdout] 58 + while Process32Next(pshandle, &mut psentry)!=0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:62:23 [INFO] [stdout] | [INFO] [stdout] 62 | if(i==&exe_file_str){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 62 - if(i==&exe_file_str){ [INFO] [stdout] 62 + if i==&exe_file_str { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:115:19 [INFO] [stdout] | [INFO] [stdout] 115 | if(result != winapi::shared::winerror::ERROR_FILE_NOT_FOUND as i32){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 115 - if(result != winapi::shared::winerror::ERROR_FILE_NOT_FOUND as i32){ [INFO] [stdout] 115 + if result != winapi::shared::winerror::ERROR_FILE_NOT_FOUND as i32 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:181:7 [INFO] [stdout] | [INFO] [stdout] 181 | if(InternetCheckConnectionA("https://google.com".as_ptr() as *const i8,winapi::um::wininet::FLAG_ICC_FORCE_CONNECTION , 0)!=0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 181 - if(InternetCheckConnectionA("https://google.com".as_ptr() as *const i8,winapi::um::wininet::FLAG_ICC_FORCE_CONNECTION , 0)!=0){ [INFO] [stdout] 181 + if InternetCheckConnectionA("https://google.com".as_ptr() as *const i8,winapi::um::wininet::FLAG_ICC_FORCE_CONNECTION , 0)!=0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:200:11 [INFO] [stdout] | [INFO] [stdout] 200 | if(endtimems-startimems<2800){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 200 - if(endtimems-startimems<2800){ [INFO] [stdout] 200 + if endtimems-startimems<2800 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:214:7 [INFO] [stdout] | [INFO] [stdout] 214 | if(GetDiskFreeSpaceExW(null_mut(), [INFO] [stdout] | ^ [INFO] [stdout] 215 | null_mut() as *mut winapi::um::winnt::ULARGE_INTEGER, [INFO] [stdout] 216 | &mut total_space, null_mut() as *mut winapi::um::winnt::ULARGE_INTEGER)!=0){ [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 214 ~ if GetDiskFreeSpaceExW(null_mut(), [INFO] [stdout] 215 | null_mut() as *mut winapi::um::winnt::ULARGE_INTEGER, [INFO] [stdout] 216 ~ &mut total_space, null_mut() as *mut winapi::um::winnt::ULARGE_INTEGER)!=0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:218:15 [INFO] [stdout] | [INFO] [stdout] 218 | if(total_space_giga<= 100) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 218 - if(total_space_giga<= 100) [INFO] [stdout] 218 + if total_space_giga<= 100 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:241:7 [INFO] [stdout] | [INFO] [stdout] 241 | if(min<=5){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 241 - if(min<=5){ [INFO] [stdout] 241 + if min<=5 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:253:7 [INFO] [stdout] | [INFO] [stdout] 253 | if(GlobalMemoryStatusEx(&mut status)!=0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 253 - if(GlobalMemoryStatusEx(&mut status)!=0){ [INFO] [stdout] 253 + if GlobalMemoryStatusEx(&mut status)!=0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:255:11 [INFO] [stdout] | [INFO] [stdout] 255 | if(ram>=4.0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 255 - if(ram>=4.0){ [INFO] [stdout] 255 + if ram>=4.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/main.rs:181:76 [INFO] [stdout] | [INFO] [stdout] 181 | if(InternetCheckConnectionA("https://google.com".as_ptr() as *const i8,winapi::um::wininet::FLAG_ICC_FORCE_CONNECTION , 0)!=0){ [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/main.rs:215:25 [INFO] [stdout] | [INFO] [stdout] 215 | null_mut() as *mut winapi::um::winnt::ULARGE_INTEGER, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateToolhelp32Snapshot` in this scope [INFO] [stdout] --> src/main.rs:51:49 [INFO] [stdout] | [INFO] [stdout] 51 | let pshandle:winapi::um::winnt::HANDLE=CreateToolhelp32Snapshot(0x00000002, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Process32First` in this scope [INFO] [stdout] --> src/main.rs:57:20 [INFO] [stdout] | [INFO] [stdout] 57 | if Process32First(pshandle, &mut psentry) !=0{ [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Process32Next` in this scope [INFO] [stdout] --> src/main.rs:58:23 [INFO] [stdout] | [INFO] [stdout] 58 | while(Process32Next(pshandle, &mut psentry)!=0){ [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/main.rs:216:46 [INFO] [stdout] | [INFO] [stdout] 216 | &mut total_space, null_mut() as *mut winapi::um::winnt::ULARGE_INTEGER)!=0){ [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PROCESSENTRY32` in this scope [INFO] [stdout] --> src/main.rs:53:29 [INFO] [stdout] | [INFO] [stdout] 53 | let mut psentry:PROCESSENTRY32=std::mem::zeroed(); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PROCESSENTRY32` in this scope [INFO] [stdout] --> src/main.rs:54:50 [INFO] [stdout] | [INFO] [stdout] 54 | psentry.dwSize = std::mem::size_of::() as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 32 | fn check_process()->bool{ [INFO] [stdout] | ++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | ...if (check_users() && check_hostname() && check_RAM() && check_process() && check_uptime() && check_hardisk_size() && sleep_disallowed() && check_network_isolation() && check_files()&&check_reg()||check_process(... [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 23 - if (check_users() && check_hostname() && check_RAM() && check_process() && check_uptime() && check_hardisk_size() && sleep_disallowed() && check_network_isolation() && check_files()&&check_reg()||check_process()){ [INFO] [stdout] 23 + if check_users() && check_hostname() && check_RAM() && check_process() && check_uptime() && check_hardisk_size() && sleep_disallowed() && check_network_isolation() && check_files()&&check_reg()||check_process() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/main.rs:58:22 [INFO] [stdout] | [INFO] [stdout] 58 | while(Process32Next(pshandle, &mut psentry)!=0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 58 - while(Process32Next(pshandle, &mut psentry)!=0){ [INFO] [stdout] 58 + while Process32Next(pshandle, &mut psentry)!=0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:62:23 [INFO] [stdout] | [INFO] [stdout] 62 | if(i==&exe_file_str){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 62 - if(i==&exe_file_str){ [INFO] [stdout] 62 + if i==&exe_file_str { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:115:19 [INFO] [stdout] | [INFO] [stdout] 115 | if(result != winapi::shared::winerror::ERROR_FILE_NOT_FOUND as i32){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 115 - if(result != winapi::shared::winerror::ERROR_FILE_NOT_FOUND as i32){ [INFO] [stdout] 115 + if result != winapi::shared::winerror::ERROR_FILE_NOT_FOUND as i32 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:181:7 [INFO] [stdout] | [INFO] [stdout] 181 | if(InternetCheckConnectionA("https://google.com".as_ptr() as *const i8,winapi::um::wininet::FLAG_ICC_FORCE_CONNECTION , 0)!=0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 181 - if(InternetCheckConnectionA("https://google.com".as_ptr() as *const i8,winapi::um::wininet::FLAG_ICC_FORCE_CONNECTION , 0)!=0){ [INFO] [stdout] 181 + if InternetCheckConnectionA("https://google.com".as_ptr() as *const i8,winapi::um::wininet::FLAG_ICC_FORCE_CONNECTION , 0)!=0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:200:11 [INFO] [stdout] | [INFO] [stdout] 200 | if(endtimems-startimems<2800){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 200 - if(endtimems-startimems<2800){ [INFO] [stdout] 200 + if endtimems-startimems<2800 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:214:7 [INFO] [stdout] | [INFO] [stdout] 214 | if(GetDiskFreeSpaceExW(null_mut(), [INFO] [stdout] | ^ [INFO] [stdout] 215 | null_mut() as *mut winapi::um::winnt::ULARGE_INTEGER, [INFO] [stdout] 216 | &mut total_space, null_mut() as *mut winapi::um::winnt::ULARGE_INTEGER)!=0){ [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 214 ~ if GetDiskFreeSpaceExW(null_mut(), [INFO] [stdout] 215 | null_mut() as *mut winapi::um::winnt::ULARGE_INTEGER, [INFO] [stdout] 216 ~ &mut total_space, null_mut() as *mut winapi::um::winnt::ULARGE_INTEGER)!=0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:218:15 [INFO] [stdout] | [INFO] [stdout] 218 | if(total_space_giga<= 100) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 218 - if(total_space_giga<= 100) [INFO] [stdout] 218 + if total_space_giga<= 100 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:241:7 [INFO] [stdout] | [INFO] [stdout] 241 | if(min<=5){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 241 - if(min<=5){ [INFO] [stdout] 241 + if min<=5 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:253:7 [INFO] [stdout] | [INFO] [stdout] 253 | if(GlobalMemoryStatusEx(&mut status)!=0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 253 - if(GlobalMemoryStatusEx(&mut status)!=0){ [INFO] [stdout] 253 + if GlobalMemoryStatusEx(&mut status)!=0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:255:11 [INFO] [stdout] | [INFO] [stdout] 255 | if(ram>=4.0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 255 - if(ram>=4.0){ [INFO] [stdout] 255 + if ram>=4.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:127:5 [INFO] [stdout] | [INFO] [stdout] 127 | unsafe{ [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `metadata` [INFO] [stdout] --> src/main.rs:170:19 [INFO] [stdout] | [INFO] [stdout] 170 | if let Ok(metadata) = fs::metadata(i) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_metadata` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:143:5 [INFO] [stdout] | [INFO] [stdout] 143 | unsafe{ [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:278:9 [INFO] [stdout] | [INFO] [stdout] 278 | let mut output = cmd.output().expect("Error executing code"); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:286:13 [INFO] [stdout] | [INFO] [stdout] 286 | let mut lol =i as &str; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateToolhelp32Snapshot` in this scope [INFO] [stdout] --> src/main.rs:51:49 [INFO] [stdout] | [INFO] [stdout] 51 | let pshandle:winapi::um::winnt::HANDLE=CreateToolhelp32Snapshot(0x00000002, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Process32First` in this scope [INFO] [stdout] --> src/main.rs:57:20 [INFO] [stdout] | [INFO] [stdout] 57 | if Process32First(pshandle, &mut psentry) !=0{ [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Process32Next` in this scope [INFO] [stdout] --> src/main.rs:58:23 [INFO] [stdout] | [INFO] [stdout] 58 | while(Process32Next(pshandle, &mut psentry)!=0){ [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:319:9 [INFO] [stdout] | [INFO] [stdout] 319 | let mut gg = String::from_utf8_lossy(&mut output.stdout); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:322:13 [INFO] [stdout] | [INFO] [stdout] 322 | let mut lol =i as &str; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [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 `rustbox` (bin "rustbox" test) due to 28 previous errors; 18 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:127:5 [INFO] [stdout] | [INFO] [stdout] 127 | unsafe{ [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `metadata` [INFO] [stdout] --> src/main.rs:170:19 [INFO] [stdout] | [INFO] [stdout] 170 | if let Ok(metadata) = fs::metadata(i) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_metadata` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:143:5 [INFO] [stdout] | [INFO] [stdout] 143 | unsafe{ [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:278:9 [INFO] [stdout] | [INFO] [stdout] 278 | let mut output = cmd.output().expect("Error executing code"); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:286:13 [INFO] [stdout] | [INFO] [stdout] 286 | let mut lol =i as &str; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:319:9 [INFO] [stdout] | [INFO] [stdout] 319 | let mut gg = String::from_utf8_lossy(&mut output.stdout); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:322:13 [INFO] [stdout] | [INFO] [stdout] 322 | let mut lol =i as &str; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [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 `rustbox` (bin "rustbox") due to 28 previous errors; 18 warnings emitted [INFO] running `Command { std: "docker" "inspect" "479d3a02d56ad3260cf367e6c79cbd0df46a7c8051a46683f85753f4a3e02893", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "479d3a02d56ad3260cf367e6c79cbd0df46a7c8051a46683f85753f4a3e02893", kill_on_drop: false }` [INFO] [stdout] 479d3a02d56ad3260cf367e6c79cbd0df46a7c8051a46683f85753f4a3e02893