[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 1.55.0 for beta-1.56-3
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fksev%2Fxone-battery" "/workspace/builds/worker-13/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-13/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/ksev/xone-battery on toolchain 1.55.0
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.55.0" "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-13/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: "/workspace/cargo-home/bin/cargo" "+1.55.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+1.55.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 37054b0d2248fc26fa558dead16f45437d4460464891fd935c824e04453a62ec
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "37054b0d2248fc26fa558dead16f45437d4460464891fd935c824e04453a62ec", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "37054b0d2248fc26fa558dead16f45437d4460464891fd935c824e04453a62ec", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "37054b0d2248fc26fa558dead16f45437d4460464891fd935c824e04453a62ec", kill_on_drop: false }`
[INFO] [stdout] 37054b0d2248fc26fa558dead16f45437d4460464891fd935c824e04453a62ec
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+1.55.0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 6bd3e1c5d3ab4c6feff75b1944f62c96ad99013119e13ec2ba5c175fb9d61f0c
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "6bd3e1c5d3ab4c6feff75b1944f62c96ad99013119e13ec2ba5c175fb9d61f0c", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]    Compiling syn v1.0.74
[INFO] [stderr]    Compiling wchar v0.11.0
[INFO] [stderr]    Compiling winapi v0.3.9
[INFO] [stderr]    Compiling embed-resource v1.6.3
[INFO] [stderr]     Checking uuid v0.8.2
[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/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[E0412]: cannot find type `HWND` in this scope
[INFO] [stdout]   --> src/win.rs:14:31
[INFO] [stdout]    |
[INFO] [stdout] 14 | pub fn initialize() -> Option<HWND> {
[INFO] [stdout]    |                  -            ^^^^ not found in this scope
[INFO] [stdout]    |                  |
[INFO] [stdout]    |                  help: you might be missing a type parameter: `<HWND>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `HBRUSH` in this scope
[INFO] [stdout]   --> src/win.rs:28:53
[INFO] [stdout]    |
[INFO] [stdout] 28 |             hbrBackground: winuser::COLOR_WINDOW as HBRUSH,
[INFO] [stdout]    |                                                     ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `LPCWSTR` in this scope
[INFO] [stdout]   --> src/win.rs:42:21
[INFO] [stdout]    |
[INFO] [stdout] 42 |             atom as LPCWSTR,
[INFO] [stdout]    |                     ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope
[INFO] [stdout]   --> src/win.rs:63:23
[INFO] [stdout]    |
[INFO] [stdout] 63 | pub fn add_icon(hwnd: HWND, id: GUID, res_id: isize, tip: &'static [u16]) -> bool {
[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/win.rs:63:33
[INFO] [stdout]    |
[INFO] [stdout] 63 | pub fn add_icon(hwnd: HWND, id: GUID, res_id: isize, tip: &'static [u16]) -> bool {
[INFO] [stdout]    |                                 ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `WCHAR` in this scope
[INFO] [stdout]   --> src/win.rs:64:27
[INFO] [stdout]    |
[INFO] [stdout] 64 |     let mut array = [0 as WCHAR; 128];
[INFO] [stdout]    |                           ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope
[INFO] [stdout]   --> src/win.rs:95:26
[INFO] [stdout]    |
[INFO] [stdout] 95 | pub fn change_icon(hwnd: HWND, id: GUID, res_id: isize, tip: &'static [u16]) -> bool {
[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/win.rs:95:36
[INFO] [stdout]    |
[INFO] [stdout] 95 | pub fn change_icon(hwnd: HWND, id: GUID, res_id: isize, tip: &'static [u16]) -> bool {
[INFO] [stdout]    |                                    ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `WCHAR` in this scope
[INFO] [stdout]   --> src/win.rs:96:27
[INFO] [stdout]    |
[INFO] [stdout] 96 |     let mut array = [0 as WCHAR; 128];
[INFO] [stdout]    |                           ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope
[INFO] [stdout]    --> src/win.rs:129:12
[INFO] [stdout]     |
[INFO] [stdout] 129 |     h_wnd: HWND,
[INFO] [stdout]     |            ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `UINT` in this scope
[INFO] [stdout]    --> src/win.rs:130:10
[INFO] [stdout]     |
[INFO] [stdout] 130 |     msg: UINT,
[INFO] [stdout]     |          ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `WPARAM` in this scope
[INFO] [stdout]    --> src/win.rs:131:14
[INFO] [stdout]     |
[INFO] [stdout] 131 |     w_param: WPARAM,
[INFO] [stdout]     |              ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `LPARAM` in this scope
[INFO] [stdout]    --> src/win.rs:132:14
[INFO] [stdout]     |
[INFO] [stdout] 132 |     l_param: LPARAM,
[INFO] [stdout]     |              ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `LRESULT` in this scope
[INFO] [stdout]    --> src/win.rs:133:6
[INFO] [stdout]     |
[INFO] [stdout] 133 | ) -> LRESULT {
[INFO] [stdout]     |      ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `XUSER_MAX_COUNT` in this scope
[INFO] [stdout]   --> src/gamepads.rs:44:9
[INFO] [stdout]    |
[INFO] [stdout] 44 |     (0..XUSER_MAX_COUNT).filter_map(|user_index| unsafe {
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `XINPUT_BATTERY_INFORMATION` in this scope
[INFO] [stdout]   --> src/gamepads.rs:45:24
[INFO] [stdout]    |
[INFO] [stdout] 45 |         let mut xinfo: XINPUT_BATTERY_INFORMATION = std::mem::zeroed();
[INFO] [stdout]    |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `XInputGetBatteryInformation` in this scope
[INFO] [stdout]   --> src/gamepads.rs:46:19
[INFO] [stdout]    |
[INFO] [stdout] 46 |         let err = XInputGetBatteryInformation(
[INFO] [stdout]    |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `BATTERY_DEVTYPE_GAMEPAD` in this scope
[INFO] [stdout]   --> src/gamepads.rs:48:13
[INFO] [stdout]    |
[INFO] [stdout] 48 |             BATTERY_DEVTYPE_GAMEPAD,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `XINPUT_BATTERY_INFORMATION` in this scope
[INFO] [stdout]   --> src/gamepads.rs:49:32
[INFO] [stdout]    |
[INFO] [stdout] 49 |             &mut xinfo as *mut XINPUT_BATTERY_INFORMATION,
[INFO] [stdout]    |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SUCCEEDED` in this scope
[INFO] [stdout]   --> src/gamepads.rs:52:12
[INFO] [stdout]    |
[INFO] [stdout] 52 |         if SUCCEEDED(err as i32) {
[INFO] [stdout]    |            ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `GUID` in this scope
[INFO] [stdout]   --> src/main.rs:60:5
[INFO] [stdout]    |
[INFO] [stdout] 60 |     GUID {
[INFO] [stdout]    |     ^^^^ not found in this scope
[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[E0412]: cannot find type `HWND` in this scope
[INFO] [stdout]   --> src/win.rs:14:31
[INFO] [stdout]    |
[INFO] [stdout] 14 | pub fn initialize() -> Option<HWND> {
[INFO] [stdout]    |                  -            ^^^^ not found in this scope
[INFO] [stdout]    |                  |
[INFO] [stdout]    |                  help: you might be missing a type parameter: `<HWND>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `HBRUSH` in this scope
[INFO] [stdout]   --> src/win.rs:28:53
[INFO] [stdout]    |
[INFO] [stdout] 28 |             hbrBackground: winuser::COLOR_WINDOW as HBRUSH,
[INFO] [stdout]    |                                                     ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `LPCWSTR` in this scope
[INFO] [stdout]   --> src/win.rs:42:21
[INFO] [stdout]    |
[INFO] [stdout] 42 |             atom as LPCWSTR,
[INFO] [stdout]    |                     ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope
[INFO] [stdout]   --> src/win.rs:63:23
[INFO] [stdout]    |
[INFO] [stdout] 63 | pub fn add_icon(hwnd: HWND, id: GUID, res_id: isize, tip: &'static [u16]) -> bool {
[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/win.rs:63:33
[INFO] [stdout]    |
[INFO] [stdout] 63 | pub fn add_icon(hwnd: HWND, id: GUID, res_id: isize, tip: &'static [u16]) -> bool {
[INFO] [stdout]    |                                 ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `WCHAR` in this scope
[INFO] [stdout]   --> src/win.rs:64:27
[INFO] [stdout]    |
[INFO] [stdout] 64 |     let mut array = [0 as WCHAR; 128];
[INFO] [stdout]    |                           ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope
[INFO] [stdout]   --> src/win.rs:95:26
[INFO] [stdout]    |
[INFO] [stdout] 95 | pub fn change_icon(hwnd: HWND, id: GUID, res_id: isize, tip: &'static [u16]) -> bool {
[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/win.rs:95:36
[INFO] [stdout]    |
[INFO] [stdout] 95 | pub fn change_icon(hwnd: HWND, id: GUID, res_id: isize, tip: &'static [u16]) -> bool {
[INFO] [stdout]    |                                    ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `WCHAR` in this scope
[INFO] [stdout]   --> src/win.rs:96:27
[INFO] [stdout]    |
[INFO] [stdout] 96 |     let mut array = [0 as WCHAR; 128];
[INFO] [stdout]    |                           ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope
[INFO] [stdout]    --> src/win.rs:129:12
[INFO] [stdout]     |
[INFO] [stdout] 129 |     h_wnd: HWND,
[INFO] [stdout]     |            ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `UINT` in this scope
[INFO] [stdout]    --> src/win.rs:130:10
[INFO] [stdout]     |
[INFO] [stdout] 130 |     msg: UINT,
[INFO] [stdout]     |          ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `WPARAM` in this scope
[INFO] [stdout]    --> src/win.rs:131:14
[INFO] [stdout]     |
[INFO] [stdout] 131 |     w_param: WPARAM,
[INFO] [stdout]     |              ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `LPARAM` in this scope
[INFO] [stdout]    --> src/win.rs:132:14
[INFO] [stdout]     |
[INFO] [stdout] 132 |     l_param: LPARAM,
[INFO] [stdout]     |              ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `LRESULT` in this scope
[INFO] [stdout]    --> src/win.rs:133:6
[INFO] [stdout]     |
[INFO] [stdout] 133 | ) -> LRESULT {
[INFO] [stdout]     |      ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `XUSER_MAX_COUNT` in this scope
[INFO] [stdout]   --> src/gamepads.rs:44:9
[INFO] [stdout]    |
[INFO] [stdout] 44 |     (0..XUSER_MAX_COUNT).filter_map(|user_index| unsafe {
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `XINPUT_BATTERY_INFORMATION` in this scope
[INFO] [stdout]   --> src/gamepads.rs:45:24
[INFO] [stdout]    |
[INFO] [stdout] 45 |         let mut xinfo: XINPUT_BATTERY_INFORMATION = std::mem::zeroed();
[INFO] [stdout]    |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `XInputGetBatteryInformation` in this scope
[INFO] [stdout]   --> src/gamepads.rs:46:19
[INFO] [stdout]    |
[INFO] [stdout] 46 |         let err = XInputGetBatteryInformation(
[INFO] [stdout]    |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `BATTERY_DEVTYPE_GAMEPAD` in this scope
[INFO] [stdout]   --> src/gamepads.rs:48:13
[INFO] [stdout]    |
[INFO] [stdout] 48 |             BATTERY_DEVTYPE_GAMEPAD,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `XINPUT_BATTERY_INFORMATION` in this scope
[INFO] [stdout]   --> src/gamepads.rs:49:32
[INFO] [stdout]    |
[INFO] [stdout] 49 |             &mut xinfo as *mut XINPUT_BATTERY_INFORMATION,
[INFO] [stdout]    |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SUCCEEDED` in this scope
[INFO] [stdout]   --> src/gamepads.rs:52:12
[INFO] [stdout]    |
[INFO] [stdout] 52 |         if SUCCEEDED(err as i32) {
[INFO] [stdout]    |            ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `GUID` in this scope
[INFO] [stdout]   --> src/main.rs:60:5
[INFO] [stdout]    |
[INFO] [stdout] 60 |     GUID {
[INFO] [stdout]    |     ^^^^ not found in this scope
[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` (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` (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` (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: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` (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` (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` (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` (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` (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` (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` (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` (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` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 39 previous errors
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0308, E0412, E0422, E0425, 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` due to 40 previous errors
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[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` (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` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 39 previous errors
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0308, E0412, E0422, E0425, E0432, E0433.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: build failed
[INFO] running `Command { std: "docker" "inspect" "6bd3e1c5d3ab4c6feff75b1944f62c96ad99013119e13ec2ba5c175fb9d61f0c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6bd3e1c5d3ab4c6feff75b1944f62c96ad99013119e13ec2ba5c175fb9d61f0c", kill_on_drop: false }`
[INFO] [stdout] 6bd3e1c5d3ab4c6feff75b1944f62c96ad99013119e13ec2ba5c175fb9d61f0c
