[INFO] cloning repository https://github.com/insomnimus/wol [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/insomnimus/wol" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Finsomnimus%2Fwol", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Finsomnimus%2Fwol'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c587a3fe70973ed41076b29e135abe6e5090153f [INFO] checking insomnimus/wol against try#5ff93158e08fa2205cd4b86cddf9eae95952cc96 for pr-129543-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Finsomnimus%2Fwol" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/insomnimus/wol [INFO] finished tweaking git repo https://github.com/insomnimus/wol [INFO] tweaked toml for git repo https://github.com/insomnimus/wol written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/insomnimus/wol on toolchain 5ff93158e08fa2205cd4b86cddf9eae95952cc96 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5ff93158e08fa2205cd4b86cddf9eae95952cc96" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/insomnimus/wol 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" "+5ff93158e08fa2205cd4b86cddf9eae95952cc96" "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 insomnimus/wol against try#5ff93158e08fa2205cd4b86cddf9eae95952cc96 for pr-129543-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Finsomnimus%2Fwol" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/insomnimus/wol [INFO] finished tweaking git repo https://github.com/insomnimus/wol [INFO] tweaked toml for git repo https://github.com/insomnimus/wol written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/insomnimus/wol on toolchain 5ff93158e08fa2205cd4b86cddf9eae95952cc96 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5ff93158e08fa2205cd4b86cddf9eae95952cc96" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/insomnimus/wol 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" "+5ff93158e08fa2205cd4b86cddf9eae95952cc96" "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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded syn v2.0.91 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+5ff93158e08fa2205cd4b86cddf9eae95952cc96" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2a951a9f096fe9deba285e0eb00b5ad59d912bbdd2f459a115a7ba5a30a69460 [INFO] running `Command { std: "docker" "start" "-a" "2a951a9f096fe9deba285e0eb00b5ad59d912bbdd2f459a115a7ba5a30a69460", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2a951a9f096fe9deba285e0eb00b5ad59d912bbdd2f459a115a7ba5a30a69460", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2a951a9f096fe9deba285e0eb00b5ad59d912bbdd2f459a115a7ba5a30a69460", kill_on_drop: false }` [INFO] [stdout] 2a951a9f096fe9deba285e0eb00b5ad59d912bbdd2f459a115a7ba5a30a69460 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+5ff93158e08fa2205cd4b86cddf9eae95952cc96" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1dffd87edf74419f6d903108afb9f5104d48533e9ca9a430183536935a42c69c [INFO] running `Command { std: "docker" "start" "-a" "1dffd87edf74419f6d903108afb9f5104d48533e9ca9a430183536935a42c69c", kill_on_drop: false }` [INFO] [stderr] Compiling windows_x86_64_gnu v0.52.6 [INFO] [stderr] Compiling syn v2.0.91 [INFO] [stderr] Checking windows-targets v0.52.6 [INFO] [stderr] Checking windows-result v0.2.0 [INFO] [stderr] Checking windows-strings v0.1.0 [INFO] [stderr] Compiling windows-interface v0.58.0 [INFO] [stderr] Compiling windows-implement v0.58.0 [INFO] [stderr] Compiling derive_more-impl v1.0.0 [INFO] [stderr] Checking windows-core v0.58.0 [INFO] [stderr] Checking windows v0.58.0 [INFO] [stderr] Checking derive_more v1.0.0 [INFO] [stderr] Checking wol v0.3.1 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `Win32` in `windows` [INFO] [stdout] --> src/device.rs:20:2 [INFO] [stdout] | [INFO] [stdout] 20 | Win32::{ [INFO] [stdout] | ^^^^^ could not find `Win32` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `windows::core` [INFO] [stdout] --> src/device.rs:16:2 [INFO] [stdout] | [INFO] [stdout] 16 | core::{ [INFO] [stdout] | ^^^^ could not find `core` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Win32` in `windows` [INFO] [stdout] --> src/screen_reader.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use windows::Win32::{ [INFO] [stdout] | ^^^^^ could not find `Win32` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `windows::core` [INFO] [stdout] --> src/error.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | use windows::core::Error as WinError; [INFO] [stdout] | ^^^^ could not find `core` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `windows::core` [INFO] [stdout] --> src/volume.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use windows::core::Result as WinResult; [INFO] [stdout] | ^^^^ could not find `core` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Win32` in `windows` [INFO] [stdout] --> src/device.rs:20:2 [INFO] [stdout] | [INFO] [stdout] 20 | Win32::{ [INFO] [stdout] | ^^^^^ could not find `Win32` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `windows::core` [INFO] [stdout] --> src/device.rs:16:2 [INFO] [stdout] | [INFO] [stdout] 16 | core::{ [INFO] [stdout] | ^^^^ could not find `core` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Win32` in `windows` [INFO] [stdout] --> src/screen_reader.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use windows::Win32::{ [INFO] [stdout] | ^^^^^ could not find `Win32` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `windows::core` [INFO] [stdout] --> src/error.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | use windows::core::Error as WinError; [INFO] [stdout] | ^^^^ could not find `core` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `windows::core` [INFO] [stdout] --> src/volume.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use windows::core::Result as WinResult; [INFO] [stdout] | ^^^^ could not find `core` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `IMMDeviceCollection` in this scope [INFO] [stdout] --> src/device.rs:37:14 [INFO] [stdout] | [INFO] [stdout] 37 | collection: IMMDeviceCollection, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `IMMDevice` in this scope [INFO] [stdout] --> src/device.rs:43:7 [INFO] [stdout] | [INFO] [stdout] 43 | dev: IMMDevice, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DEVICE_STATE_ACTIVE` in this scope [INFO] [stdout] --> src/device.rs:67:32 [INFO] [stdout] | [INFO] [stdout] 67 | pub const ACTIVE: Self = Self(DEVICE_STATE_ACTIVE.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DEVICE_STATE_DISABLED` in this scope [INFO] [stdout] --> src/device.rs:70:34 [INFO] [stdout] | [INFO] [stdout] 70 | pub const DISABLED: Self = Self(DEVICE_STATE_DISABLED.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DEVICE_STATE_NOTPRESENT` in this scope [INFO] [stdout] --> src/device.rs:71:37 [INFO] [stdout] | [INFO] [stdout] 71 | pub const NOT_PRESENT: Self = Self(DEVICE_STATE_NOTPRESENT.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DEVICE_STATE_UNPLUGGED` in this scope [INFO] [stdout] --> src/device.rs:72:35 [INFO] [stdout] | [INFO] [stdout] 72 | pub const UNPLUGGED: Self = Self(DEVICE_STATE_UNPLUGGED.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `IMMDevice` in this scope [INFO] [stdout] --> src/device.rs:137:21 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct Device { [INFO] [stdout] | ----------------- similarly named struct `Device` defined here [INFO] [stdout] ... [INFO] [stdout] 137 | unsafe fn new(dev: IMMDevice) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 137 - unsafe fn new(dev: IMMDevice) -> Result { [INFO] [stdout] 137 + unsafe fn new(dev: Device) -> Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `STGM_READ` in this scope [INFO] [stdout] --> src/device.rs:140:37 [INFO] [stdout] | [INFO] [stdout] 140 | let props = dev.OpenPropertyStore(STGM_READ)?; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PKEY_Device_FriendlyName` in this scope [INFO] [stdout] --> src/device.rs:142:15 [INFO] [stdout] | [INFO] [stdout] 142 | .GetValue(&PKEY_Device_FriendlyName)? [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `VT_EMPTY` in this scope [INFO] [stdout] --> src/device.rs:145:30 [INFO] [stdout] | [INFO] [stdout] 145 | if varname.Anonymous.vt == VT_EMPTY.0 { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `IMMDeviceEnumerator` in this scope [INFO] [stdout] --> src/device.rs:172:35 [INFO] [stdout] | [INFO] [stdout] 172 | unsafe fn enumerator() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 136 | impl Device { [INFO] [stdout] | +++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `COINIT_APARTMENTTHREADED` in this scope [INFO] [stdout] --> src/device.rs:173:24 [INFO] [stdout] | [INFO] [stdout] 173 | CoInitializeEx(None, COINIT_APARTMENTTHREADED).ok()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `IMMDeviceEnumerator` in this scope [INFO] [stdout] --> src/device.rs:174:16 [INFO] [stdout] | [INFO] [stdout] 174 | let mm_enum: IMMDeviceEnumerator = CoCreateInstance(&MMDeviceEnumerator, None, CLSCTX_ALL)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MMDeviceEnumerator` in this scope [INFO] [stdout] --> src/device.rs:174:56 [INFO] [stdout] | [INFO] [stdout] 174 | let mm_enum: IMMDeviceEnumerator = CoCreateInstance(&MMDeviceEnumerator, None, CLSCTX_ALL)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CLSCTX_ALL` in this scope [INFO] [stdout] --> src/device.rs:174:82 [INFO] [stdout] | [INFO] [stdout] 174 | let mm_enum: IMMDeviceEnumerator = CoCreateInstance(&MMDeviceEnumerator, None, CLSCTX_ALL)?; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CLSCTX_ALL` in this scope [INFO] [stdout] --> src/device.rs:184:31 [INFO] [stdout] | [INFO] [stdout] 184 | let vol = self.dev.Activate(CLSCTX_ALL, None)?; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `eRender` in this scope [INFO] [stdout] --> src/device.rs:193:46 [INFO] [stdout] | [INFO] [stdout] 193 | let dev = mm_enum.GetDefaultAudioEndpoint(eRender, eConsole)?; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `eConsole` in this scope [INFO] [stdout] --> src/device.rs:193:55 [INFO] [stdout] | [INFO] [stdout] 193 | let dev = mm_enum.GetDefaultAudioEndpoint(eRender, eConsole)?; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `eRender` in this scope [INFO] [stdout] --> src/device.rs:201:51 [INFO] [stdout] | [INFO] [stdout] 201 | let enumerator = enumerator.EnumAudioEndpoints(eRender, DEVICE_STATE(state.0))?; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `STGM_READ` in this scope [INFO] [stdout] --> src/device.rs:262:43 [INFO] [stdout] | [INFO] [stdout] 262 | let props = self.dev.OpenPropertyStore(STGM_READ)?; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PKEY_Device_DeviceDesc` in this scope [INFO] [stdout] --> src/device.rs:263:34 [INFO] [stdout] | [INFO] [stdout] 263 | let varname = props.GetValue(&PKEY_Device_DeviceDesc)?.as_raw().Anonymous; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `VT_EMPTY` in this scope [INFO] [stdout] --> src/device.rs:264:31 [INFO] [stdout] | [INFO] [stdout] 264 | if varname.Anonymous.vt == VT_EMPTY.0 { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `IMMDeviceCollection` in this scope [INFO] [stdout] --> src/device.rs:37:14 [INFO] [stdout] | [INFO] [stdout] 37 | collection: IMMDeviceCollection, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `IMMDevice` in this scope [INFO] [stdout] --> src/device.rs:43:7 [INFO] [stdout] | [INFO] [stdout] 43 | dev: IMMDevice, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DEVICE_STATE_ACTIVE` in this scope [INFO] [stdout] --> src/device.rs:67:32 [INFO] [stdout] | [INFO] [stdout] 67 | pub const ACTIVE: Self = Self(DEVICE_STATE_ACTIVE.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DEVICE_STATE_DISABLED` in this scope [INFO] [stdout] --> src/device.rs:70:34 [INFO] [stdout] | [INFO] [stdout] 70 | pub const DISABLED: Self = Self(DEVICE_STATE_DISABLED.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DEVICE_STATE_NOTPRESENT` in this scope [INFO] [stdout] --> src/device.rs:71:37 [INFO] [stdout] | [INFO] [stdout] 71 | pub const NOT_PRESENT: Self = Self(DEVICE_STATE_NOTPRESENT.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DEVICE_STATE_UNPLUGGED` in this scope [INFO] [stdout] --> src/device.rs:72:35 [INFO] [stdout] | [INFO] [stdout] 72 | pub const UNPLUGGED: Self = Self(DEVICE_STATE_UNPLUGGED.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `IMMDevice` in this scope [INFO] [stdout] --> src/device.rs:137:21 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct Device { [INFO] [stdout] | ----------------- similarly named struct `Device` defined here [INFO] [stdout] ... [INFO] [stdout] 137 | unsafe fn new(dev: IMMDevice) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 137 - unsafe fn new(dev: IMMDevice) -> Result { [INFO] [stdout] 137 + unsafe fn new(dev: Device) -> Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `STGM_READ` in this scope [INFO] [stdout] --> src/device.rs:140:37 [INFO] [stdout] | [INFO] [stdout] 140 | let props = dev.OpenPropertyStore(STGM_READ)?; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PKEY_Device_FriendlyName` in this scope [INFO] [stdout] --> src/device.rs:142:15 [INFO] [stdout] | [INFO] [stdout] 142 | .GetValue(&PKEY_Device_FriendlyName)? [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `VT_EMPTY` in this scope [INFO] [stdout] --> src/device.rs:145:30 [INFO] [stdout] | [INFO] [stdout] 145 | if varname.Anonymous.vt == VT_EMPTY.0 { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `IMMDeviceEnumerator` in this scope [INFO] [stdout] --> src/device.rs:172:35 [INFO] [stdout] | [INFO] [stdout] 172 | unsafe fn enumerator() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 136 | impl Device { [INFO] [stdout] | +++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `COINIT_APARTMENTTHREADED` in this scope [INFO] [stdout] --> src/device.rs:173:24 [INFO] [stdout] | [INFO] [stdout] 173 | CoInitializeEx(None, COINIT_APARTMENTTHREADED).ok()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `IMMDeviceEnumerator` in this scope [INFO] [stdout] --> src/device.rs:174:16 [INFO] [stdout] | [INFO] [stdout] 174 | let mm_enum: IMMDeviceEnumerator = CoCreateInstance(&MMDeviceEnumerator, None, CLSCTX_ALL)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MMDeviceEnumerator` in this scope [INFO] [stdout] --> src/device.rs:174:56 [INFO] [stdout] | [INFO] [stdout] 174 | let mm_enum: IMMDeviceEnumerator = CoCreateInstance(&MMDeviceEnumerator, None, CLSCTX_ALL)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CLSCTX_ALL` in this scope [INFO] [stdout] --> src/device.rs:174:82 [INFO] [stdout] | [INFO] [stdout] 174 | let mm_enum: IMMDeviceEnumerator = CoCreateInstance(&MMDeviceEnumerator, None, CLSCTX_ALL)?; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CLSCTX_ALL` in this scope [INFO] [stdout] --> src/device.rs:184:31 [INFO] [stdout] | [INFO] [stdout] 184 | let vol = self.dev.Activate(CLSCTX_ALL, None)?; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `eRender` in this scope [INFO] [stdout] --> src/device.rs:193:46 [INFO] [stdout] | [INFO] [stdout] 193 | let dev = mm_enum.GetDefaultAudioEndpoint(eRender, eConsole)?; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `eConsole` in this scope [INFO] [stdout] --> src/device.rs:193:55 [INFO] [stdout] | [INFO] [stdout] 193 | let dev = mm_enum.GetDefaultAudioEndpoint(eRender, eConsole)?; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `eRender` in this scope [INFO] [stdout] --> src/device.rs:201:51 [INFO] [stdout] | [INFO] [stdout] 201 | let enumerator = enumerator.EnumAudioEndpoints(eRender, DEVICE_STATE(state.0))?; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `STGM_READ` in this scope [INFO] [stdout] --> src/device.rs:262:43 [INFO] [stdout] | [INFO] [stdout] 262 | let props = self.dev.OpenPropertyStore(STGM_READ)?; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PKEY_Device_DeviceDesc` in this scope [INFO] [stdout] --> src/device.rs:263:34 [INFO] [stdout] | [INFO] [stdout] 263 | let varname = props.GetValue(&PKEY_Device_DeviceDesc)?.as_raw().Anonymous; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `VT_EMPTY` in this scope [INFO] [stdout] --> src/device.rs:264:31 [INFO] [stdout] | [INFO] [stdout] 264 | if varname.Anonymous.vt == VT_EMPTY.0 { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CoInitializeEx` in this scope [INFO] [stdout] --> src/device.rs:173:3 [INFO] [stdout] | [INFO] [stdout] 173 | CoInitializeEx(None, COINIT_APARTMENTTHREADED).ok()?; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CoCreateInstance` in this scope [INFO] [stdout] --> src/device.rs:174:38 [INFO] [stdout] | [INFO] [stdout] 174 | let mm_enum: IMMDeviceEnumerator = CoCreateInstance(&MMDeviceEnumerator, None, CLSCTX_ALL)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DEVICE_STATE` in this scope [INFO] [stdout] --> src/device.rs:201:60 [INFO] [stdout] | [INFO] [stdout] 201 | let enumerator = enumerator.EnumAudioEndpoints(eRender, DEVICE_STATE(state.0))?; [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:258:17 [INFO] [stdout] | [INFO] [stdout] 258 | let name = dev.name(); [INFO] [stdout] | ^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:267:16 [INFO] [stdout] | [INFO] [stdout] 267 | .filter(|id| !id.is_null()) [INFO] [stdout] | ^^ -- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 267 | .filter(|id: /* Type */| !id.is_null()) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:268:18 [INFO] [stdout] | [INFO] [stdout] 268 | .and_then(|id| unsafe { id.to_string().ok() }) [INFO] [stdout] | ^^ -- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 268 | .and_then(|id: /* Type */| unsafe { id.to_string().ok() }) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:324:14 [INFO] [stdout] | [INFO] [stdout] 324 | .filter(|d| d.name().to_uppercase().contains(&s)) [INFO] [stdout] | ^ - type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 324 | .filter(|d: /* Type */| d.name().to_uppercase().contains(&s)) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:333:23 [INFO] [stdout] | [INFO] [stdout] 333 | eprintln!("{}", dev.name()); [INFO] [stdout] | ^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:340:11 [INFO] [stdout] | [INFO] [stdout] 340 | .find(|dev| { [INFO] [stdout] | ^^^ [INFO] [stdout] 341 | dev.id() [INFO] [stdout] | --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 340 | .find(|dev: /* Type */| { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:343:15 [INFO] [stdout] | [INFO] [stdout] 343 | .filter(|s| !s.is_null()) [INFO] [stdout] | ^ - type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 343 | .filter(|s: /* Type */| !s.is_null()) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:344:17 [INFO] [stdout] | [INFO] [stdout] 344 | .and_then(|s| unsafe { s.to_string() }.ok()) [INFO] [stdout] | ^ - type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 344 | .and_then(|s: /* Type */| unsafe { s.to_string() }.ok()) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:345:20 [INFO] [stdout] | [INFO] [stdout] 345 | .is_some_and(|s| s.eq_ignore_ascii_case(id)) [INFO] [stdout] | ^ - type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 345 | .is_some_and(|s: /* Type */| s.eq_ignore_ascii_case(id)) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CoInitializeEx` in this scope [INFO] [stdout] --> src/device.rs:173:3 [INFO] [stdout] | [INFO] [stdout] 173 | CoInitializeEx(None, COINIT_APARTMENTTHREADED).ok()?; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CoCreateInstance` in this scope [INFO] [stdout] --> src/device.rs:174:38 [INFO] [stdout] | [INFO] [stdout] 174 | let mm_enum: IMMDeviceEnumerator = CoCreateInstance(&MMDeviceEnumerator, None, CLSCTX_ALL)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0425, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DEVICE_STATE` in this scope [INFO] [stdout] --> src/device.rs:201:60 [INFO] [stdout] | [INFO] [stdout] 201 | let enumerator = enumerator.EnumAudioEndpoints(eRender, DEVICE_STATE(state.0))?; [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `wol` (bin "wol") due to 39 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:258:17 [INFO] [stdout] | [INFO] [stdout] 258 | let name = dev.name(); [INFO] [stdout] | ^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:267:16 [INFO] [stdout] | [INFO] [stdout] 267 | .filter(|id| !id.is_null()) [INFO] [stdout] | ^^ -- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 267 | .filter(|id: /* Type */| !id.is_null()) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:268:18 [INFO] [stdout] | [INFO] [stdout] 268 | .and_then(|id| unsafe { id.to_string().ok() }) [INFO] [stdout] | ^^ -- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 268 | .and_then(|id: /* Type */| unsafe { id.to_string().ok() }) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:324:14 [INFO] [stdout] | [INFO] [stdout] 324 | .filter(|d| d.name().to_uppercase().contains(&s)) [INFO] [stdout] | ^ - type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 324 | .filter(|d: /* Type */| d.name().to_uppercase().contains(&s)) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:333:23 [INFO] [stdout] | [INFO] [stdout] 333 | eprintln!("{}", dev.name()); [INFO] [stdout] | ^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:340:11 [INFO] [stdout] | [INFO] [stdout] 340 | .find(|dev| { [INFO] [stdout] | ^^^ [INFO] [stdout] 341 | dev.id() [INFO] [stdout] | --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 340 | .find(|dev: /* Type */| { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:343:15 [INFO] [stdout] | [INFO] [stdout] 343 | .filter(|s| !s.is_null()) [INFO] [stdout] | ^ - type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 343 | .filter(|s: /* Type */| !s.is_null()) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:344:17 [INFO] [stdout] | [INFO] [stdout] 344 | .and_then(|s| unsafe { s.to_string() }.ok()) [INFO] [stdout] | ^ - type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 344 | .and_then(|s: /* Type */| unsafe { s.to_string() }.ok()) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:345:20 [INFO] [stdout] | [INFO] [stdout] 345 | .is_some_and(|s| s.eq_ignore_ascii_case(id)) [INFO] [stdout] | ^ - type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 345 | .is_some_and(|s: /* Type */| s.eq_ignore_ascii_case(id)) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0425, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `wol` (bin "wol" test) due to 39 previous errors [INFO] running `Command { std: "docker" "inspect" "1dffd87edf74419f6d903108afb9f5104d48533e9ca9a430183536935a42c69c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1dffd87edf74419f6d903108afb9f5104d48533e9ca9a430183536935a42c69c", kill_on_drop: false }` [INFO] [stdout] 1dffd87edf74419f6d903108afb9f5104d48533e9ca9a430183536935a42c69c