[INFO] cloning repository https://github.com/nazgul72/xclock [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/nazgul72/xclock" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnazgul72%2Fxclock", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnazgul72%2Fxclock'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2cb026ee4bdc6011919083121577d0aeb5feb88d [INFO] checking nazgul72/xclock against try#b047d5f4496a7526d91d0dddea494c05853f2a7b for pr-122661-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnazgul72%2Fxclock" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/nazgul72/xclock [INFO] finished tweaking git repo https://github.com/nazgul72/xclock [INFO] tweaked toml for git repo https://github.com/nazgul72/xclock written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/nazgul72/xclock on toolchain b047d5f4496a7526d91d0dddea494c05853f2a7b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b047d5f4496a7526d91d0dddea494c05853f2a7b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/nazgul72/xclock 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" "+b047d5f4496a7526d91d0dddea494c05853f2a7b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /workspace/builds/worker-3-tc2/source/xclock-hook/Cargo.toml [INFO] [stderr] workspace: /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+b047d5f4496a7526d91d0dddea494c05853f2a7b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d97e255e94375b20c44da4e9f9554ff3547a6d5723b21c1a38bf7311d8468742 [INFO] running `Command { std: "docker" "start" "-a" "d97e255e94375b20c44da4e9f9554ff3547a6d5723b21c1a38bf7311d8468742", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d97e255e94375b20c44da4e9f9554ff3547a6d5723b21c1a38bf7311d8468742", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d97e255e94375b20c44da4e9f9554ff3547a6d5723b21c1a38bf7311d8468742", kill_on_drop: false }` [INFO] [stdout] d97e255e94375b20c44da4e9f9554ff3547a6d5723b21c1a38bf7311d8468742 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+b047d5f4496a7526d91d0dddea494c05853f2a7b" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] eb1bb39e7e7b8a797a62d390b00ab97a7d8734a12dc367618e925b5c9be32abb [INFO] running `Command { std: "docker" "start" "-a" "eb1bb39e7e7b8a797a62d390b00ab97a7d8734a12dc367618e925b5c9be32abb", kill_on_drop: false }` [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /opt/rustwide/workdir/xclock-hook/Cargo.toml [INFO] [stderr] workspace: /opt/rustwide/workdir/Cargo.toml [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling winapi v0.3.9 [INFO] [stderr] Checking iana-time-zone v0.1.63 [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling cfg_aliases v0.2.1 [INFO] [stderr] Checking bitflags v2.9.1 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling nix v0.30.1 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking chrono v0.4.41 [INFO] [stderr] Checking ctrlc v3.4.7 [INFO] [stderr] Checking xclock v0.1.0 (/opt/rustwide/workdir/xclock) [INFO] [stderr] Checking xclock-hook v0.1.0 (/opt/rustwide/workdir/xclock-hook) [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> xclock/src/lib.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::shared::minwindef::{BOOL, HMODULE}; [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] --> xclock/src/lib.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use winapi::um::libloaderapi::{FreeLibrary, GetProcAddress, LoadLibraryW}; [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] --> xclock/src/lib.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use winapi::um::winuser::*; [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] --> xclock-hook/src/lib.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | use std::os::windows::ffi::OsStringExt; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/b047d5f4496a7526d91d0dddea494c05853f2a7b/library/std/src/os/mod.rs:63:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/b047d5f4496a7526d91d0dddea494c05853f2a7b/library/std/src/os/mod.rs:56:5 [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/b047d5f4496a7526d91d0dddea494c05853f2a7b/library/std/src/os/mod.rs:121:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/b047d5f4496a7526d91d0dddea494c05853f2a7b/library/std/src/os/mod.rs:120:10 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> xclock-hook/src/lib.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::shared::minwindef::{BOOL, DWORD, HINSTANCE, LPARAM, LRESULT, 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] --> xclock-hook/src/lib.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use winapi::shared::windef::{HWND, RECT, HHOOK__}; [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] --> xclock-hook/src/lib.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | use winapi::um::sysinfoapi::GetTickCount; [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] --> xclock-hook/src/lib.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | use winapi::um::winuser::*; [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] --> xclock-hook/src/lib.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | use winapi::um::debugapi::OutputDebugStringA; [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] --> xclock-hook/src/lib.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | 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 `shared` in `winapi` [INFO] [stdout] --> xclock/src/lib.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::shared::minwindef::{BOOL, HMODULE}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> xclock-hook/src/lib.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | use std::os::windows::ffi::OsStringExt; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/b047d5f4496a7526d91d0dddea494c05853f2a7b/library/std/src/os/mod.rs:63:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/b047d5f4496a7526d91d0dddea494c05853f2a7b/library/std/src/os/mod.rs:56:5 [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/b047d5f4496a7526d91d0dddea494c05853f2a7b/library/std/src/os/mod.rs:121:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/b047d5f4496a7526d91d0dddea494c05853f2a7b/library/std/src/os/mod.rs:120:10 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> xclock/src/lib.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use winapi::um::libloaderapi::{FreeLibrary, GetProcAddress, LoadLibraryW}; [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] --> xclock-hook/src/lib.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::shared::minwindef::{BOOL, DWORD, HINSTANCE, LPARAM, LRESULT, WPARAM}; [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] --> xclock/src/lib.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use winapi::um::winuser::*; [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] --> xclock-hook/src/lib.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use winapi::shared::windef::{HWND, RECT, HHOOK__}; [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] --> xclock-hook/src/lib.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | use winapi::um::sysinfoapi::GetTickCount; [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] --> xclock-hook/src/lib.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | use winapi::um::winuser::*; [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] --> xclock-hook/src/lib.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | use winapi::um::debugapi::OutputDebugStringA; [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] --> xclock-hook/src/lib.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | use winapi::um::errhandlingapi::GetLastError; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetMessageW` in this scope [INFO] [stdout] --> xclock/src/lib.rs:123:26 [INFO] [stdout] | [INFO] [stdout] 123 | let result = GetMessageW(&mut msg, ptr::null_mut(), 0, 0); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `TranslateMessage` in this scope [INFO] [stdout] --> xclock/src/lib.rs:131:13 [INFO] [stdout] | [INFO] [stdout] 131 | TranslateMessage(&msg); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DispatchMessageW` in this scope [INFO] [stdout] --> xclock/src/lib.rs:132:13 [INFO] [stdout] | [INFO] [stdout] 132 | DispatchMessageW(&msg); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `xclock` (lib) due to 6 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetMessageW` in this scope [INFO] [stdout] --> xclock/src/lib.rs:123:26 [INFO] [stdout] | [INFO] [stdout] 123 | let result = GetMessageW(&mut msg, ptr::null_mut(), 0, 0); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `TranslateMessage` in this scope [INFO] [stdout] --> xclock/src/lib.rs:131:13 [INFO] [stdout] | [INFO] [stdout] 131 | TranslateMessage(&msg); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DispatchMessageW` in this scope [INFO] [stdout] --> xclock/src/lib.rs:132:13 [INFO] [stdout] | [INFO] [stdout] 132 | DispatchMessageW(&msg); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SM_CYSCREEN` in this scope [INFO] [stdout] --> xclock-hook/src/lib.rs:91:46 [INFO] [stdout] | [INFO] [stdout] 91 | let screen_height = GetSystemMetrics(SM_CYSCREEN); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HCBT_CREATEWND` in this scope [INFO] [stdout] --> xclock-hook/src/lib.rs:256:16 [INFO] [stdout] | [INFO] [stdout] 256 | if code == HCBT_CREATEWND { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WH_CBT` in this scope [INFO] [stdout] --> xclock-hook/src/lib.rs:308:9 [INFO] [stdout] | [INFO] [stdout] 308 | WH_CBT, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SM_CYSCREEN` in this scope [INFO] [stdout] --> xclock-hook/src/lib.rs:91:46 [INFO] [stdout] | [INFO] [stdout] 91 | let screen_height = GetSystemMetrics(SM_CYSCREEN); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HCBT_CREATEWND` in this scope [INFO] [stdout] --> xclock-hook/src/lib.rs:256:16 [INFO] [stdout] | [INFO] [stdout] 256 | if code == HCBT_CREATEWND { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WH_CBT` in this scope [INFO] [stdout] --> xclock-hook/src/lib.rs:308:9 [INFO] [stdout] | [INFO] [stdout] 308 | WH_CBT, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `xclock` (lib test) due to 6 previous errors [INFO] [stdout] error[E0599]: no function or associated item named `from_wide` found for struct `OsString` in the current scope [INFO] [stdout] --> xclock-hook/src/lib.rs:44:15 [INFO] [stdout] | [INFO] [stdout] 44 | OsString::from_wide(utf16) [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `OsString` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `OsString` consider using one of the following associated functions: [INFO] [stdout] OsString::new [INFO] [stdout] OsString::from_encoded_bytes_unchecked [INFO] [stdout] OsString::with_capacity [INFO] [stdout] --> /rustc/b047d5f4496a7526d91d0dddea494c05853f2a7b/library/std/src/ffi/os_str.rs:141:5 [INFO] [stdout] help: there is an associated function `from_iter` with a similar name [INFO] [stdout] | [INFO] [stdout] 44 - OsString::from_wide(utf16) [INFO] [stdout] 44 + OsString::from_iter(utf16) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetClassNameW` in this scope [INFO] [stdout] --> xclock-hook/src/lib.rs:56:15 [INFO] [stdout] | [INFO] [stdout] 56 | let len = GetClassNameW(hwnd, class_name.as_mut_ptr(), class_name.len() as i32); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetWindowTextW` in this scope [INFO] [stdout] --> xclock-hook/src/lib.rs:71:15 [INFO] [stdout] | [INFO] [stdout] 71 | let len = GetWindowTextW(hwnd, text.as_mut_ptr(), text.len() as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_wide` found for struct `OsString` in the current scope [INFO] [stdout] --> xclock-hook/src/lib.rs:44:15 [INFO] [stdout] | [INFO] [stdout] 44 | OsString::from_wide(utf16) [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `OsString` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `OsString` consider using one of the following associated functions: [INFO] [stdout] OsString::new [INFO] [stdout] OsString::from_encoded_bytes_unchecked [INFO] [stdout] OsString::with_capacity [INFO] [stdout] --> /rustc/b047d5f4496a7526d91d0dddea494c05853f2a7b/library/std/src/ffi/os_str.rs:141:5 [INFO] [stdout] help: there is an associated function `from_iter` with a similar name [INFO] [stdout] | [INFO] [stdout] 44 - OsString::from_wide(utf16) [INFO] [stdout] 44 + OsString::from_iter(utf16) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetWindowRect` in this scope [INFO] [stdout] --> xclock-hook/src/lib.rs:90:8 [INFO] [stdout] | [INFO] [stdout] 90 | if GetWindowRect(hwnd, &mut rect) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetSystemMetrics` in this scope [INFO] [stdout] --> xclock-hook/src/lib.rs:91:29 [INFO] [stdout] | [INFO] [stdout] 91 | let screen_height = GetSystemMetrics(SM_CYSCREEN); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowTextW` in this scope [INFO] [stdout] --> xclock-hook/src/lib.rs:188:22 [INFO] [stdout] | [INFO] [stdout] 188 | let result = SetWindowTextW(hwnd, new_text_utf16.as_ptr()); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowTextW` in this scope [INFO] [stdout] --> xclock-hook/src/lib.rs:199:22 [INFO] [stdout] | [INFO] [stdout] 199 | let result = SetWindowTextW(hwnd, new_text_utf16.as_ptr()); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `EnumChildWindows` in this scope [INFO] [stdout] --> xclock-hook/src/lib.rs:234:13 [INFO] [stdout] | [INFO] [stdout] 234 | EnumChildWindows(hwnd, Some(enum_child_proc), new_text_utf16.as_ptr() as LPARAM); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `InvalidateRect` in this scope [INFO] [stdout] --> xclock-hook/src/lib.rs:243:9 [INFO] [stdout] | [INFO] [stdout] 243 | InvalidateRect(hwnd, ptr::null(), 1); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `UpdateWindow` in this scope [INFO] [stdout] --> xclock-hook/src/lib.rs:244:9 [INFO] [stdout] | [INFO] [stdout] 244 | UpdateWindow(hwnd); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetClassNameW` in this scope [INFO] [stdout] --> xclock-hook/src/lib.rs:213:31 [INFO] [stdout] | [INFO] [stdout] 213 | let len = GetClassNameW(child_hwnd, class_name.as_mut_ptr(), class_name.len() as i32); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowTextW` in this scope [INFO] [stdout] --> xclock-hook/src/lib.rs:225:34 [INFO] [stdout] | [INFO] [stdout] 225 | let result = SetWindowTextW(child_hwnd, new_text.as_ptr()); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `IsWindow` in this scope [INFO] [stdout] --> xclock-hook/src/lib.rs:273:24 [INFO] [stdout] | [INFO] [stdout] 273 | if IsWindow(hwnd) != 0 { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CallNextHookEx` in this scope [INFO] [stdout] --> xclock-hook/src/lib.rs:293:5 [INFO] [stdout] | [INFO] [stdout] 293 | CallNextHookEx(ptr::null_mut(), code, wparam, lparam) [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetClassNameW` in this scope [INFO] [stdout] --> xclock-hook/src/lib.rs:56:15 [INFO] [stdout] | [INFO] [stdout] 56 | let len = GetClassNameW(hwnd, class_name.as_mut_ptr(), class_name.len() as i32); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetWindowTextW` in this scope [INFO] [stdout] --> xclock-hook/src/lib.rs:71:15 [INFO] [stdout] | [INFO] [stdout] 71 | let len = GetWindowTextW(hwnd, text.as_mut_ptr(), text.len() as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowsHookExW` in this scope [INFO] [stdout] --> xclock-hook/src/lib.rs:307:16 [INFO] [stdout] | [INFO] [stdout] 307 | let hook = SetWindowsHookExW( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetWindowRect` in this scope [INFO] [stdout] --> xclock-hook/src/lib.rs:90:8 [INFO] [stdout] | [INFO] [stdout] 90 | if GetWindowRect(hwnd, &mut rect) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetSystemMetrics` in this scope [INFO] [stdout] --> xclock-hook/src/lib.rs:91:29 [INFO] [stdout] | [INFO] [stdout] 91 | let screen_height = GetSystemMetrics(SM_CYSCREEN); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `UnhookWindowsHookEx` in this scope [INFO] [stdout] --> xclock-hook/src/lib.rs:338:12 [INFO] [stdout] | [INFO] [stdout] 338 | if UnhookWindowsHookEx(hook) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowTextW` in this scope [INFO] [stdout] --> xclock-hook/src/lib.rs:188:22 [INFO] [stdout] | [INFO] [stdout] 188 | let result = SetWindowTextW(hwnd, new_text_utf16.as_ptr()); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowTextW` in this scope [INFO] [stdout] --> xclock-hook/src/lib.rs:199:22 [INFO] [stdout] | [INFO] [stdout] 199 | let result = SetWindowTextW(hwnd, new_text_utf16.as_ptr()); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `EnumChildWindows` in this scope [INFO] [stdout] --> xclock-hook/src/lib.rs:234:13 [INFO] [stdout] | [INFO] [stdout] 234 | EnumChildWindows(hwnd, Some(enum_child_proc), new_text_utf16.as_ptr() as LPARAM); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `InvalidateRect` in this scope [INFO] [stdout] --> xclock-hook/src/lib.rs:243:9 [INFO] [stdout] | [INFO] [stdout] 243 | InvalidateRect(hwnd, ptr::null(), 1); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `UpdateWindow` in this scope [INFO] [stdout] --> xclock-hook/src/lib.rs:244:9 [INFO] [stdout] | [INFO] [stdout] 244 | UpdateWindow(hwnd); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetClassNameW` in this scope [INFO] [stdout] --> xclock-hook/src/lib.rs:213:31 [INFO] [stdout] | [INFO] [stdout] 213 | let len = GetClassNameW(child_hwnd, class_name.as_mut_ptr(), class_name.len() as i32); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowTextW` in this scope [INFO] [stdout] --> xclock-hook/src/lib.rs:225:34 [INFO] [stdout] | [INFO] [stdout] 225 | let result = SetWindowTextW(child_hwnd, new_text.as_ptr()); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `IsWindow` in this scope [INFO] [stdout] --> xclock-hook/src/lib.rs:273:24 [INFO] [stdout] | [INFO] [stdout] 273 | if IsWindow(hwnd) != 0 { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CallNextHookEx` in this scope [INFO] [stdout] --> xclock-hook/src/lib.rs:293:5 [INFO] [stdout] | [INFO] [stdout] 293 | CallNextHookEx(ptr::null_mut(), code, wparam, lparam) [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowsHookExW` in this scope [INFO] [stdout] --> xclock-hook/src/lib.rs:307:16 [INFO] [stdout] | [INFO] [stdout] 307 | let hook = SetWindowsHookExW( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `UnhookWindowsHookEx` in this scope [INFO] [stdout] --> xclock-hook/src/lib.rs:338:12 [INFO] [stdout] | [INFO] [stdout] 338 | if UnhookWindowsHookEx(hook) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `xclock-hook` (lib test) due to 26 previous errors [INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `xclock-hook` (lib) due to 26 previous errors [INFO] running `Command { std: "docker" "inspect" "eb1bb39e7e7b8a797a62d390b00ab97a7d8734a12dc367618e925b5c9be32abb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eb1bb39e7e7b8a797a62d390b00ab97a7d8734a12dc367618e925b5c9be32abb", kill_on_drop: false }` [INFO] [stdout] eb1bb39e7e7b8a797a62d390b00ab97a7d8734a12dc367618e925b5c9be32abb