[INFO] fetching crate spectrometer 0.0.3... [INFO] checking spectrometer-0.0.3 against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] extracting crate spectrometer 0.0.3 into /workspace/builds/worker-13/source [INFO] validating manifest of crates.io crate spectrometer 0.0.3 on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate spectrometer 0.0.3 [INFO] finished tweaking crates.io crate spectrometer 0.0.3 [INFO] tweaked toml for crates.io crate spectrometer 0.0.3 written to /workspace/builds/worker-13/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 39d6538871416522b20b67afef9b55c7e1c0a0f4bb2a2cb5a5f150289ab45c64 [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" "39d6538871416522b20b67afef9b55c7e1c0a0f4bb2a2cb5a5f150289ab45c64", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "39d6538871416522b20b67afef9b55c7e1c0a0f4bb2a2cb5a5f150289ab45c64", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "39d6538871416522b20b67afef9b55c7e1c0a0f4bb2a2cb5a5f150289ab45c64", kill_on_drop: false }` [INFO] [stdout] 39d6538871416522b20b67afef9b55c7e1c0a0f4bb2a2cb5a5f150289ab45c64 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ae7ce63f5634b6477d05abcd5ab835cae4e48577c1d82dc8fd3105f807db2f41 [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" "ae7ce63f5634b6477d05abcd5ab835cae4e48577c1d82dc8fd3105f807db2f41", kill_on_drop: false }` [INFO] [stderr] Checking spectrometer v0.0.3 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use winapi::um::processthreadsapi::GetSystemTimes; [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/lib.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use winapi::um::sysinfoapi::{GetNativeSystemInfo, GlobalMemoryStatusEx, GetTickCount64, MEMORYSTATUSEX, SYSTEM_INFO /*, GetVersion */}; [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/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use winapi::um::fileapi::{GetDiskFreeSpaceExW, GetLogicalDriveStringsW}; [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/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::um::winnt::{ULARGE_INTEGER, WCHAR}; [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/lib.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::um::winbase::{GetComputerNameW, GetUserNameW}; [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/lib.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use winapi::shared::minwindef::{FILETIME /*, HIWORD, LOWORD, HIBYTE, LOBYTE */}; [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/lib.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use winapi::shared::lmcons::UNLEN; [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/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use winapi::um::processthreadsapi::GetSystemTimes; [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/lib.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use winapi::um::sysinfoapi::{GetNativeSystemInfo, GlobalMemoryStatusEx, GetTickCount64, MEMORYSTATUSEX, SYSTEM_INFO /*, GetVersion */}; [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/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use winapi::um::fileapi::{GetDiskFreeSpaceExW, GetLogicalDriveStringsW}; [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/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::um::winnt::{ULARGE_INTEGER, WCHAR}; [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/lib.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::um::winbase::{GetComputerNameW, GetUserNameW}; [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/lib.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use winapi::shared::minwindef::{FILETIME /*, HIWORD, LOWORD, HIBYTE, LOBYTE */}; [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/lib.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use winapi::shared::lmcons::UNLEN; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `FILETIME` in this scope [INFO] [stdout] --> src/lib.rs:51:30 [INFO] [stdout] | [INFO] [stdout] 51 | let mut base_idle_time = FILETIME { dwHighDateTime: 0, dwLowDateTime: 0 }; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `FILETIME` in this scope [INFO] [stdout] --> src/lib.rs:52:32 [INFO] [stdout] | [INFO] [stdout] 52 | let mut base_kernel_time = FILETIME { dwHighDateTime: 0, dwLowDateTime: 0 }; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `FILETIME` in this scope [INFO] [stdout] --> src/lib.rs:53:30 [INFO] [stdout] | [INFO] [stdout] 53 | let mut base_user_time = FILETIME { dwHighDateTime: 0, dwLowDateTime: 0 }; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `FILETIME` in this scope [INFO] [stdout] --> src/lib.rs:55:25 [INFO] [stdout] | [INFO] [stdout] 55 | let mut idle_time = FILETIME { dwHighDateTime: 0, dwLowDateTime: 0 }; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `FILETIME` in this scope [INFO] [stdout] --> src/lib.rs:56:27 [INFO] [stdout] | [INFO] [stdout] 56 | let mut kernel_time = FILETIME { dwHighDateTime: 0, dwLowDateTime: 0 }; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `FILETIME` in this scope [INFO] [stdout] --> src/lib.rs:57:25 [INFO] [stdout] | [INFO] [stdout] 57 | let mut user_time = FILETIME { dwHighDateTime: 0, dwLowDateTime: 0 }; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetSystemTimes` in this scope [INFO] [stdout] --> src/lib.rs:59:17 [INFO] [stdout] | [INFO] [stdout] 59 | if unsafe { GetSystemTimes(&mut base_idle_time, &mut base_kernel_time, &mut base_user_time) } == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetSystemTimes` in this scope [INFO] [stdout] --> src/lib.rs:64:17 [INFO] [stdout] | [INFO] [stdout] 64 | if unsafe { GetSystemTimes(&mut idle_time, &mut kernel_time, &mut user_time) } == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `FILETIME` in this scope [INFO] [stdout] --> src/lib.rs:87:28 [INFO] [stdout] | [INFO] [stdout] 87 | fn filetime2u64(filetime: &FILETIME) -> u64 { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WCHAR` in this scope [INFO] [stdout] --> src/lib.rs:97:25 [INFO] [stdout] | [INFO] [stdout] 95 | pub fn get_drives() -> Result, Error> { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 96 | let buffer_size = 512; [INFO] [stdout] 97 | let mut buffer: Vec = Vec::with_capacity(buffer_size); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLogicalDriveStringsW` in this scope [INFO] [stdout] --> src/lib.rs:99:20 [INFO] [stdout] | [INFO] [stdout] 99 | match unsafe { GetLogicalDriveStringsW((buffer_size - 1) as u32, buffer.as_mut_ptr()) } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ULARGE_INTEGER` in this scope [INFO] [stdout] --> src/lib.rs:141:20 [INFO] [stdout] | [INFO] [stdout] 141 | let mut avail: ULARGE_INTEGER = unsafe { mem::zeroed() }; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ULARGE_INTEGER` in this scope [INFO] [stdout] --> src/lib.rs:142:19 [INFO] [stdout] | [INFO] [stdout] 142 | let mut free: ULARGE_INTEGER = unsafe { mem::zeroed() }; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ULARGE_INTEGER` in this scope [INFO] [stdout] --> src/lib.rs:143:20 [INFO] [stdout] | [INFO] [stdout] 143 | let mut total: ULARGE_INTEGER = unsafe { 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 `GetDiskFreeSpaceExW` in this scope [INFO] [stdout] --> src/lib.rs:145:17 [INFO] [stdout] | [INFO] [stdout] 145 | if unsafe { GetDiskFreeSpaceExW(u16_drive, &mut avail, &mut total, &mut free) } == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MEMORYSTATUSEX` in this scope [INFO] [stdout] --> src/lib.rs:164:21 [INFO] [stdout] | [INFO] [stdout] 164 | let mut memory: MEMORYSTATUSEX = MEMORYSTATUSEX { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `MEMORYSTATUSEX` in this scope [INFO] [stdout] --> src/lib.rs:164:38 [INFO] [stdout] | [INFO] [stdout] 164 | let mut memory: MEMORYSTATUSEX = MEMORYSTATUSEX { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MEMORYSTATUSEX` in this scope [INFO] [stdout] --> src/lib.rs:165:34 [INFO] [stdout] | [INFO] [stdout] 163 | pub fn memory_details() -> Result { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 164 | let mut memory: MEMORYSTATUSEX = MEMORYSTATUSEX { [INFO] [stdout] 165 | dwLength: mem::size_of::() as u32, [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GlobalMemoryStatusEx` in this scope [INFO] [stdout] --> src/lib.rs:176:17 [INFO] [stdout] | [INFO] [stdout] 176 | if unsafe { GlobalMemoryStatusEx(&mut memory) } == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetTickCount64` in this scope [INFO] [stdout] --> src/lib.rs:190:26 [INFO] [stdout] | [INFO] [stdout] 190 | let ticks = unsafe { GetTickCount64() }; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `SYSTEM_INFO` in this scope [INFO] [stdout] --> src/lib.rs:197:27 [INFO] [stdout] | [INFO] [stdout] 197 | let mut system_info = SYSTEM_INFO { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetNativeSystemInfo` in this scope [INFO] [stdout] --> src/lib.rs:210:14 [INFO] [stdout] | [INFO] [stdout] 210 | unsafe { GetNativeSystemInfo(&mut system_info) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `SYSTEM_INFO` in this scope [INFO] [stdout] --> src/lib.rs:217:27 [INFO] [stdout] | [INFO] [stdout] 217 | let mut system_info = SYSTEM_INFO { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetNativeSystemInfo` in this scope [INFO] [stdout] --> src/lib.rs:230:14 [INFO] [stdout] | [INFO] [stdout] 230 | unsafe { GetNativeSystemInfo(&mut system_info) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetComputerNameW` in this scope [INFO] [stdout] --> src/lib.rs:247:17 [INFO] [stdout] | [INFO] [stdout] 247 | if unsafe { GetComputerNameW(buffer.as_mut_ptr(), &mut (buffer_size as u32)) } == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `UNLEN` in this scope [INFO] [stdout] --> src/lib.rs:267:28 [INFO] [stdout] | [INFO] [stdout] 267 | let mut buffer_size = (UNLEN + 1) as usize; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetUserNameW` in this scope [INFO] [stdout] --> src/lib.rs:270:17 [INFO] [stdout] | [INFO] [stdout] 270 | if unsafe { GetUserNameW(buffer.as_mut_ptr(), &mut (buffer_size as u32)) } == 0 { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `FILETIME` in this scope [INFO] [stdout] --> src/lib.rs:51:30 [INFO] [stdout] | [INFO] [stdout] 51 | let mut base_idle_time = FILETIME { dwHighDateTime: 0, dwLowDateTime: 0 }; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `FILETIME` in this scope [INFO] [stdout] --> src/lib.rs:52:32 [INFO] [stdout] | [INFO] [stdout] 52 | let mut base_kernel_time = FILETIME { dwHighDateTime: 0, dwLowDateTime: 0 }; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `FILETIME` in this scope [INFO] [stdout] --> src/lib.rs:53:30 [INFO] [stdout] | [INFO] [stdout] 53 | let mut base_user_time = FILETIME { dwHighDateTime: 0, dwLowDateTime: 0 }; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `FILETIME` in this scope [INFO] [stdout] --> src/lib.rs:55:25 [INFO] [stdout] | [INFO] [stdout] 55 | let mut idle_time = FILETIME { dwHighDateTime: 0, dwLowDateTime: 0 }; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `FILETIME` in this scope [INFO] [stdout] --> src/lib.rs:56:27 [INFO] [stdout] | [INFO] [stdout] 56 | let mut kernel_time = FILETIME { dwHighDateTime: 0, dwLowDateTime: 0 }; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `FILETIME` in this scope [INFO] [stdout] --> src/lib.rs:57:25 [INFO] [stdout] | [INFO] [stdout] 57 | let mut user_time = FILETIME { dwHighDateTime: 0, dwLowDateTime: 0 }; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetSystemTimes` in this scope [INFO] [stdout] --> src/lib.rs:59:17 [INFO] [stdout] | [INFO] [stdout] 59 | if unsafe { GetSystemTimes(&mut base_idle_time, &mut base_kernel_time, &mut base_user_time) } == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetSystemTimes` in this scope [INFO] [stdout] --> src/lib.rs:64:17 [INFO] [stdout] | [INFO] [stdout] 64 | if unsafe { GetSystemTimes(&mut idle_time, &mut kernel_time, &mut user_time) } == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `FILETIME` in this scope [INFO] [stdout] --> src/lib.rs:87:28 [INFO] [stdout] | [INFO] [stdout] 87 | fn filetime2u64(filetime: &FILETIME) -> u64 { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WCHAR` in this scope [INFO] [stdout] --> src/lib.rs:97:25 [INFO] [stdout] | [INFO] [stdout] 95 | pub fn get_drives() -> Result, Error> { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 96 | let buffer_size = 512; [INFO] [stdout] 97 | let mut buffer: Vec = Vec::with_capacity(buffer_size); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLogicalDriveStringsW` in this scope [INFO] [stdout] --> src/lib.rs:99:20 [INFO] [stdout] | [INFO] [stdout] 99 | match unsafe { GetLogicalDriveStringsW((buffer_size - 1) as u32, buffer.as_mut_ptr()) } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ULARGE_INTEGER` in this scope [INFO] [stdout] --> src/lib.rs:141:20 [INFO] [stdout] | [INFO] [stdout] 141 | let mut avail: ULARGE_INTEGER = unsafe { mem::zeroed() }; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ULARGE_INTEGER` in this scope [INFO] [stdout] --> src/lib.rs:142:19 [INFO] [stdout] | [INFO] [stdout] 142 | let mut free: ULARGE_INTEGER = unsafe { mem::zeroed() }; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ULARGE_INTEGER` in this scope [INFO] [stdout] --> src/lib.rs:143:20 [INFO] [stdout] | [INFO] [stdout] 143 | let mut total: ULARGE_INTEGER = unsafe { 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 `GetDiskFreeSpaceExW` in this scope [INFO] [stdout] --> src/lib.rs:145:17 [INFO] [stdout] | [INFO] [stdout] 145 | if unsafe { GetDiskFreeSpaceExW(u16_drive, &mut avail, &mut total, &mut free) } == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MEMORYSTATUSEX` in this scope [INFO] [stdout] --> src/lib.rs:164:21 [INFO] [stdout] | [INFO] [stdout] 164 | let mut memory: MEMORYSTATUSEX = MEMORYSTATUSEX { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `MEMORYSTATUSEX` in this scope [INFO] [stdout] --> src/lib.rs:164:38 [INFO] [stdout] | [INFO] [stdout] 164 | let mut memory: MEMORYSTATUSEX = MEMORYSTATUSEX { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MEMORYSTATUSEX` in this scope [INFO] [stdout] --> src/lib.rs:165:34 [INFO] [stdout] | [INFO] [stdout] 163 | pub fn memory_details() -> Result { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 164 | let mut memory: MEMORYSTATUSEX = MEMORYSTATUSEX { [INFO] [stdout] 165 | dwLength: mem::size_of::() as u32, [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GlobalMemoryStatusEx` in this scope [INFO] [stdout] --> src/lib.rs:176:17 [INFO] [stdout] | [INFO] [stdout] 176 | if unsafe { GlobalMemoryStatusEx(&mut memory) } == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetTickCount64` in this scope [INFO] [stdout] --> src/lib.rs:190:26 [INFO] [stdout] | [INFO] [stdout] 190 | let ticks = unsafe { GetTickCount64() }; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `SYSTEM_INFO` in this scope [INFO] [stdout] --> src/lib.rs:197:27 [INFO] [stdout] | [INFO] [stdout] 197 | let mut system_info = SYSTEM_INFO { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetNativeSystemInfo` in this scope [INFO] [stdout] --> src/lib.rs:210:14 [INFO] [stdout] | [INFO] [stdout] 210 | unsafe { GetNativeSystemInfo(&mut system_info) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `SYSTEM_INFO` in this scope [INFO] [stdout] --> src/lib.rs:217:27 [INFO] [stdout] | [INFO] [stdout] 217 | let mut system_info = SYSTEM_INFO { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetNativeSystemInfo` in this scope [INFO] [stdout] --> src/lib.rs:230:14 [INFO] [stdout] | [INFO] [stdout] 230 | unsafe { GetNativeSystemInfo(&mut system_info) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetComputerNameW` in this scope [INFO] [stdout] --> src/lib.rs:247:17 [INFO] [stdout] | [INFO] [stdout] 247 | if unsafe { GetComputerNameW(buffer.as_mut_ptr(), &mut (buffer_size as u32)) } == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `UNLEN` in this scope [INFO] [stdout] --> src/lib.rs:267:28 [INFO] [stdout] | [INFO] [stdout] 267 | let mut buffer_size = (UNLEN + 1) as usize; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetUserNameW` in this scope [INFO] [stdout] --> src/lib.rs:270:17 [INFO] [stdout] | [INFO] [stdout] 270 | if unsafe { GetUserNameW(buffer.as_mut_ptr(), &mut (buffer_size as u32)) } == 0 { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `env` [INFO] [stdout] --> src/lib.rs:8:30 [INFO] [stdout] | [INFO] [stdout] 8 | use std::{time, thread, mem, env}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 34 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 34 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `spectrometer` [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" "ae7ce63f5634b6477d05abcd5ab835cae4e48577c1d82dc8fd3105f807db2f41", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ae7ce63f5634b6477d05abcd5ab835cae4e48577c1d82dc8fd3105f807db2f41", kill_on_drop: false }` [INFO] [stdout] ae7ce63f5634b6477d05abcd5ab835cae4e48577c1d82dc8fd3105f807db2f41