[INFO] cloning repository https://github.com/snaphat/winapi_safe [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/snaphat/winapi_safe" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsnaphat%2Fwinapi_safe", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsnaphat%2Fwinapi_safe'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ca3ac69f38d1b315cbdc5c7cf70cbe2a54e9b625 [INFO] testing snaphat/winapi_safe against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsnaphat%2Fwinapi_safe" "/workspace/builds/worker-2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/snaphat/winapi_safe on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/snaphat/winapi_safe [INFO] finished tweaking git repo https://github.com/snaphat/winapi_safe [INFO] tweaked toml for git repo https://github.com/snaphat/winapi_safe written to /workspace/builds/worker-2/source/Cargo.toml [INFO] crate git repo https://github.com/snaphat/winapi_safe already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.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-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 066745e669d46cd3b526e7809c11c564e0967e2de08d69ff9146b57456cd6802 [INFO] running `Command { std: "docker" "start" "-a" "066745e669d46cd3b526e7809c11c564e0967e2de08d69ff9146b57456cd6802", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "066745e669d46cd3b526e7809c11c564e0967e2de08d69ff9146b57456cd6802", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "066745e669d46cd3b526e7809c11c564e0967e2de08d69ff9146b57456cd6802", kill_on_drop: false }` [INFO] [stdout] 066745e669d46cd3b526e7809c11c564e0967e2de08d69ff9146b57456cd6802 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d3cbacb600dd8f1275a0e0d0b91d1ff71d20bcba9e5e732aab3771992f644264 [INFO] running `Command { std: "docker" "start" "-a" "d3cbacb600dd8f1275a0e0d0b91d1ff71d20bcba9e5e732aab3771992f644264", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling winapi_safe v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] error[E0463]: can't find crate for `winapi` [INFO] [stdout] --> src/constants.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | extern crate winapi; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/lib.rs:109:18 [INFO] [stdout] | [INFO] [stdout] 109 | use std::os::windows::ffi::OsStrExt; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/lib.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use winapi::shared::*; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/lib.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use winapi::um::dwmapi::*; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/lib.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use winapi::um::errhandlingapi::*; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/lib.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use winapi::um::winnt; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/lib.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use winapi::um::winnt::*; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/lib.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use winapi::um::winuser; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/lib.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use winapi::um::winuser::*; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `winapi::shared::*`, `winapi::um::dwmapi::*`, `winapi::um::errhandlingapi::*`, `winapi::um::winnt`, `winapi::um::winnt::*`, `winapi::um::winuser`, `winapi::um::winuser::*` [INFO] [stdout] --> src/lib.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use winapi::shared::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 16 | use winapi::um::dwmapi::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 17 | use winapi::um::errhandlingapi::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 18 | use winapi::um::winnt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 19 | use winapi::um::winnt::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 20 | use winapi::um::winuser; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | use winapi::um::winuser::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `windef` [INFO] [stdout] --> src/constants.rs:11:33 [INFO] [stdout] | [INFO] [stdout] 11 | pub const $api: $type = $prefix::$api; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `windef` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winuser` [INFO] [stdout] --> src/constants.rs:11:33 [INFO] [stdout] | [INFO] [stdout] 11 | pub const $api: $type = $prefix::$api; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `winuser` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `minwindef` [INFO] [stdout] --> src/lib.rs:27:28 [INFO] [stdout] | [INFO] [stdout] 27 | pub type $suffix = $prefix::$suffix; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `minwindef` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `windef` [INFO] [stdout] --> src/lib.rs:27:28 [INFO] [stdout] | [INFO] [stdout] 27 | pub type $suffix = $prefix::$suffix; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `windef` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winnt` [INFO] [stdout] --> src/lib.rs:27:28 [INFO] [stdout] | [INFO] [stdout] 27 | pub type $suffix = $prefix::$suffix; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `winnt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winuser` [INFO] [stdout] --> src/lib.rs:27:28 [INFO] [stdout] | [INFO] [stdout] 27 | pub type $suffix = $prefix::$suffix; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `winuser` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/lib.rs:88:25 [INFO] [stdout] | [INFO] [stdout] 88 | let thread_id = winapi::um::winuser::GetWindowThreadProcessId( [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winerror` [INFO] [stdout] --> src/lib.rs:273:11 [INFO] [stdout] | [INFO] [stdout] 273 | | winerror::S_OK => Ok(pv_attribute), // Wrapped attribute. [INFO] [stdout] | ^^^^^^^^ use of undeclared crate or module `winerror` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DPI_AWARENESS_CONTEXT` in this scope [INFO] [stdout] --> src/constants.rs:11:25 [INFO] [stdout] | [INFO] [stdout] 11 | pub const $api: $type = $prefix::$api; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 2 | use crate::DPI_AWARENESS_CONTEXT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `UINT` in this scope [INFO] [stdout] --> src/constants.rs:11:25 [INFO] [stdout] | [INFO] [stdout] 11 | pub const $api: $type = $prefix::$api; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 2 | use crate::UINT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LONG` in this scope [INFO] [stdout] --> src/constants.rs:11:25 [INFO] [stdout] | [INFO] [stdout] 11 | pub const $api: $type = $prefix::$api; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetMessageW` in this scope [INFO] [stdout] --> src/lib.rs:59:24 [INFO] [stdout] | [INFO] [stdout] 59 | let ret = unsafe { GetMessageW(&mut msg as *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] --> src/lib.rs:71:14 [INFO] [stdout] | [INFO] [stdout] 71 | unsafe { 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] --> src/lib.rs:76:14 [INFO] [stdout] | [INFO] [stdout] 76 | unsafe { DispatchMessageW(msg) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/lib.rs:81:21 [INFO] [stdout] | [INFO] [stdout] 81 | return unsafe { GetLastError() }; [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `MessageBoxW` in this scope [INFO] [stdout] --> src/lib.rs:112:24 [INFO] [stdout] | [INFO] [stdout] 112 | let ret = unsafe { MessageBoxW(ptr::null_mut(), msg.as_ptr(), title.as_ptr(), MB_OK) }; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MB_OK` in this scope [INFO] [stdout] --> src/lib.rs:112:83 [INFO] [stdout] | [INFO] [stdout] 112 | let ret = unsafe { MessageBoxW(ptr::null_mut(), msg.as_ptr(), title.as_ptr(), MB_OK) }; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GWL_EXSTYLE` in this scope [INFO] [stdout] --> src/lib.rs:137:33 [INFO] [stdout] | [INFO] [stdout] 137 | match get_window_long(hwnd, GWL_EXSTYLE) { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WS_EX_APPWINDOW` in this scope [INFO] [stdout] --> src/lib.rs:138:28 [INFO] [stdout] | [INFO] [stdout] 138 | | Ok(ret) if ret & WS_EX_APPWINDOW != 0 => return true, // App Window [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WS_EX_TOOLWINDOW` in this scope [INFO] [stdout] --> src/lib.rs:139:29 [INFO] [stdout] | [INFO] [stdout] 139 | | Ok(ret) if ret & (WS_EX_TOOLWINDOW | WS_EX_NOACTIVATE) != 0 => return false, // Tool or no-active window. [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WS_EX_NOACTIVATE` in this scope [INFO] [stdout] --> src/lib.rs:139:48 [INFO] [stdout] | [INFO] [stdout] 139 | | Ok(ret) if ret & (WS_EX_TOOLWINDOW | WS_EX_NOACTIVATE) != 0 => return false, // Tool or no-active window. [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GWL_STYLE` in this scope [INFO] [stdout] --> src/lib.rs:145:33 [INFO] [stdout] | [INFO] [stdout] 145 | match get_window_long(hwnd, GWL_STYLE) { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WS_CHILD` in this scope [INFO] [stdout] --> src/lib.rs:146:28 [INFO] [stdout] | [INFO] [stdout] 146 | | Ok(ret) if ret & WS_CHILD != 0 => return false, // Child window. [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GW_OWNER` in this scope [INFO] [stdout] --> src/lib.rs:152:28 [INFO] [stdout] | [INFO] [stdout] 152 | match get_window(hwnd, GW_OWNER) as u32 { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `STATE_SYSTEM_INVISIBLE` in this scope [INFO] [stdout] --> src/lib.rs:159:37 [INFO] [stdout] | [INFO] [stdout] 159 | | Ok(ti) if ti.rgstate[0] & STATE_SYSTEM_INVISIBLE != 0 => return false, // Invisible titlebar. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `IsIconic` in this scope [INFO] [stdout] --> src/lib.rs:171:21 [INFO] [stdout] | [INFO] [stdout] 171 | return unsafe { IsIconic(hwnd) } != 0; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SW_SHOWMINIMIZED` in this scope [INFO] [stdout] --> src/lib.rs:179:23 [INFO] [stdout] | [INFO] [stdout] 179 | Ok(ret.showCmd == SW_SHOWMINIMIZED as u32) // Return wrapped bool. [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SW_SHOWMAXIMIZED` in this scope [INFO] [stdout] --> src/lib.rs:187:23 [INFO] [stdout] | [INFO] [stdout] 187 | Ok(ret.showCmd == SW_SHOWMAXIMIZED as u32) // Return wrapped bool. [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `IsWindowVisible` in this scope [INFO] [stdout] --> src/lib.rs:194:21 [INFO] [stdout] | [INFO] [stdout] 194 | return unsafe { IsWindowVisible(hwnd) } != 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DWMWA_CLOAKED` in this scope [INFO] [stdout] --> src/lib.rs:200:49 [INFO] [stdout] | [INFO] [stdout] 200 | let ret = get_window_attribute::(hwnd, DWMWA_CLOAKED)?; [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetWindow` in this scope [INFO] [stdout] --> src/lib.rs:209:14 [INFO] [stdout] | [INFO] [stdout] 209 | unsafe { GetWindow(hwnd, cmd) } [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetWindowLongW` in this scope [INFO] [stdout] --> src/lib.rs:215:24 [INFO] [stdout] | [INFO] [stdout] 215 | let ret = unsafe { GetWindowLongW(hwnd, n_index) }; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetAncestor` in this scope [INFO] [stdout] --> src/lib.rs:228:14 [INFO] [stdout] | [INFO] [stdout] 228 | unsafe { GetAncestor(hwnd, flags) } [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetWindowPlacement` in this scope [INFO] [stdout] --> src/lib.rs:244:24 [INFO] [stdout] | [INFO] [stdout] 244 | let ret = unsafe { GetWindowPlacement(hwnd, &mut wp as *mut _ as *mut WINDOWPLACEMENT) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DwmGetWindowAttribute` in this scope [INFO] [stdout] --> src/lib.rs:262:19 [INFO] [stdout] | [INFO] [stdout] 262 | let ret = DwmGetWindowAttribute( [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] --> src/lib.rs:286:19 [INFO] [stdout] | [INFO] [stdout] 286 | let ret = GetWindowRect(hwnd, ptr); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DWMWA_EXTENDED_FRAME_BOUNDS` in this scope [INFO] [stdout] --> src/lib.rs:300:51 [INFO] [stdout] | [INFO] [stdout] 300 | let rect = get_window_attribute::(hwnd, DWMWA_EXTENDED_FRAME_BOUNDS)?; // Most likely an invalid handle. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetProcessDpiAwarenessContext` in this scope [INFO] [stdout] --> src/lib.rs:308:24 [INFO] [stdout] | [INFO] [stdout] 308 | let ret = unsafe { SetProcessDpiAwarenessContext(ctx) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastActivePopup` in this scope [INFO] [stdout] --> src/lib.rs:321:14 [INFO] [stdout] | [INFO] [stdout] 321 | unsafe { GetLastActivePopup(hwnd) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetTitleBarInfo` in this scope [INFO] [stdout] --> src/lib.rs:334:24 [INFO] [stdout] | [INFO] [stdout] 334 | let ret = unsafe { GetTitleBarInfo(hwnd, &mut ti as *mut _ as PTITLEBARINFO) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowPos` in this scope [INFO] [stdout] --> src/lib.rs:362:9 [INFO] [stdout] | [INFO] [stdout] 362 | SetWindowPos( [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SWP_NOACTIVATE` in this scope [INFO] [stdout] --> src/lib.rs:369:13 [INFO] [stdout] | [INFO] [stdout] 369 | SWP_NOACTIVATE | SWP_NOZORDER, [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SWP_NOZORDER` in this scope [INFO] [stdout] --> src/lib.rs:369:30 [INFO] [stdout] | [INFO] [stdout] 369 | SWP_NOACTIVATE | SWP_NOZORDER, [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WNDENUMPROC` in this scope [INFO] [stdout] --> src/lib.rs:401:19 [INFO] [stdout] | [INFO] [stdout] 401 | let callback: WNDENUMPROC = Some(enum_windows_callback); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `EnumWindows` in this scope [INFO] [stdout] --> src/lib.rs:402:24 [INFO] [stdout] | [INFO] [stdout] 402 | let ret = unsafe { EnumWindows(callback, lparam) }; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WNDENUMPROC` in this scope [INFO] [stdout] --> src/lib.rs:430:19 [INFO] [stdout] | [INFO] [stdout] 430 | let callback: WNDENUMPROC = Some(enum_windows_callback); [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] --> src/lib.rs:431:24 [INFO] [stdout] | [INFO] [stdout] 431 | let ret = unsafe { EnumChildWindows(hwnd_parent, callback, lparam) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WNDENUMPROC` in this scope [INFO] [stdout] --> src/lib.rs:459:19 [INFO] [stdout] | [INFO] [stdout] 459 | let callback: WNDENUMPROC = Some(enum_windows_callback); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `EnumDesktopWindows` in this scope [INFO] [stdout] --> src/lib.rs:460:24 [INFO] [stdout] | [INFO] [stdout] 460 | let ret = unsafe { EnumDesktopWindows(h_desktop, callback, lparam) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WNDENUMPROC` in this scope [INFO] [stdout] --> src/lib.rs:488:19 [INFO] [stdout] | [INFO] [stdout] 488 | let callback: WNDENUMPROC = Some(enum_windows_callback); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `EnumThreadWindows` in this scope [INFO] [stdout] --> src/lib.rs:489:24 [INFO] [stdout] | [INFO] [stdout] 489 | let ret = unsafe { EnumThreadWindows(thread_id, callback, lparam) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LONG` in this scope [INFO] [stdout] --> src/lib.rs:508:43 [INFO] [stdout] | [INFO] [stdout] 508 | pub trait FnHook = Fn(usize, DWORD, HWND, LONG, LONG, DWORD, DWORD) + 'static + Send + Sync; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LONG` in this scope [INFO] [stdout] --> src/lib.rs:508:49 [INFO] [stdout] | [INFO] [stdout] 508 | pub trait FnHook = Fn(usize, DWORD, HWND, LONG, LONG, DWORD, DWORD) + 'static + Send + Sync; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LONG` in this scope [INFO] [stdout] --> src/lib.rs:534:20 [INFO] [stdout] | [INFO] [stdout] 534 | id_object: LONG, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LONG` in this scope [INFO] [stdout] --> src/lib.rs:535:19 [INFO] [stdout] | [INFO] [stdout] 535 | id_child: LONG, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWinEventHook` in this scope [INFO] [stdout] --> src/lib.rs:559:9 [INFO] [stdout] | [INFO] [stdout] 559 | SetWinEventHook( [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `UnhookWinEvent` in this scope [INFO] [stdout] --> src/lib.rs:585:24 [INFO] [stdout] | [INFO] [stdout] 585 | let ret = unsafe { UnhookWinEvent(h_win_even_hook) }; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `IsWinEventHookInstalled` in this scope [INFO] [stdout] --> src/lib.rs:599:22 [INFO] [stdout] | [INFO] [stdout] 599 | let a = unsafe { IsWinEventHookInstalled(event) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0554]: `#![feature]` may not be used on the stable release channel [INFO] [stdout] --> src/lib.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(once_cell)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0554]: `#![feature]` may not be used on the stable release channel [INFO] [stdout] --> src/lib.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | #![feature(trait_alias)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode_wide` found for reference `&OsStr` in the current scope [INFO] [stdout] --> src/lib.rs:110:45 [INFO] [stdout] | [INFO] [stdout] 110 | let title: Vec = OsStr::new(title).encode_wide().chain(once(0)).collect(); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&OsStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode_wide` found for reference `&OsStr` in the current scope [INFO] [stdout] --> src/lib.rs:111:41 [INFO] [stdout] | [INFO] [stdout] 111 | let msg: Vec = OsStr::new(msg).encode_wide().chain(once(0)).collect(); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&OsStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_string` found for struct `std::io::Error` in the current scope [INFO] [stdout] --> src/lib.rs:407:43 [INFO] [stdout] | [INFO] [stdout] 407 | | 0 => Err(Error::last_os_error().to_string()), // Return wrapped error if OS error. [INFO] [stdout] | ^^^^^^^^^ method not found in `std::io::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_string` found for struct `std::io::Error` in the current scope [INFO] [stdout] --> src/lib.rs:436:43 [INFO] [stdout] | [INFO] [stdout] 436 | | 0 => Err(Error::last_os_error().to_string()), // Return wrapped error if OS error. [INFO] [stdout] | ^^^^^^^^^ method not found in `std::io::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_string` found for struct `std::io::Error` in the current scope [INFO] [stdout] --> src/lib.rs:465:43 [INFO] [stdout] | [INFO] [stdout] 465 | | 0 => Err(Error::last_os_error().to_string()), // Return wrapped error if OS error. [INFO] [stdout] | ^^^^^^^^^ method not found in `std::io::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_string` found for struct `std::io::Error` in the current scope [INFO] [stdout] --> src/lib.rs:494:43 [INFO] [stdout] | [INFO] [stdout] 494 | | 0 => Err(Error::last_os_error().to_string()), // Return wrapped error if OS error. [INFO] [stdout] | ^^^^^^^^^ method not found in `std::io::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_string` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/lib.rs:571:71 [INFO] [stdout] | [INFO] [stdout] 571 | | hook if hook.is_null() => Err("Failed to setup event hook!".to_string()), // Failed to setup a hook. [INFO] [stdout] | ^^^^^^^^^ method not found in `&'static str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 77 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0432, E0433, E0463, E0554, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `winapi_safe` due to 78 previous errors [INFO] running `Command { std: "docker" "inspect" "d3cbacb600dd8f1275a0e0d0b91d1ff71d20bcba9e5e732aab3771992f644264", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d3cbacb600dd8f1275a0e0d0b91d1ff71d20bcba9e5e732aab3771992f644264", kill_on_drop: false }` [INFO] [stdout] d3cbacb600dd8f1275a0e0d0b91d1ff71d20bcba9e5e732aab3771992f644264