[INFO] fetching crate comportlist 1.2.2... [INFO] checking comportlist-1.2.2 against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] extracting crate comportlist 1.2.2 into /workspace/builds/worker-1-tc2/source [INFO] started tweaking crates.io crate comportlist 1.2.2 [INFO] finished tweaking crates.io crate comportlist 1.2.2 [INFO] tweaked toml for crates.io crate comportlist 1.2.2 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate comportlist 1.2.2 on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 5 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: only one of `license` or `license-file` is necessary [INFO] [stderr] `license` should be used if the package license can be expressed with a standard SPDX expression. [INFO] [stderr] `license-file` should be used if the package uses a non-standard license. [INFO] [stderr] See https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields for more information. [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dfec7563b6592487049f59ed95c58c84f3c1b4f721665cc91135ad80c9b0cbbc [INFO] running `Command { std: "docker" "start" "-a" "dfec7563b6592487049f59ed95c58c84f3c1b4f721665cc91135ad80c9b0cbbc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dfec7563b6592487049f59ed95c58c84f3c1b4f721665cc91135ad80c9b0cbbc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dfec7563b6592487049f59ed95c58c84f3c1b4f721665cc91135ad80c9b0cbbc", kill_on_drop: false }` [INFO] [stdout] dfec7563b6592487049f59ed95c58c84f3c1b4f721665cc91135ad80c9b0cbbc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ab1c5e7314ba23b6b8e667200beac9c52dd8cfb2777f953d62f269a0b9400254 [INFO] running `Command { std: "docker" "start" "-a" "ab1c5e7314ba23b6b8e667200beac9c52dd8cfb2777f953d62f269a0b9400254", kill_on_drop: false }` [INFO] [stderr] warning: only one of `license` or `license-file` is necessary [INFO] [stderr] `license` should be used if the package license can be expressed with a standard SPDX expression. [INFO] [stderr] `license-file` should be used if the package uses a non-standard license. [INFO] [stderr] See https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields for more information. [INFO] [stderr] Compiling winapi v0.3.9 [INFO] [stderr] Checking cfg-if v1.0.3 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Checking comportlist v1.2.2 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/names.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use winapi::shared::guiddef::*; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/names.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::shared::minwindef::*; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/names.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::shared::ntdef::CHAR; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/names.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use winapi::shared::winerror::*; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/names.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use winapi::um::cguid::GUID_NULL; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/names.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use winapi::um::errhandlingapi::GetLastError; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/names.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::um::setupapi::*; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/names.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use winapi::um::winnt::KEY_READ; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/names.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | use winapi::um::winreg::*; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/ports.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::windows::io::{AsRawHandle, RawHandle}; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/std/src/os/mod.rs:56:5 [INFO] [stdout] | [INFO] [stdout] = note: the item is gated here [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/std/src/os/mod.rs:120:10 [INFO] [stdout] | [INFO] [stdout] = note: the item is gated here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/ports.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use winapi::shared::minwindef::{BOOL, HKEY}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::shared` [INFO] [stdout] --> src/ports.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use winapi::shared::winerror; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/byserialrs/error.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | shared::{minwindef::DWORD, ntdef::MAKELANGID}, [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/byserialrs/error.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | um::{ [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/byserialrs/port_lister.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::{um::{setupapi::{SetupDiClassGuidsFromNameA, SetupDiGetClassDevsA, DIGCF_PRESENT, SP_DEVINFO_DATA, SetupDiEnumDeviceInfo, Set... [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/byserialrs/port_lister.rs:5:407 [INFO] [stdout] | [INFO] [stdout] 5 | ...AD, winreg::{RegQueryValueExA, RegCloseKey}}, shared::{minwindef::DWORD, guiddef::GUID, ntdef::ULONG}}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::um` [INFO] [stdout] --> src/ports.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::um::{ winnt, winreg}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/names.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use winapi::shared::guiddef::*; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/names.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::shared::minwindef::*; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/names.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::shared::ntdef::CHAR; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/names.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use winapi::shared::winerror::*; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/names.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use winapi::um::cguid::GUID_NULL; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/names.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use winapi::um::errhandlingapi::GetLastError; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/names.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::um::setupapi::*; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/names.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use winapi::um::winnt::KEY_READ; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/names.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | use winapi::um::winreg::*; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/ports.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::windows::io::{AsRawHandle, RawHandle}; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/std/src/os/mod.rs:56:5 [INFO] [stdout] | [INFO] [stdout] = note: the item is gated here [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/std/src/os/mod.rs:120:10 [INFO] [stdout] | [INFO] [stdout] = note: the item is gated here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/ports.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use winapi::shared::minwindef::{BOOL, HKEY}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::shared` [INFO] [stdout] --> src/ports.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use winapi::shared::winerror; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/byserialrs/error.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | shared::{minwindef::DWORD, ntdef::MAKELANGID}, [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/byserialrs/error.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | um::{ [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/byserialrs/port_lister.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::{um::{setupapi::{SetupDiClassGuidsFromNameA, SetupDiGetClassDevsA, DIGCF_PRESENT, SP_DEVINFO_DATA, SetupDiEnumDeviceInfo, Set... [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/byserialrs/port_lister.rs:5:407 [INFO] [stdout] | [INFO] [stdout] 5 | ...AD, winreg::{RegQueryValueExA, RegCloseKey}}, shared::{minwindef::DWORD, guiddef::GUID, ntdef::ULONG}}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::um` [INFO] [stdout] --> src/ports.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::um::{ winnt, winreg}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HDEVINFO` in this scope [INFO] [stdout] --> src/names.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | hdi: HDEVINFO, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SP_DEVINFO_DATA` in this scope [INFO] [stdout] --> src/names.rs:30:23 [INFO] [stdout] | [INFO] [stdout] 30 | pub devinfo_data: SP_DEVINFO_DATA, [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stdout] --> src/names.rs:42:36 [INFO] [stdout] | [INFO] [stdout] 42 | let mut result_buf = [0i8; MAX_PATH]; [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/names.rs:48:43 [INFO] [stdout] | [INFO] [stdout] 48 | (result_buf.len() - 1) as DWORD, [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/names.rs:52:19 [INFO] [stdout] | [INFO] [stdout] 52 | if res == FALSE { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you may want to use a bool value instead [INFO] [stdout] | [INFO] [stdout] 52 - if res == FALSE { [INFO] [stdout] 52 + if res == false { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SPDRP_HARDWAREID` in this scope [INFO] [stdout] --> src/names.rs:54:27 [INFO] [stdout] | [INFO] [stdout] 54 | self.property(SPDRP_HARDWAREID) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DICS_FLAG_GLOBAL` in this scope [INFO] [stdout] --> src/names.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | DICS_FLAG_GLOBAL, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DIREG_DEV` in this scope [INFO] [stdout] --> src/names.rs:74:17 [INFO] [stdout] | [INFO] [stdout] 74 | DIREG_DEV, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stdout] --> src/names.rs:78:42 [INFO] [stdout] | [INFO] [stdout] 78 | let mut port_name_buffer = [0u8; MAX_PATH]; [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/names.rs:79:59 [INFO] [stdout] | [INFO] [stdout] 79 | let mut port_name_len = port_name_buffer.len() as DWORD; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SPDRP_FRIENDLYNAME` in this scope [INFO] [stdout] --> src/names.rs:110:65 [INFO] [stdout] | [INFO] [stdout] 110 | serial_number: {if let Some(ss) = self.property(SPDRP_FRIENDLYNAME){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SPDRP_MFG` in this scope [INFO] [stdout] --> src/names.rs:121:45 [INFO] [stdout] | [INFO] [stdout] 121 | manufacturer: self.property(SPDRP_MFG), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SPDRP_FRIENDLYNAME` in this scope [INFO] [stdout] --> src/names.rs:122:40 [INFO] [stdout] | [INFO] [stdout] 122 | product: self.property(SPDRP_FRIENDLYNAME), [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/names.rs:129:41 [INFO] [stdout] | [INFO] [stdout] 129 | fn property(&mut self, property_id: DWORD) -> Option { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stdout] --> src/names.rs:130:36 [INFO] [stdout] | [INFO] [stdout] 130 | let mut result_buf: [CHAR; MAX_PATH] = [0; MAX_PATH]; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stdout] --> src/names.rs:130:52 [INFO] [stdout] | [INFO] [stdout] 130 | let mut result_buf: [CHAR; MAX_PATH] = [0; MAX_PATH]; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PBYTE` in this scope [INFO] [stdout] --> src/names.rs:137:44 [INFO] [stdout] | [INFO] [stdout] 137 | result_buf.as_mut_ptr() as PBYTE, [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/names.rs:138:43 [INFO] [stdout] | [INFO] [stdout] 138 | (result_buf.len() - 1) as DWORD, [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/names.rs:142:19 [INFO] [stdout] | [INFO] [stdout] 142 | if res == FALSE { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you may want to use a bool value instead [INFO] [stdout] | [INFO] [stdout] 142 - if res == FALSE { [INFO] [stdout] 142 + if res == false { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ERROR_INSUFFICIENT_BUFFER` in this scope [INFO] [stdout] --> src/names.rs:143:45 [INFO] [stdout] | [INFO] [stdout] 143 | if unsafe { GetLastError() } != ERROR_INSUFFICIENT_BUFFER { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `GUID` in this scope [INFO] [stdout] --> src/names.rs:166:54 [INFO] [stdout] | [INFO] [stdout] 166 | fn get_ports_guids(serchkey:Vec<&str>) -> Option> { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 166 | fn get_ports_guids(serchkey:Vec<&str>) -> Option> { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `GUID` in this scope [INFO] [stdout] --> src/names.rs:168:26 [INFO] [stdout] | [INFO] [stdout] 168 | let mut allguid: Vec = Vec::new(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 166 | fn get_ports_guids(serchkey:Vec<&str>) -> Option> { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/names.rs:174:28 [INFO] [stdout] | [INFO] [stdout] 174 | let mut num_guids: DWORD = 0; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `GUID` in this scope [INFO] [stdout] --> src/names.rs:175:28 [INFO] [stdout] | [INFO] [stdout] 175 | let mut guids: Vec = Vec::new(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 166 | fn get_ports_guids(serchkey:Vec<&str>) -> Option> { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/names.rs:184:32 [INFO] [stdout] | [INFO] [stdout] 184 | guids.len() as DWORD, [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/names.rs:188:19 [INFO] [stdout] | [INFO] [stdout] 188 | if res == FALSE { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you may want to use a bool value instead [INFO] [stdout] | [INFO] [stdout] 188 - if res == FALSE { [INFO] [stdout] 188 + if res == false { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/names.rs:208:36 [INFO] [stdout] | [INFO] [stdout] 208 | guids.len() as DWORD, [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/names.rs:212:23 [INFO] [stdout] | [INFO] [stdout] 212 | if res == FALSE { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you may want to use a bool value instead [INFO] [stdout] | [INFO] [stdout] 212 - if res == FALSE { [INFO] [stdout] 212 + if res == false { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HDEVINFO` in this scope [INFO] [stdout] --> src/names.rs:253:10 [INFO] [stdout] | [INFO] [stdout] 253 | hdi: HDEVINFO, [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/names.rs:256:14 [INFO] [stdout] | [INFO] [stdout] 256 | dev_idx: DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `GUID` in this scope [INFO] [stdout] --> src/names.rs:261:23 [INFO] [stdout] | [INFO] [stdout] 261 | pub fn new(guid: &GUID) -> Self { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DIGCF_PRESENT` in this scope [INFO] [stdout] --> src/names.rs:263:84 [INFO] [stdout] | [INFO] [stdout] 263 | hdi: unsafe { SetupDiGetClassDevsA(guid, ptr::null(), ptr::null_mut(), DIGCF_PRESENT) }, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `SP_DEVINFO_DATA` in this scope [INFO] [stdout] --> src/names.rs:276:27 [INFO] [stdout] | [INFO] [stdout] 276 | devinfo_data: SP_DEVINFO_DATA { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SP_DEVINFO_DATA` in this scope [INFO] [stdout] --> src/names.rs:277:40 [INFO] [stdout] | [INFO] [stdout] 277 | cbSize: mem::size_of::() as DWORD, [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 268 | impl Iterator for PortDevices { [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/names.rs:277:62 [INFO] [stdout] | [INFO] [stdout] 277 | cbSize: mem::size_of::() as DWORD, [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/names.rs:285:19 [INFO] [stdout] | [INFO] [stdout] 285 | if res == FALSE { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you may want to use a bool value instead [INFO] [stdout] | [INFO] [stdout] 285 - if res == FALSE { [INFO] [stdout] 285 + if res == false { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OsString` [INFO] [stdout] --> src/ports.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ffi::{CStr, OsString}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `IoSliceMut` and `IoSlice` [INFO] [stdout] --> src/ports.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{IoSlice, IoSliceMut}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PathBuf` and `Path` [INFO] [stdout] --> src/ports.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/ports.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiGetDeviceInstanceIdA` in this scope [INFO] [stdout] --> src/names.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | SetupDiGetDeviceInstanceIdA( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiOpenDevRegKey` in this scope [INFO] [stdout] --> src/names.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | SetupDiOpenDevRegKey( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegQueryValueExA` in this scope [INFO] [stdout] --> src/names.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | RegQueryValueExA( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegCloseKey` in this scope [INFO] [stdout] --> src/names.rs:91:18 [INFO] [stdout] | [INFO] [stdout] 91 | unsafe { RegCloseKey(hkey) }; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiGetDeviceRegistryPropertyA` in this scope [INFO] [stdout] --> src/names.rs:132:13 [INFO] [stdout] | [INFO] [stdout] 132 | SetupDiGetDeviceRegistryPropertyA( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiClassGuidsFromNameA` in this scope [INFO] [stdout] --> src/names.rs:181:13 [INFO] [stdout] | [INFO] [stdout] 181 | SetupDiClassGuidsFromNameA( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HDEVINFO` in this scope [INFO] [stdout] --> src/names.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | hdi: HDEVINFO, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SP_DEVINFO_DATA` in this scope [INFO] [stdout] --> src/names.rs:30:23 [INFO] [stdout] | [INFO] [stdout] 30 | pub devinfo_data: SP_DEVINFO_DATA, [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stdout] --> src/names.rs:42:36 [INFO] [stdout] | [INFO] [stdout] 42 | let mut result_buf = [0i8; MAX_PATH]; [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/names.rs:48:43 [INFO] [stdout] | [INFO] [stdout] 48 | (result_buf.len() - 1) as DWORD, [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/names.rs:52:19 [INFO] [stdout] | [INFO] [stdout] 52 | if res == FALSE { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you may want to use a bool value instead [INFO] [stdout] | [INFO] [stdout] 52 - if res == FALSE { [INFO] [stdout] 52 + if res == false { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SPDRP_HARDWAREID` in this scope [INFO] [stdout] --> src/names.rs:54:27 [INFO] [stdout] | [INFO] [stdout] 54 | self.property(SPDRP_HARDWAREID) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DICS_FLAG_GLOBAL` in this scope [INFO] [stdout] --> src/names.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | DICS_FLAG_GLOBAL, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DIREG_DEV` in this scope [INFO] [stdout] --> src/names.rs:74:17 [INFO] [stdout] | [INFO] [stdout] 74 | DIREG_DEV, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiClassGuidsFromNameA` in this scope [INFO] [stdout] --> src/names.rs:205:17 [INFO] [stdout] | [INFO] [stdout] 205 | SetupDiClassGuidsFromNameA( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stdout] --> src/names.rs:78:42 [INFO] [stdout] | [INFO] [stdout] 78 | let mut port_name_buffer = [0u8; MAX_PATH]; [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/names.rs:79:59 [INFO] [stdout] | [INFO] [stdout] 79 | let mut port_name_len = port_name_buffer.len() as DWORD; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SPDRP_FRIENDLYNAME` in this scope [INFO] [stdout] --> src/names.rs:110:65 [INFO] [stdout] | [INFO] [stdout] 110 | serial_number: {if let Some(ss) = self.property(SPDRP_FRIENDLYNAME){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SPDRP_MFG` in this scope [INFO] [stdout] --> src/names.rs:121:45 [INFO] [stdout] | [INFO] [stdout] 121 | manufacturer: self.property(SPDRP_MFG), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiGetClassDevsA` in this scope [INFO] [stdout] --> src/names.rs:263:27 [INFO] [stdout] | [INFO] [stdout] 263 | hdi: unsafe { SetupDiGetClassDevsA(guid, ptr::null(), ptr::null_mut(), DIGCF_PRESENT) }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SPDRP_FRIENDLYNAME` in this scope [INFO] [stdout] --> src/names.rs:122:40 [INFO] [stdout] | [INFO] [stdout] 122 | product: self.property(SPDRP_FRIENDLYNAME), [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/names.rs:129:41 [INFO] [stdout] | [INFO] [stdout] 129 | fn property(&mut self, property_id: DWORD) -> Option { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stdout] --> src/names.rs:130:36 [INFO] [stdout] | [INFO] [stdout] 130 | let mut result_buf: [CHAR; MAX_PATH] = [0; MAX_PATH]; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stdout] --> src/names.rs:130:52 [INFO] [stdout] | [INFO] [stdout] 130 | let mut result_buf: [CHAR; MAX_PATH] = [0; MAX_PATH]; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PBYTE` in this scope [INFO] [stdout] --> src/names.rs:137:44 [INFO] [stdout] | [INFO] [stdout] 137 | result_buf.as_mut_ptr() as PBYTE, [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/names.rs:138:43 [INFO] [stdout] | [INFO] [stdout] 138 | (result_buf.len() - 1) as DWORD, [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/names.rs:142:19 [INFO] [stdout] | [INFO] [stdout] 142 | if res == FALSE { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you may want to use a bool value instead [INFO] [stdout] | [INFO] [stdout] 142 - if res == FALSE { [INFO] [stdout] 142 + if res == false { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ERROR_INSUFFICIENT_BUFFER` in this scope [INFO] [stdout] --> src/names.rs:143:45 [INFO] [stdout] | [INFO] [stdout] 143 | if unsafe { GetLastError() } != ERROR_INSUFFICIENT_BUFFER { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiEnumDeviceInfo` in this scope [INFO] [stdout] --> src/names.rs:284:22 [INFO] [stdout] | [INFO] [stdout] 284 | unsafe { SetupDiEnumDeviceInfo(self.hdi, self.dev_idx, &mut port_dev.devinfo_data) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `GUID` in this scope [INFO] [stdout] --> src/names.rs:166:54 [INFO] [stdout] | [INFO] [stdout] 166 | fn get_ports_guids(serchkey:Vec<&str>) -> Option> { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 166 | fn get_ports_guids(serchkey:Vec<&str>) -> Option> { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiDestroyDeviceInfoList` in this scope [INFO] [stdout] --> src/names.rs:298:13 [INFO] [stdout] | [INFO] [stdout] 298 | SetupDiDestroyDeviceInfoList(self.hdi); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `GUID` in this scope [INFO] [stdout] --> src/names.rs:168:26 [INFO] [stdout] | [INFO] [stdout] 168 | let mut allguid: Vec = Vec::new(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 166 | fn get_ports_guids(serchkey:Vec<&str>) -> Option> { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/names.rs:174:28 [INFO] [stdout] | [INFO] [stdout] 174 | let mut num_guids: DWORD = 0; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `GUID` in this scope [INFO] [stdout] --> src/names.rs:175:28 [INFO] [stdout] | [INFO] [stdout] 175 | let mut guids: Vec = Vec::new(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 166 | fn get_ports_guids(serchkey:Vec<&str>) -> Option> { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/names.rs:184:32 [INFO] [stdout] | [INFO] [stdout] 184 | guids.len() as DWORD, [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/names.rs:188:19 [INFO] [stdout] | [INFO] [stdout] 188 | if res == FALSE { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you may want to use a bool value instead [INFO] [stdout] | [INFO] [stdout] 188 - if res == FALSE { [INFO] [stdout] 188 + if res == false { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/names.rs:208:36 [INFO] [stdout] | [INFO] [stdout] 208 | guids.len() as DWORD, [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/names.rs:212:23 [INFO] [stdout] | [INFO] [stdout] 212 | if res == FALSE { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you may want to use a bool value instead [INFO] [stdout] | [INFO] [stdout] 212 - if res == FALSE { [INFO] [stdout] 212 + if res == false { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HDEVINFO` in this scope [INFO] [stdout] --> src/names.rs:253:10 [INFO] [stdout] | [INFO] [stdout] 253 | hdi: HDEVINFO, [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/names.rs:256:14 [INFO] [stdout] | [INFO] [stdout] 256 | dev_idx: DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `GUID` in this scope [INFO] [stdout] --> src/names.rs:261:23 [INFO] [stdout] | [INFO] [stdout] 261 | pub fn new(guid: &GUID) -> Self { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DIGCF_PRESENT` in this scope [INFO] [stdout] --> src/names.rs:263:84 [INFO] [stdout] | [INFO] [stdout] 263 | hdi: unsafe { SetupDiGetClassDevsA(guid, ptr::null(), ptr::null_mut(), DIGCF_PRESENT) }, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `SP_DEVINFO_DATA` in this scope [INFO] [stdout] --> src/names.rs:276:27 [INFO] [stdout] | [INFO] [stdout] 276 | devinfo_data: SP_DEVINFO_DATA { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SP_DEVINFO_DATA` in this scope [INFO] [stdout] --> src/names.rs:277:40 [INFO] [stdout] | [INFO] [stdout] 277 | cbSize: mem::size_of::() as DWORD, [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 268 | impl Iterator for PortDevices { [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/names.rs:277:62 [INFO] [stdout] | [INFO] [stdout] 277 | cbSize: mem::size_of::() as DWORD, [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/names.rs:285:19 [INFO] [stdout] | [INFO] [stdout] 285 | if res == FALSE { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you may want to use a bool value instead [INFO] [stdout] | [INFO] [stdout] 285 - if res == FALSE { [INFO] [stdout] 285 + if res == false { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OsString` [INFO] [stdout] --> src/ports.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ffi::{CStr, OsString}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `IoSliceMut` and `IoSlice` [INFO] [stdout] --> src/ports.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{IoSlice, IoSliceMut}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PathBuf` and `Path` [INFO] [stdout] --> src/ports.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/ports.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `comportlist` (lib test) due to 63 previous errors; 5 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | let mut cc = available_ports(); [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] Some errors have detailed explanations: E0412, E0422, E0425, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiGetDeviceInstanceIdA` in this scope [INFO] [stdout] --> src/names.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | SetupDiGetDeviceInstanceIdA( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiOpenDevRegKey` in this scope [INFO] [stdout] --> src/names.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | SetupDiOpenDevRegKey( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegQueryValueExA` in this scope [INFO] [stdout] --> src/names.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | RegQueryValueExA( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegCloseKey` in this scope [INFO] [stdout] --> src/names.rs:91:18 [INFO] [stdout] | [INFO] [stdout] 91 | unsafe { RegCloseKey(hkey) }; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiGetDeviceRegistryPropertyA` in this scope [INFO] [stdout] --> src/names.rs:132:13 [INFO] [stdout] | [INFO] [stdout] 132 | SetupDiGetDeviceRegistryPropertyA( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiClassGuidsFromNameA` in this scope [INFO] [stdout] --> src/names.rs:181:13 [INFO] [stdout] | [INFO] [stdout] 181 | SetupDiClassGuidsFromNameA( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiClassGuidsFromNameA` in this scope [INFO] [stdout] --> src/names.rs:205:17 [INFO] [stdout] | [INFO] [stdout] 205 | SetupDiClassGuidsFromNameA( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiGetClassDevsA` in this scope [INFO] [stdout] --> src/names.rs:263:27 [INFO] [stdout] | [INFO] [stdout] 263 | hdi: unsafe { SetupDiGetClassDevsA(guid, ptr::null(), ptr::null_mut(), DIGCF_PRESENT) }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiEnumDeviceInfo` in this scope [INFO] [stdout] --> src/names.rs:284:22 [INFO] [stdout] | [INFO] [stdout] 284 | unsafe { SetupDiEnumDeviceInfo(self.hdi, self.dev_idx, &mut port_dev.devinfo_data) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiDestroyDeviceInfoList` in this scope [INFO] [stdout] --> src/names.rs:298:13 [INFO] [stdout] | [INFO] [stdout] 298 | SetupDiDestroyDeviceInfoList(self.hdi); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0422, 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 `comportlist` (lib) due to 63 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "ab1c5e7314ba23b6b8e667200beac9c52dd8cfb2777f953d62f269a0b9400254", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ab1c5e7314ba23b6b8e667200beac9c52dd8cfb2777f953d62f269a0b9400254", kill_on_drop: false }` [INFO] [stdout] ab1c5e7314ba23b6b8e667200beac9c52dd8cfb2777f953d62f269a0b9400254