[INFO] cloning repository https://github.com/waf/winoleum [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/waf/winoleum" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwaf%2Fwinoleum", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwaf%2Fwinoleum'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1f293939b696dffc19944fe62bc741427c0b95f2 [INFO] checking waf/winoleum against beta for pr-78714 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwaf%2Fwinoleum" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/waf/winoleum on toolchain beta [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/waf/winoleum [INFO] finished tweaking git repo https://github.com/waf/winoleum [INFO] tweaked toml for git repo https://github.com/waf/winoleum written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/waf/winoleum already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+beta" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 00b74c466a5c831c9e60c3f8fc84a90261957973786261d971304ab2b54ffaea [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" "00b74c466a5c831c9e60c3f8fc84a90261957973786261d971304ab2b54ffaea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "00b74c466a5c831c9e60c3f8fc84a90261957973786261d971304ab2b54ffaea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "00b74c466a5c831c9e60c3f8fc84a90261957973786261d971304ab2b54ffaea", kill_on_drop: false }` [INFO] [stdout] 00b74c466a5c831c9e60c3f8fc84a90261957973786261d971304ab2b54ffaea [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+beta" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c057d6bb11059aad9da725a42682b21c7315d73f9c2ef3f72019150e4888a156 [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" "c057d6bb11059aad9da725a42682b21c7315d73f9c2ef3f72019150e4888a156", kill_on_drop: false }` [INFO] [stderr] Compiling libm v0.1.3 [INFO] [stderr] Compiling cc v1.0.31 [INFO] [stderr] Compiling winapi v0.3.6 [INFO] [stderr] Compiling ole32-sys v0.2.0 [INFO] [stderr] Checking stretch v0.2.2 [INFO] [stderr] Compiling libloading v0.5.0 [INFO] [stderr] Checking winoleum v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/lib.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use winapi::um::winuser::{ CallNextHookEx, WM_NCCALCSIZE, WM_NCPAINT, WM_NCACTIVATE, WM_ERASEBKGND, WM_WINDOWPOSCHANGED, HC_ACTION, CWPST... [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] --> src/lib.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | use winapi::um::wingdi::{ Rectangle, CreatePen, PS_INSIDEFRAME, RGN_COPY, CombineRgn, CreateRectRgn, NULLREGION, CreateSolidBrush, Delete... [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/lib.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | use winapi::shared::windef::{RECT, HGDIOBJ, HPEN }; [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/lib.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | use winapi::shared::minwindef::{LPVOID, HRGN, DWORD, LPCVOID}; [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/lib.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | use winapi::um::dwmapi::{DwmExtendFrameIntoClientArea, DWMNCRENDERINGPOLICY, DWMNCRP_DISABLED, DWMNCRP_ENABLED, DwmSetWindowAttribute, DW... [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] --> src/lib.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | use winapi::um::uxtheme::MARGINS; [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] --> src/lib.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use winapi::um::winuser::{ CallNextHookEx, WM_NCCALCSIZE, WM_NCPAINT, WM_NCACTIVATE, WM_ERASEBKGND, WM_WINDOWPOSCHANGED, HC_ACTION, CWPST... [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] --> src/lib.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | use winapi::um::wingdi::{ Rectangle, CreatePen, PS_INSIDEFRAME, RGN_COPY, CombineRgn, CreateRectRgn, NULLREGION, CreateSolidBrush, Delete... [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/lib.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | use winapi::shared::windef::{RECT, HGDIOBJ, HPEN }; [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/lib.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | use winapi::shared::minwindef::{LPVOID, HRGN, DWORD, LPCVOID}; [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/lib.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | use winapi::um::dwmapi::{DwmExtendFrameIntoClientArea, DWMNCRENDERINGPOLICY, DWMNCRP_DISABLED, DWMNCRP_ENABLED, DwmSetWindowAttribute, DW... [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] --> src/lib.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | use winapi::um::uxtheme::MARGINS; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HC_ACTION` in this scope [INFO] [stdout] --> src/lib.rs:22:20 [INFO] [stdout] | [INFO] [stdout] 22 | if code == HC_ACTION as i32 { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `CWPSTRUCT` in this scope [INFO] [stdout] --> src/lib.rs:28:39 [INFO] [stdout] | [INFO] [stdout] 28 | let data = lParam as *mut CWPSTRUCT; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `CWPSTRUCT` in this scope [INFO] [stdout] --> src/lib.rs:29:29 [INFO] [stdout] | [INFO] [stdout] 29 | let ref data2 : CWPSTRUCT = *data; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WM_NCCALCSIZE` in this scope [INFO] [stdout] --> src/lib.rs:30:33 [INFO] [stdout] | [INFO] [stdout] 30 | if data2.message == WM_NCCALCSIZE { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPNCCALCSIZE_PARAMS` in this scope [INFO] [stdout] --> src/lib.rs:31:49 [INFO] [stdout] | [INFO] [stdout] 31 | let ncParamsp = data2.lParam as LPNCCALCSIZE_PARAMS; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NCCALCSIZE_PARAMS` in this scope [INFO] [stdout] --> src/lib.rs:32:40 [INFO] [stdout] | [INFO] [stdout] 32 | let ref mut ncParams : NCCALCSIZE_PARAMS = *ncParamsp; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WM_NCACTIVATE` in this scope [INFO] [stdout] --> src/lib.rs:39:38 [INFO] [stdout] | [INFO] [stdout] 39 | else if data2.message == WM_NCACTIVATE { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DWMNCRP_DISABLED` in this scope [INFO] [stdout] --> src/lib.rs:40:30 [INFO] [stdout] | [INFO] [stdout] 40 | let policy = DWMNCRP_DISABLED; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DwmSetWindowAttribute` in this scope [INFO] [stdout] --> src/lib.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | DwmSetWindowAttribute(data2.hwnd, DWMWA_NCRENDERING_POLICY, policy as LPCVOID, std::mem::size_of::() as DWORD); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DWMWA_NCRENDERING_POLICY` in this scope [INFO] [stdout] --> src/lib.rs:41:39 [INFO] [stdout] | [INFO] [stdout] 41 | DwmSetWindowAttribute(data2.hwnd, DWMWA_NCRENDERING_POLICY, policy as LPCVOID, std::mem::size_of::() as DWORD); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCVOID` in this scope [INFO] [stdout] --> src/lib.rs:41:75 [INFO] [stdout] | [INFO] [stdout] 41 | DwmSetWindowAttribute(data2.hwnd, DWMWA_NCRENDERING_POLICY, policy as LPCVOID, std::mem::size_of::() as DWORD); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWMNCRENDERINGPOLICY` in this scope [INFO] [stdout] --> src/lib.rs:41:104 [INFO] [stdout] | [INFO] [stdout] 19 | pub extern "system" fn hook_callback(code: i32, wParam: usize, lParam: isize) -> isize { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 41 | DwmSetWindowAttribute(data2.hwnd, DWMWA_NCRENDERING_POLICY, policy as LPCVOID, std::mem::size_of::() as DWORD); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/lib.rs:41:131 [INFO] [stdout] | [INFO] [stdout] 41 | DwmSetWindowAttribute(data2.hwnd, DWMWA_NCRENDERING_POLICY, policy as LPCVOID, std::mem::size_of::() as DWORD); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RedrawWindow` in this scope [INFO] [stdout] --> src/lib.rs:42:17 [INFO] [stdout] | [INFO] [stdout] 42 | RedrawWindow(data2.hwnd, ptr::null_mut(), ptr::null_mut(), RDW_UPDATENOW); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `RDW_UPDATENOW` in this scope [INFO] [stdout] --> src/lib.rs:42:76 [INFO] [stdout] | [INFO] [stdout] 42 | RedrawWindow(data2.hwnd, ptr::null_mut(), ptr::null_mut(), RDW_UPDATENOW); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WM_NCPAINT` in this scope [INFO] [stdout] --> src/lib.rs:45:38 [INFO] [stdout] | [INFO] [stdout] 45 | else if data2.message == WM_NCPAINT || data2.message == WM_ERASEBKGND { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WM_ERASEBKGND` in this scope [INFO] [stdout] --> src/lib.rs:45:69 [INFO] [stdout] | [INFO] [stdout] 45 | else if data2.message == WM_NCPAINT || data2.message == WM_ERASEBKGND { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RECT` in this scope [INFO] [stdout] --> src/lib.rs:48:32 [INFO] [stdout] | [INFO] [stdout] 48 | let mut rect : RECT = 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 `GetWindowRect` in this scope [INFO] [stdout] --> src/lib.rs:49:17 [INFO] [stdout] | [INFO] [stdout] 49 | GetWindowRect(hwnd, &mut rect as *mut RECT); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RECT` in this scope [INFO] [stdout] --> src/lib.rs:49:55 [INFO] [stdout] | [INFO] [stdout] 49 | GetWindowRect(hwnd, &mut rect as *mut RECT); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HRGN` in this scope [INFO] [stdout] --> src/lib.rs:51:34 [INFO] [stdout] | [INFO] [stdout] 51 | let mut region : HRGN = std::mem::zeroed(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NULLREGION` in this scope [INFO] [stdout] --> src/lib.rs:52:43 [INFO] [stdout] | [INFO] [stdout] 52 | if data2.wParam as i32 == NULLREGION { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateRectRgn` in this scope [INFO] [stdout] --> src/lib.rs:53:30 [INFO] [stdout] | [INFO] [stdout] 53 | region = CreateRectRgn(rect.left, rect.top, rect.right, rect.bottom); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HRGN` in this scope [INFO] [stdout] --> src/lib.rs:55:32 [INFO] [stdout] | [INFO] [stdout] 55 | let copy : HRGN = CreateRectRgn(0, 0, 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 `CreateRectRgn` in this scope [INFO] [stdout] --> src/lib.rs:55:39 [INFO] [stdout] | [INFO] [stdout] 55 | let copy : HRGN = CreateRectRgn(0, 0, 0, 0); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HRGN` in this scope [INFO] [stdout] --> src/lib.rs:57:57 [INFO] [stdout] | [INFO] [stdout] 57 | let region2p = data2.lParam as *mut HRGN; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HRGN` in this scope [INFO] [stdout] --> src/lib.rs:58:35 [INFO] [stdout] | [INFO] [stdout] 58 | let region2 : HRGN = *region2p; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CombineRgn` in this scope [INFO] [stdout] --> src/lib.rs:59:24 [INFO] [stdout] | [INFO] [stdout] 59 | if CombineRgn(copy, region2, ptr::null_mut(), RGN_COPY) == 0 { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `RGN_COPY` in this scope [INFO] [stdout] --> src/lib.rs:59:67 [INFO] [stdout] | [INFO] [stdout] 59 | if CombineRgn(copy, region2, ptr::null_mut(), RGN_COPY) == 0 { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DeleteObject` in this scope [INFO] [stdout] --> src/lib.rs:60:25 [INFO] [stdout] | [INFO] [stdout] 60 | DeleteObject(copy as HGDIOBJ); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HGDIOBJ` in this scope [INFO] [stdout] --> src/lib.rs:60:46 [INFO] [stdout] | [INFO] [stdout] 60 | DeleteObject(copy as HGDIOBJ); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetDCEx` in this scope [INFO] [stdout] --> src/lib.rs:66:26 [INFO] [stdout] | [INFO] [stdout] 66 | let dc = GetDCEx(hwnd, region, DCX_WINDOW | DCX_CACHE | DCX_INTERSECTRGN | DCX_LOCKWINDOWUPDATE); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DCX_WINDOW` in this scope [INFO] [stdout] --> src/lib.rs:66:48 [INFO] [stdout] | [INFO] [stdout] 66 | let dc = GetDCEx(hwnd, region, DCX_WINDOW | DCX_CACHE | DCX_INTERSECTRGN | DCX_LOCKWINDOWUPDATE); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DCX_CACHE` in this scope [INFO] [stdout] --> src/lib.rs:66:61 [INFO] [stdout] | [INFO] [stdout] 66 | let dc = GetDCEx(hwnd, region, DCX_WINDOW | DCX_CACHE | DCX_INTERSECTRGN | DCX_LOCKWINDOWUPDATE); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DCX_INTERSECTRGN` in this scope [INFO] [stdout] --> src/lib.rs:66:73 [INFO] [stdout] | [INFO] [stdout] 66 | let dc = GetDCEx(hwnd, region, DCX_WINDOW | DCX_CACHE | DCX_INTERSECTRGN | DCX_LOCKWINDOWUPDATE); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DCX_LOCKWINDOWUPDATE` in this scope [INFO] [stdout] --> src/lib.rs:66:92 [INFO] [stdout] | [INFO] [stdout] 66 | let dc = GetDCEx(hwnd, region, DCX_WINDOW | DCX_CACHE | DCX_INTERSECTRGN | DCX_LOCKWINDOWUPDATE); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DeleteObject` in this scope [INFO] [stdout] --> src/lib.rs:68:21 [INFO] [stdout] | [INFO] [stdout] 68 | DeleteObject(region as HGDIOBJ); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HGDIOBJ` in this scope [INFO] [stdout] --> src/lib.rs:68:44 [INFO] [stdout] | [INFO] [stdout] 68 | DeleteObject(region as HGDIOBJ); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HPEN` in this scope [INFO] [stdout] --> src/lib.rs:71:27 [INFO] [stdout] | [INFO] [stdout] 71 | let pen : HPEN = CreatePen(PS_INSIDEFRAME as i32, 4, RGB(255, 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 `CreatePen` in this scope [INFO] [stdout] --> src/lib.rs:71:34 [INFO] [stdout] | [INFO] [stdout] 71 | let pen : HPEN = CreatePen(PS_INSIDEFRAME as i32, 4, RGB(255, 0, 0)); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PS_INSIDEFRAME` in this scope [INFO] [stdout] --> src/lib.rs:71:44 [INFO] [stdout] | [INFO] [stdout] 71 | let pen : HPEN = CreatePen(PS_INSIDEFRAME as i32, 4, RGB(255, 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 `RGB` in this scope [INFO] [stdout] --> src/lib.rs:71:70 [INFO] [stdout] | [INFO] [stdout] 71 | let pen : HPEN = CreatePen(PS_INSIDEFRAME as i32, 4, RGB(255, 0, 0)); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HGDIOBJ` in this scope [INFO] [stdout] --> src/lib.rs:72:27 [INFO] [stdout] | [INFO] [stdout] 72 | let old : HGDIOBJ = SelectObject(dc, pen as HGDIOBJ); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SelectObject` in this scope [INFO] [stdout] --> src/lib.rs:72:37 [INFO] [stdout] | [INFO] [stdout] 72 | let old : HGDIOBJ = SelectObject(dc, pen as HGDIOBJ); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HGDIOBJ` in this scope [INFO] [stdout] --> src/lib.rs:72:61 [INFO] [stdout] | [INFO] [stdout] 72 | let old : HGDIOBJ = SelectObject(dc, pen as HGDIOBJ); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Rectangle` in this scope [INFO] [stdout] --> src/lib.rs:76:17 [INFO] [stdout] | [INFO] [stdout] 76 | Rectangle(dc, 0, 0, width, height); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SelectObject` in this scope [INFO] [stdout] --> src/lib.rs:77:17 [INFO] [stdout] | [INFO] [stdout] 77 | SelectObject(dc, old); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ReleaseDC` in this scope [INFO] [stdout] --> src/lib.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | ReleaseDC(hwnd, dc); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DeleteObject` in this scope [INFO] [stdout] --> src/lib.rs:79:17 [INFO] [stdout] | [INFO] [stdout] 79 | DeleteObject(pen as HGDIOBJ); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HGDIOBJ` in this scope [INFO] [stdout] --> src/lib.rs:79:37 [INFO] [stdout] | [INFO] [stdout] 79 | DeleteObject(pen as HGDIOBJ); [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] --> src/lib.rs:125:16 [INFO] [stdout] | [INFO] [stdout] 125 | return CallNextHookEx(ptr::null_mut(), code, wParam, lParam); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::prelude::*` [INFO] [stdout] --> src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/lib.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `winoleum` [INFO] [stdout] error: aborting due to 57 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433. [INFO] [stdout] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0425]: cannot find value `HC_ACTION` in this scope [INFO] [stdout] --> src/lib.rs:22:20 [INFO] [stdout] | [INFO] [stdout] 22 | if code == HC_ACTION as i32 { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `CWPSTRUCT` in this scope [INFO] [stdout] --> src/lib.rs:28:39 [INFO] [stdout] | [INFO] [stdout] 28 | let data = lParam as *mut CWPSTRUCT; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `CWPSTRUCT` in this scope [INFO] [stdout] --> src/lib.rs:29:29 [INFO] [stdout] | [INFO] [stdout] 29 | let ref data2 : CWPSTRUCT = *data; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WM_NCCALCSIZE` in this scope [INFO] [stdout] --> src/lib.rs:30:33 [INFO] [stdout] | [INFO] [stdout] 30 | if data2.message == WM_NCCALCSIZE { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPNCCALCSIZE_PARAMS` in this scope [INFO] [stdout] --> src/lib.rs:31:49 [INFO] [stdout] | [INFO] [stdout] 31 | let ncParamsp = data2.lParam as LPNCCALCSIZE_PARAMS; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NCCALCSIZE_PARAMS` in this scope [INFO] [stdout] --> src/lib.rs:32:40 [INFO] [stdout] | [INFO] [stdout] 32 | let ref mut ncParams : NCCALCSIZE_PARAMS = *ncParamsp; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WM_NCACTIVATE` in this scope [INFO] [stdout] --> src/lib.rs:39:38 [INFO] [stdout] | [INFO] [stdout] 39 | else if data2.message == WM_NCACTIVATE { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DWMNCRP_DISABLED` in this scope [INFO] [stdout] --> src/lib.rs:40:30 [INFO] [stdout] | [INFO] [stdout] 40 | let policy = DWMNCRP_DISABLED; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DwmSetWindowAttribute` in this scope [INFO] [stdout] --> src/lib.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | DwmSetWindowAttribute(data2.hwnd, DWMWA_NCRENDERING_POLICY, policy as LPCVOID, std::mem::size_of::() as DWORD); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DWMWA_NCRENDERING_POLICY` in this scope [INFO] [stdout] --> src/lib.rs:41:39 [INFO] [stdout] | [INFO] [stdout] 41 | DwmSetWindowAttribute(data2.hwnd, DWMWA_NCRENDERING_POLICY, policy as LPCVOID, std::mem::size_of::() as DWORD); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCVOID` in this scope [INFO] [stdout] --> src/lib.rs:41:75 [INFO] [stdout] | [INFO] [stdout] 41 | DwmSetWindowAttribute(data2.hwnd, DWMWA_NCRENDERING_POLICY, policy as LPCVOID, std::mem::size_of::() as DWORD); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWMNCRENDERINGPOLICY` in this scope [INFO] [stdout] --> src/lib.rs:41:104 [INFO] [stdout] | [INFO] [stdout] 19 | pub extern "system" fn hook_callback(code: i32, wParam: usize, lParam: isize) -> isize { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 41 | DwmSetWindowAttribute(data2.hwnd, DWMWA_NCRENDERING_POLICY, policy as LPCVOID, std::mem::size_of::() as DWORD); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/lib.rs:41:131 [INFO] [stdout] | [INFO] [stdout] 41 | DwmSetWindowAttribute(data2.hwnd, DWMWA_NCRENDERING_POLICY, policy as LPCVOID, std::mem::size_of::() as DWORD); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RedrawWindow` in this scope [INFO] [stdout] --> src/lib.rs:42:17 [INFO] [stdout] | [INFO] [stdout] 42 | RedrawWindow(data2.hwnd, ptr::null_mut(), ptr::null_mut(), RDW_UPDATENOW); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `RDW_UPDATENOW` in this scope [INFO] [stdout] --> src/lib.rs:42:76 [INFO] [stdout] | [INFO] [stdout] 42 | RedrawWindow(data2.hwnd, ptr::null_mut(), ptr::null_mut(), RDW_UPDATENOW); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WM_NCPAINT` in this scope [INFO] [stdout] --> src/lib.rs:45:38 [INFO] [stdout] | [INFO] [stdout] 45 | else if data2.message == WM_NCPAINT || data2.message == WM_ERASEBKGND { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WM_ERASEBKGND` in this scope [INFO] [stdout] --> src/lib.rs:45:69 [INFO] [stdout] | [INFO] [stdout] 45 | else if data2.message == WM_NCPAINT || data2.message == WM_ERASEBKGND { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RECT` in this scope [INFO] [stdout] --> src/lib.rs:48:32 [INFO] [stdout] | [INFO] [stdout] 48 | let mut rect : RECT = 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 `GetWindowRect` in this scope [INFO] [stdout] --> src/lib.rs:49:17 [INFO] [stdout] | [INFO] [stdout] 49 | GetWindowRect(hwnd, &mut rect as *mut RECT); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RECT` in this scope [INFO] [stdout] --> src/lib.rs:49:55 [INFO] [stdout] | [INFO] [stdout] 49 | GetWindowRect(hwnd, &mut rect as *mut RECT); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HRGN` in this scope [INFO] [stdout] --> src/lib.rs:51:34 [INFO] [stdout] | [INFO] [stdout] 51 | let mut region : HRGN = std::mem::zeroed(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NULLREGION` in this scope [INFO] [stdout] --> src/lib.rs:52:43 [INFO] [stdout] | [INFO] [stdout] 52 | if data2.wParam as i32 == NULLREGION { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateRectRgn` in this scope [INFO] [stdout] --> src/lib.rs:53:30 [INFO] [stdout] | [INFO] [stdout] 53 | region = CreateRectRgn(rect.left, rect.top, rect.right, rect.bottom); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HRGN` in this scope [INFO] [stdout] --> src/lib.rs:55:32 [INFO] [stdout] | [INFO] [stdout] 55 | let copy : HRGN = CreateRectRgn(0, 0, 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 `CreateRectRgn` in this scope [INFO] [stdout] --> src/lib.rs:55:39 [INFO] [stdout] | [INFO] [stdout] 55 | let copy : HRGN = CreateRectRgn(0, 0, 0, 0); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HRGN` in this scope [INFO] [stdout] --> src/lib.rs:57:57 [INFO] [stdout] | [INFO] [stdout] 57 | let region2p = data2.lParam as *mut HRGN; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HRGN` in this scope [INFO] [stdout] --> src/lib.rs:58:35 [INFO] [stdout] | [INFO] [stdout] 58 | let region2 : HRGN = *region2p; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CombineRgn` in this scope [INFO] [stdout] --> src/lib.rs:59:24 [INFO] [stdout] | [INFO] [stdout] 59 | if CombineRgn(copy, region2, ptr::null_mut(), RGN_COPY) == 0 { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `RGN_COPY` in this scope [INFO] [stdout] --> src/lib.rs:59:67 [INFO] [stdout] | [INFO] [stdout] 59 | if CombineRgn(copy, region2, ptr::null_mut(), RGN_COPY) == 0 { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DeleteObject` in this scope [INFO] [stdout] --> src/lib.rs:60:25 [INFO] [stdout] | [INFO] [stdout] 60 | DeleteObject(copy as HGDIOBJ); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HGDIOBJ` in this scope [INFO] [stdout] --> src/lib.rs:60:46 [INFO] [stdout] | [INFO] [stdout] 60 | DeleteObject(copy as HGDIOBJ); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetDCEx` in this scope [INFO] [stdout] --> src/lib.rs:66:26 [INFO] [stdout] | [INFO] [stdout] 66 | let dc = GetDCEx(hwnd, region, DCX_WINDOW | DCX_CACHE | DCX_INTERSECTRGN | DCX_LOCKWINDOWUPDATE); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DCX_WINDOW` in this scope [INFO] [stdout] --> src/lib.rs:66:48 [INFO] [stdout] | [INFO] [stdout] 66 | let dc = GetDCEx(hwnd, region, DCX_WINDOW | DCX_CACHE | DCX_INTERSECTRGN | DCX_LOCKWINDOWUPDATE); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DCX_CACHE` in this scope [INFO] [stdout] --> src/lib.rs:66:61 [INFO] [stdout] | [INFO] [stdout] 66 | let dc = GetDCEx(hwnd, region, DCX_WINDOW | DCX_CACHE | DCX_INTERSECTRGN | DCX_LOCKWINDOWUPDATE); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DCX_INTERSECTRGN` in this scope [INFO] [stdout] --> src/lib.rs:66:73 [INFO] [stdout] | [INFO] [stdout] 66 | let dc = GetDCEx(hwnd, region, DCX_WINDOW | DCX_CACHE | DCX_INTERSECTRGN | DCX_LOCKWINDOWUPDATE); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DCX_LOCKWINDOWUPDATE` in this scope [INFO] [stdout] --> src/lib.rs:66:92 [INFO] [stdout] | [INFO] [stdout] 66 | let dc = GetDCEx(hwnd, region, DCX_WINDOW | DCX_CACHE | DCX_INTERSECTRGN | DCX_LOCKWINDOWUPDATE); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DeleteObject` in this scope [INFO] [stdout] --> src/lib.rs:68:21 [INFO] [stdout] | [INFO] [stdout] 68 | DeleteObject(region as HGDIOBJ); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HGDIOBJ` in this scope [INFO] [stdout] --> src/lib.rs:68:44 [INFO] [stdout] | [INFO] [stdout] 68 | DeleteObject(region as HGDIOBJ); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HPEN` in this scope [INFO] [stdout] --> src/lib.rs:71:27 [INFO] [stdout] | [INFO] [stdout] 71 | let pen : HPEN = CreatePen(PS_INSIDEFRAME as i32, 4, RGB(255, 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 `CreatePen` in this scope [INFO] [stdout] --> src/lib.rs:71:34 [INFO] [stdout] | [INFO] [stdout] 71 | let pen : HPEN = CreatePen(PS_INSIDEFRAME as i32, 4, RGB(255, 0, 0)); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PS_INSIDEFRAME` in this scope [INFO] [stdout] --> src/lib.rs:71:44 [INFO] [stdout] | [INFO] [stdout] 71 | let pen : HPEN = CreatePen(PS_INSIDEFRAME as i32, 4, RGB(255, 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 `RGB` in this scope [INFO] [stdout] --> src/lib.rs:71:70 [INFO] [stdout] | [INFO] [stdout] 71 | let pen : HPEN = CreatePen(PS_INSIDEFRAME as i32, 4, RGB(255, 0, 0)); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HGDIOBJ` in this scope [INFO] [stdout] --> src/lib.rs:72:27 [INFO] [stdout] | [INFO] [stdout] 72 | let old : HGDIOBJ = SelectObject(dc, pen as HGDIOBJ); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SelectObject` in this scope [INFO] [stdout] --> src/lib.rs:72:37 [INFO] [stdout] | [INFO] [stdout] 72 | let old : HGDIOBJ = SelectObject(dc, pen as HGDIOBJ); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HGDIOBJ` in this scope [INFO] [stdout] --> src/lib.rs:72:61 [INFO] [stdout] | [INFO] [stdout] 72 | let old : HGDIOBJ = SelectObject(dc, pen as HGDIOBJ); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Rectangle` in this scope [INFO] [stdout] --> src/lib.rs:76:17 [INFO] [stdout] | [INFO] [stdout] 76 | Rectangle(dc, 0, 0, width, height); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SelectObject` in this scope [INFO] [stdout] --> src/lib.rs:77:17 [INFO] [stdout] | [INFO] [stdout] 77 | SelectObject(dc, old); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ReleaseDC` in this scope [INFO] [stdout] --> src/lib.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | ReleaseDC(hwnd, dc); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DeleteObject` in this scope [INFO] [stdout] --> src/lib.rs:79:17 [INFO] [stdout] | [INFO] [stdout] 79 | DeleteObject(pen as HGDIOBJ); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HGDIOBJ` in this scope [INFO] [stdout] --> src/lib.rs:79:37 [INFO] [stdout] | [INFO] [stdout] 79 | DeleteObject(pen as HGDIOBJ); [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] --> src/lib.rs:125:16 [INFO] [stdout] | [INFO] [stdout] 125 | return CallNextHookEx(ptr::null_mut(), code, wParam, lParam); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::prelude::*` [INFO] [stdout] --> src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/lib.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 57 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "c057d6bb11059aad9da725a42682b21c7315d73f9c2ef3f72019150e4888a156", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c057d6bb11059aad9da725a42682b21c7315d73f9c2ef3f72019150e4888a156", kill_on_drop: false }` [INFO] [stdout] c057d6bb11059aad9da725a42682b21c7315d73f9c2ef3f72019150e4888a156