[INFO] cloning repository https://github.com/ksev/xone-battery [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ksev/xone-battery" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fksev%2Fxone-battery", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fksev%2Fxone-battery'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3fd88136fbf5e0693723557a3728184f64ae799a [INFO] checking ksev/xone-battery against master#9ba3d315b4b2bea7485071eaf4b2681320cd2a27 for pr-124592 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fksev%2Fxone-battery" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ksev/xone-battery on toolchain 9ba3d315b4b2bea7485071eaf4b2681320cd2a27 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9ba3d315b4b2bea7485071eaf4b2681320cd2a27" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ksev/xone-battery [INFO] finished tweaking git repo https://github.com/ksev/xone-battery [INFO] tweaked toml for git repo https://github.com/ksev/xone-battery written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ksev/xone-battery 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" "+9ba3d315b4b2bea7485071eaf4b2681320cd2a27" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking ksev/xone-battery against try#2466b92ed5feb282a98bb984f45d1e6d39f8c1aa for pr-124592 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fksev%2Fxone-battery" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ksev/xone-battery on toolchain 2466b92ed5feb282a98bb984f45d1e6d39f8c1aa [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2466b92ed5feb282a98bb984f45d1e6d39f8c1aa" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ksev/xone-battery [INFO] finished tweaking git repo https://github.com/ksev/xone-battery [INFO] tweaked toml for git repo https://github.com/ksev/xone-battery written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ksev/xone-battery 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" "+2466b92ed5feb282a98bb984f45d1e6d39f8c1aa" "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 wchar-impl v0.11.0 [INFO] [stderr] Downloaded wchar v0.11.0 [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:99613afd962a8cfa530ec1899472a458bd015a1ab0af876cf7eb06f6006d81ea" "/opt/rustwide/cargo-home/bin/cargo" "+2466b92ed5feb282a98bb984f45d1e6d39f8c1aa" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9d271ad140955b419aa5a99401a04d08e5d0052ecfce89df235a3de3060007d8 [INFO] running `Command { std: "docker" "start" "-a" "9d271ad140955b419aa5a99401a04d08e5d0052ecfce89df235a3de3060007d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9d271ad140955b419aa5a99401a04d08e5d0052ecfce89df235a3de3060007d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9d271ad140955b419aa5a99401a04d08e5d0052ecfce89df235a3de3060007d8", kill_on_drop: false }` [INFO] [stdout] 9d271ad140955b419aa5a99401a04d08e5d0052ecfce89df235a3de3060007d8 [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:99613afd962a8cfa530ec1899472a458bd015a1ab0af876cf7eb06f6006d81ea" "/opt/rustwide/cargo-home/bin/cargo" "+2466b92ed5feb282a98bb984f45d1e6d39f8c1aa" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6ea950aabe8edb1fab34b6b357fa8d1953a4cca658d6c72a2034f8bc3c0d5a74 [INFO] running `Command { std: "docker" "start" "-a" "6ea950aabe8edb1fab34b6b357fa8d1953a4cca658d6c72a2034f8bc3c0d5a74", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.74 [INFO] [stderr] Compiling cc v1.0.60 [INFO] [stderr] Compiling winapi v0.3.9 [INFO] [stderr] Compiling wchar v0.11.0 [INFO] [stderr] Checking sha1 v0.6.0 [INFO] [stderr] Checking uuid v0.8.2 [INFO] [stderr] Compiling embed-resource v1.6.3 [INFO] [stderr] Compiling xone-battery v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling wchar-impl v0.11.0 [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/win.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use winapi::shared::guiddef::GUID; [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/win.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::shared::minwindef::{LPARAM, LRESULT, UINT, WPARAM}; [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/win.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::shared::windef::{HBRUSH, HWND}; [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/win.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use winapi::shared::ntdef::{LPCWSTR, WCHAR}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::um` [INFO] [stdout] --> src/win.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use winapi::um::winuser; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::um` [INFO] [stdout] --> src/win.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::um::libloaderapi; [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/gamepads.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use winapi::shared::winerror::SUCCEEDED; [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/gamepads.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::um::xinput::{XInputGetBatteryInformation, BATTERY_DEVTYPE_GAMEPAD, BATTERY_LEVEL_FULL, [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/main.rs:53:17 [INFO] [stdout] | [INFO] [stdout] 53 | use winapi::shared::guiddef::GUID; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::um` [INFO] [stdout] --> src/win.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use winapi::um::shellapi; [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/main.rs:52:40 [INFO] [stdout] | [INFO] [stdout] 52 | fn uuid_to_guid(uuid: Uuid) -> winapi::shared::guiddef::GUID { [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/win.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use winapi::shared::guiddef::GUID; [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/win.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::shared::minwindef::{LPARAM, LRESULT, UINT, WPARAM}; [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/win.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::shared::windef::{HBRUSH, HWND}; [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/win.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use winapi::shared::ntdef::{LPCWSTR, WCHAR}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::um` [INFO] [stdout] --> src/win.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use winapi::um::winuser; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::um` [INFO] [stdout] --> src/win.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::um::libloaderapi; [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/gamepads.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use winapi::shared::winerror::SUCCEEDED; [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/gamepads.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::um::xinput::{XInputGetBatteryInformation, BATTERY_DEVTYPE_GAMEPAD, BATTERY_LEVEL_FULL, [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/main.rs:53:17 [INFO] [stdout] | [INFO] [stdout] 53 | use winapi::shared::guiddef::GUID; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::um` [INFO] [stdout] --> src/win.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use winapi::um::shellapi; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:20:31 [INFO] [stdout] | [INFO] [stdout] 20 | const NO_CONTROLLER: &[u16] = wch!("No controller connected"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u16`, found `i32` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::_impl::wch` which comes from the expansion of the macro `wch` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/win.rs:15:32 [INFO] [stdout] | [INFO] [stdout] 15 | const CLASS_NAME: &[u16] = wchz!("xboxone-battery-class"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u16`, found `i32` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::_impl::wchz` which comes from the expansion of the macro `wchz` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/win.rs:16:33 [INFO] [stdout] | [INFO] [stdout] 16 | const WINDOW_NAME: &[u16] = wchz!("xboxone-battery-window"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u16`, found `i32` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::_impl::wchz` which comes from the expansion of the macro `wchz` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:39:70 [INFO] [stdout] | [INFO] [stdout] 39 | Empty => win::change_icon(hwnd, guid, IDI_EMPTY, wch!("Battery is empty")), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ expected `u16`, found `i32` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::_impl::wch` which comes from the expansion of the macro `wch` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/main.rs:52:40 [INFO] [stdout] | [INFO] [stdout] 52 | fn uuid_to_guid(uuid: Uuid) -> winapi::shared::guiddef::GUID { [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:40:66 [INFO] [stdout] | [INFO] [stdout] 40 | Low => win::change_icon(hwnd, guid, IDI_LOW, wch!("Battery is low")), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ expected `u16`, found `i32` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::_impl::wch` which comes from the expansion of the macro `wch` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:41:72 [INFO] [stdout] | [INFO] [stdout] 41 | Medium => win::change_icon(hwnd, guid, IDI_MEDIUM, wch!("Battery is half-full")), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u16`, found `i32` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::_impl::wch` which comes from the expansion of the macro `wch` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:42:68 [INFO] [stdout] | [INFO] [stdout] 42 | Full => win::change_icon(hwnd, guid, IDI_FULL, wch!("Battery is full")), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ expected `u16`, found `i32` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::_impl::wch` which comes from the expansion of the macro `wch` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 18 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `xone-battery` (bin "xone-battery" test) due to 19 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:20:31 [INFO] [stdout] | [INFO] [stdout] 20 | const NO_CONTROLLER: &[u16] = wch!("No controller connected"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u16`, found `i32` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::_impl::wch` which comes from the expansion of the macro `wch` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/win.rs:15:32 [INFO] [stdout] | [INFO] [stdout] 15 | const CLASS_NAME: &[u16] = wchz!("xboxone-battery-class"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u16`, found `i32` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::_impl::wchz` which comes from the expansion of the macro `wchz` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/win.rs:16:33 [INFO] [stdout] | [INFO] [stdout] 16 | const WINDOW_NAME: &[u16] = wchz!("xboxone-battery-window"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u16`, found `i32` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::_impl::wchz` which comes from the expansion of the macro `wchz` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:39:70 [INFO] [stdout] | [INFO] [stdout] 39 | Empty => win::change_icon(hwnd, guid, IDI_EMPTY, wch!("Battery is empty")), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ expected `u16`, found `i32` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::_impl::wch` which comes from the expansion of the macro `wch` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:40:66 [INFO] [stdout] | [INFO] [stdout] 40 | Low => win::change_icon(hwnd, guid, IDI_LOW, wch!("Battery is low")), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ expected `u16`, found `i32` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::_impl::wch` which comes from the expansion of the macro `wch` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:41:72 [INFO] [stdout] | [INFO] [stdout] 41 | Medium => win::change_icon(hwnd, guid, IDI_MEDIUM, wch!("Battery is half-full")), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u16`, found `i32` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::_impl::wch` which comes from the expansion of the macro `wch` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:42:68 [INFO] [stdout] | [INFO] [stdout] 42 | Full => win::change_icon(hwnd, guid, IDI_FULL, wch!("Battery is full")), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ expected `u16`, found `i32` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::_impl::wch` which comes from the expansion of the macro `wch` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 18 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `xone-battery` (bin "xone-battery") due to 19 previous errors [INFO] running `Command { std: "docker" "inspect" "6ea950aabe8edb1fab34b6b357fa8d1953a4cca658d6c72a2034f8bc3c0d5a74", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6ea950aabe8edb1fab34b6b357fa8d1953a4cca658d6c72a2034f8bc3c0d5a74", kill_on_drop: false }` [INFO] [stdout] 6ea950aabe8edb1fab34b6b357fa8d1953a4cca658d6c72a2034f8bc3c0d5a74