[INFO] cloning repository https://github.com/m1el/trusty-commander [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/m1el/trusty-commander" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fm1el%2Ftrusty-commander", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fm1el%2Ftrusty-commander'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 72da386a67c5694d6761f608b7214520bd5ec034 [INFO] checking m1el/trusty-commander against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fm1el%2Ftrusty-commander" "/workspace/builds/worker-8/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/m1el/trusty-commander on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/m1el/trusty-commander [INFO] finished tweaking git repo https://github.com/m1el/trusty-commander [INFO] tweaked toml for git repo https://github.com/m1el/trusty-commander written to /workspace/builds/worker-8/source/Cargo.toml [INFO] crate git repo https://github.com/m1el/trusty-commander already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 06f063aa4a6feccebd5b015ea023d164113fbfc598052fd3d74dc84f481f8658 [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" "06f063aa4a6feccebd5b015ea023d164113fbfc598052fd3d74dc84f481f8658", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "06f063aa4a6feccebd5b015ea023d164113fbfc598052fd3d74dc84f481f8658", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "06f063aa4a6feccebd5b015ea023d164113fbfc598052fd3d74dc84f481f8658", kill_on_drop: false }` [INFO] [stdout] 06f063aa4a6feccebd5b015ea023d164113fbfc598052fd3d74dc84f481f8658 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 39b47f49f02cd0f8ecb9d2ff98b77859135e6adec37351c8dc7399e47d391fa3 [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" "39b47f49f02cd0f8ecb9d2ff98b77859135e6adec37351c8dc7399e47d391fa3", kill_on_drop: false }` [INFO] [stderr] Compiling user32-sys v0.2.0 [INFO] [stderr] Compiling gdi32-sys v0.2.0 [INFO] [stderr] Checking trusty-commander v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/win_layer.rs:87:18 [INFO] [stdout] | [INFO] [stdout] 87 | 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: could not find `windows` in `os` [INFO] [stdout] --> src/win_layer.rs:100:18 [INFO] [stdout] | [INFO] [stdout] 100 | use std::os::windows::ffi::OsStringExt; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/win_layer.rs:87:18 [INFO] [stdout] | [INFO] [stdout] 87 | 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: could not find `windows` in `os` [INFO] [stdout] --> src/win_layer.rs:100:18 [INFO] [stdout] | [INFO] [stdout] 100 | use std::os::windows::ffi::OsStringExt; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Core` [INFO] [stdout] --> src/main.rs:37:20 [INFO] [stdout] | [INFO] [stdout] 37 | let mut core = Core::new().unwrap(); [INFO] [stdout] | ^^^^ use of undeclared type `Core` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/win_layer.rs:14:48 [INFO] [stdout] | [INFO] [stdout] 14 | fn user32_BeginDeferWindowPos(nNumWindows: c_int) -> HDWP; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HDWP` in this scope [INFO] [stdout] --> src/win_layer.rs:14:58 [INFO] [stdout] | [INFO] [stdout] 14 | fn user32_BeginDeferWindowPos(nNumWindows: c_int) -> HDWP; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_uint` in this scope [INFO] [stdout] --> src/win_layer.rs:19:26 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn ExitProcess(code: c_uint) -> ! [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_uint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ExitProcess` in crate `kernel32` [INFO] [stdout] --> src/win_layer.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 20 | { unsafe { kernel32::ExitProcess(code) }; loop {} } [INFO] [stdout] | ^^^^^^^^^^^ not found in `kernel32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use ExitProcess; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in crate `kernel32` [INFO] [stdout] --> src/win_layer.rs:24:22 [INFO] [stdout] | [INFO] [stdout] 24 | { unsafe { kernel32::GetLastError() } } [INFO] [stdout] | ^^^^^^^^^^^^ not found in `kernel32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use GetLastError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HMODULE` in this scope [INFO] [stdout] --> src/win_layer.rs:27:57 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn GetModuleHandleW(name: Option<&[u16]>) -> Result [INFO] [stdout] | - ^^^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleW` in crate `kernel32` [INFO] [stdout] --> src/win_layer.rs:29:37 [INFO] [stdout] | [INFO] [stdout] 29 | let handle = unsafe { kernel32::GetModuleHandleW(name.map_or(0 as LPCWSTR, |x|x.as_ptr() as LPCWSTR)) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in `kernel32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use GetModuleHandleW; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCWSTR` in this scope [INFO] [stdout] --> src/win_layer.rs:29:71 [INFO] [stdout] | [INFO] [stdout] 29 | let handle = unsafe { kernel32::GetModuleHandleW(name.map_or(0 as LPCWSTR, |x|x.as_ptr() as LPCWSTR)) }; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCWSTR` in this scope [INFO] [stdout] --> src/win_layer.rs:29:97 [INFO] [stdout] | [INFO] [stdout] 29 | let handle = unsafe { kernel32::GetModuleHandleW(name.map_or(0 as LPCWSTR, |x|x.as_ptr() as LPCWSTR)) }; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HMODULE` in this scope [INFO] [stdout] --> src/win_layer.rs:36:56 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn GetModuleHandleA(name: Option<&[u8]>) -> Result [INFO] [stdout] | - ^^^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleA` in crate `kernel32` [INFO] [stdout] --> src/win_layer.rs:38:37 [INFO] [stdout] | [INFO] [stdout] 38 | let handle = unsafe { kernel32::GetModuleHandleA(name.map_or(0 as LPCSTR, |x|x.as_ptr() as LPCSTR)) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in `kernel32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use GetModuleHandleA; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCSTR` in this scope [INFO] [stdout] --> src/win_layer.rs:38:71 [INFO] [stdout] | [INFO] [stdout] 38 | let handle = unsafe { kernel32::GetModuleHandleA(name.map_or(0 as LPCSTR, |x|x.as_ptr() as LPCSTR)) }; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Core` [INFO] [stdout] --> src/main.rs:37:20 [INFO] [stdout] | [INFO] [stdout] 37 | let mut core = Core::new().unwrap(); [INFO] [stdout] | ^^^^ use of undeclared type `Core` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCSTR` in this scope [INFO] [stdout] --> src/win_layer.rs:38:96 [INFO] [stdout] | [INFO] [stdout] 38 | let handle = unsafe { kernel32::GetModuleHandleA(name.map_or(0 as LPCSTR, |x|x.as_ptr() as LPCSTR)) }; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/win_layer.rs:44:54 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn GetStdHandle(handle_id: u32) -> Result, u32> [INFO] [stdout] | - ^^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetStdHandle` in crate `kernel32` [INFO] [stdout] --> src/win_layer.rs:46:37 [INFO] [stdout] | [INFO] [stdout] 46 | let handle = unsafe { kernel32::GetStdHandle(handle_id) }; [INFO] [stdout] | ^^^^^^^^^^^^ not found in `kernel32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use GetStdHandle; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope [INFO] [stdout] --> src/win_layer.rs:49:23 [INFO] [stdout] | [INFO] [stdout] 49 | else if handle != INVALID_HANDLE_VALUE { Ok(Some(handle)) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/win_layer.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | handle: HANDLE, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `OVERLAPPED` in this scope [INFO] [stdout] --> src/win_layer.rs:57:29 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn WriteFile( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 57 | overlapped: Option<&mut OVERLAPPED>) [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/win_layer.rs:14:48 [INFO] [stdout] | [INFO] [stdout] 14 | fn user32_BeginDeferWindowPos(nNumWindows: c_int) -> HDWP; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in crate `winapi` [INFO] [stdout] --> src/win_layer.rs:64:60 [INFO] [stdout] | [INFO] [stdout] 64 | let buffer_ptr = buffer.as_ptr() as *const winapi::c_void; [INFO] [stdout] | ^^^^^^ not found in `winapi` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `OVERLAPPED` in this scope [INFO] [stdout] --> src/win_layer.rs:66:58 [INFO] [stdout] | [INFO] [stdout] 66 | let overlapped_ptr = overlapped.map_or(0 as *mut OVERLAPPED, |x|x as *mut OVERLAPPED); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HDWP` in this scope [INFO] [stdout] --> src/win_layer.rs:14:58 [INFO] [stdout] | [INFO] [stdout] 14 | fn user32_BeginDeferWindowPos(nNumWindows: c_int) -> HDWP; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `OVERLAPPED` in this scope [INFO] [stdout] --> src/win_layer.rs:66:83 [INFO] [stdout] | [INFO] [stdout] 66 | let overlapped_ptr = overlapped.map_or(0 as *mut OVERLAPPED, |x|x as *mut OVERLAPPED); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WriteFile` in crate `kernel32` [INFO] [stdout] --> src/win_layer.rs:67:19 [INFO] [stdout] | [INFO] [stdout] 67 | kernel32::WriteFile(handle, buffer_ptr, buffer_len, written_ptr, overlapped_ptr) [INFO] [stdout] | ^^^^^^^^^ not found in `kernel32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use WriteFile; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_uint` in this scope [INFO] [stdout] --> src/win_layer.rs:19:26 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn ExitProcess(code: c_uint) -> ! [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_uint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:75:37 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn GetConsoleWindow() -> Option [INFO] [stdout] | - ^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetConsoleWindow` in crate `kernel32` [INFO] [stdout] --> src/win_layer.rs:77:37 [INFO] [stdout] | [INFO] [stdout] 77 | let handle = unsafe { kernel32::GetConsoleWindow() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in `kernel32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use GetConsoleWindow; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:105:25 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn ShowWindow(hWnd: HWND, nCmdShow: c_int) -> bool [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ExitProcess` in crate `kernel32` [INFO] [stdout] --> src/win_layer.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 20 | { unsafe { kernel32::ExitProcess(code) }; loop {} } [INFO] [stdout] | ^^^^^^^^^^^ not found in `kernel32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use ExitProcess; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/win_layer.rs:105:41 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn ShowWindow(hWnd: HWND, nCmdShow: c_int) -> bool [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ShowWindow` in crate `user32` [INFO] [stdout] --> src/win_layer.rs:107:22 [INFO] [stdout] | [INFO] [stdout] 107 | unsafe { user32::ShowWindow(hWnd, nCmdShow) != 0 } [INFO] [stdout] | ^^^^^^^^^^ not found in `user32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use ShowWindow; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:111:27 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn UpdateWindow(hwnd: HWND) -> Result<(), u32> [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 crate `kernel32` [INFO] [stdout] --> src/win_layer.rs:24:22 [INFO] [stdout] | [INFO] [stdout] 24 | { unsafe { kernel32::GetLastError() } } [INFO] [stdout] | ^^^^^^^^^^^^ not found in `kernel32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use GetLastError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `UpdateWindow` in crate `user32` [INFO] [stdout] --> src/win_layer.rs:113:35 [INFO] [stdout] | [INFO] [stdout] 113 | let result = unsafe { user32::UpdateWindow(hwnd) }; [INFO] [stdout] | ^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use UpdateWindow; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:121:18 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn MessageBoxA( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 121 | hwnd: Option, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HMODULE` in this scope [INFO] [stdout] --> src/win_layer.rs:27:57 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn GetModuleHandleW(name: Option<&[u16]>) -> Result [INFO] [stdout] | - ^^^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_uint` in this scope [INFO] [stdout] --> src/win_layer.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 124 | flags: c_uint) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_uint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_uint` in this scope [INFO] [stdout] --> src/win_layer.rs:125:15 [INFO] [stdout] | [INFO] [stdout] 125 | -> Result [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_uint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:127:40 [INFO] [stdout] | [INFO] [stdout] 127 | let hwnd_ptr = hwnd.unwrap_or(0 as HWND); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleW` in crate `kernel32` [INFO] [stdout] --> src/win_layer.rs:29:37 [INFO] [stdout] | [INFO] [stdout] 29 | let handle = unsafe { kernel32::GetModuleHandleW(name.map_or(0 as LPCWSTR, |x|x.as_ptr() as LPCWSTR)) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in `kernel32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use GetModuleHandleW; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `MessageBoxA` in crate `user32` [INFO] [stdout] --> src/win_layer.rs:128:35 [INFO] [stdout] | [INFO] [stdout] 128 | let result = unsafe { user32::MessageBoxA( [INFO] [stdout] | ^^^^^^^^^^^ not found in `user32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use MessageBoxA; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_uint` in this scope [INFO] [stdout] --> src/win_layer.rs:134:35 [INFO] [stdout] | [INFO] [stdout] 134 | if result != 0 { Ok(result as c_uint) } [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_uint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCWSTR` in this scope [INFO] [stdout] --> src/win_layer.rs:29:71 [INFO] [stdout] | [INFO] [stdout] 29 | let handle = unsafe { kernel32::GetModuleHandleW(name.map_or(0 as LPCWSTR, |x|x.as_ptr() as LPCWSTR)) }; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:140:18 [INFO] [stdout] | [INFO] [stdout] 139 | pub fn MessageBoxW( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 140 | hwnd: Option, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCWSTR` in this scope [INFO] [stdout] --> src/win_layer.rs:29:97 [INFO] [stdout] | [INFO] [stdout] 29 | let handle = unsafe { kernel32::GetModuleHandleW(name.map_or(0 as LPCWSTR, |x|x.as_ptr() as LPCWSTR)) }; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HMODULE` in this scope [INFO] [stdout] --> src/win_layer.rs:36:56 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn GetModuleHandleA(name: Option<&[u8]>) -> Result [INFO] [stdout] | - ^^^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleA` in crate `kernel32` [INFO] [stdout] --> src/win_layer.rs:38:37 [INFO] [stdout] | [INFO] [stdout] 38 | let handle = unsafe { kernel32::GetModuleHandleA(name.map_or(0 as LPCSTR, |x|x.as_ptr() as LPCSTR)) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in `kernel32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use GetModuleHandleA; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCSTR` in this scope [INFO] [stdout] --> src/win_layer.rs:38:71 [INFO] [stdout] | [INFO] [stdout] 38 | let handle = unsafe { kernel32::GetModuleHandleA(name.map_or(0 as LPCSTR, |x|x.as_ptr() as LPCSTR)) }; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCSTR` in this scope [INFO] [stdout] --> src/win_layer.rs:38:96 [INFO] [stdout] | [INFO] [stdout] 38 | let handle = unsafe { kernel32::GetModuleHandleA(name.map_or(0 as LPCSTR, |x|x.as_ptr() as LPCSTR)) }; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/win_layer.rs:44:54 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn GetStdHandle(handle_id: u32) -> Result, u32> [INFO] [stdout] | - ^^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetStdHandle` in crate `kernel32` [INFO] [stdout] --> src/win_layer.rs:46:37 [INFO] [stdout] | [INFO] [stdout] 46 | let handle = unsafe { kernel32::GetStdHandle(handle_id) }; [INFO] [stdout] | ^^^^^^^^^^^^ not found in `kernel32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use GetStdHandle; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope [INFO] [stdout] --> src/win_layer.rs:49:23 [INFO] [stdout] | [INFO] [stdout] 49 | else if handle != INVALID_HANDLE_VALUE { Ok(Some(handle)) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/win_layer.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | handle: HANDLE, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `OVERLAPPED` in this scope [INFO] [stdout] --> src/win_layer.rs:57:29 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn WriteFile( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 57 | overlapped: Option<&mut OVERLAPPED>) [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in crate `winapi` [INFO] [stdout] --> src/win_layer.rs:64:60 [INFO] [stdout] | [INFO] [stdout] 64 | let buffer_ptr = buffer.as_ptr() as *const winapi::c_void; [INFO] [stdout] | ^^^^^^ not found in `winapi` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `OVERLAPPED` in this scope [INFO] [stdout] --> src/win_layer.rs:66:58 [INFO] [stdout] | [INFO] [stdout] 66 | let overlapped_ptr = overlapped.map_or(0 as *mut OVERLAPPED, |x|x as *mut OVERLAPPED); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `OVERLAPPED` in this scope [INFO] [stdout] --> src/win_layer.rs:66:83 [INFO] [stdout] | [INFO] [stdout] 66 | let overlapped_ptr = overlapped.map_or(0 as *mut OVERLAPPED, |x|x as *mut OVERLAPPED); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WriteFile` in crate `kernel32` [INFO] [stdout] --> src/win_layer.rs:67:19 [INFO] [stdout] | [INFO] [stdout] 67 | kernel32::WriteFile(handle, buffer_ptr, buffer_len, written_ptr, overlapped_ptr) [INFO] [stdout] | ^^^^^^^^^ not found in `kernel32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use WriteFile; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:75:37 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn GetConsoleWindow() -> Option [INFO] [stdout] | - ^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetConsoleWindow` in crate `kernel32` [INFO] [stdout] --> src/win_layer.rs:77:37 [INFO] [stdout] | [INFO] [stdout] 77 | let handle = unsafe { kernel32::GetConsoleWindow() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in `kernel32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use GetConsoleWindow; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:105:25 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn ShowWindow(hWnd: HWND, nCmdShow: c_int) -> bool [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_uint` in this scope [INFO] [stdout] --> src/win_layer.rs:143:12 [INFO] [stdout] | [INFO] [stdout] 143 | flags: c_uint) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_uint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/win_layer.rs:105:41 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn ShowWindow(hWnd: HWND, nCmdShow: c_int) -> bool [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ShowWindow` in crate `user32` [INFO] [stdout] --> src/win_layer.rs:107:22 [INFO] [stdout] | [INFO] [stdout] 107 | unsafe { user32::ShowWindow(hWnd, nCmdShow) != 0 } [INFO] [stdout] | ^^^^^^^^^^ not found in `user32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use ShowWindow; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:111:27 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn UpdateWindow(hwnd: HWND) -> Result<(), u32> [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 crate `user32` [INFO] [stdout] --> src/win_layer.rs:113:35 [INFO] [stdout] | [INFO] [stdout] 113 | let result = unsafe { user32::UpdateWindow(hwnd) }; [INFO] [stdout] | ^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use UpdateWindow; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:121:18 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn MessageBoxA( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 121 | hwnd: Option, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_uint` in this scope [INFO] [stdout] --> src/win_layer.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 124 | flags: c_uint) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_uint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_uint` in this scope [INFO] [stdout] --> src/win_layer.rs:125:15 [INFO] [stdout] | [INFO] [stdout] 125 | -> Result [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_uint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_uint` in this scope [INFO] [stdout] --> src/win_layer.rs:144:15 [INFO] [stdout] | [INFO] [stdout] 144 | -> Result [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_uint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:146:40 [INFO] [stdout] | [INFO] [stdout] 146 | let hwnd_ptr = hwnd.unwrap_or(0 as HWND); [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 crate `user32` [INFO] [stdout] --> src/win_layer.rs:147:35 [INFO] [stdout] | [INFO] [stdout] 147 | let result = unsafe { user32::MessageBoxW( [INFO] [stdout] | ^^^^^^^^^^^ not found in `user32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use MessageBoxW; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:127:40 [INFO] [stdout] | [INFO] [stdout] 127 | let hwnd_ptr = hwnd.unwrap_or(0 as HWND); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_uint` in this scope [INFO] [stdout] --> src/win_layer.rs:153:35 [INFO] [stdout] | [INFO] [stdout] 153 | if result != 0 { Ok(result as c_uint) } [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_uint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ATOM` in this scope [INFO] [stdout] --> src/win_layer.rs:159:15 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn FindAtomW(wnd_cls: &[u16]) [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 159 | -> Result [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `MessageBoxA` in crate `user32` [INFO] [stdout] --> src/win_layer.rs:128:35 [INFO] [stdout] | [INFO] [stdout] 128 | let result = unsafe { user32::MessageBoxA( [INFO] [stdout] | ^^^^^^^^^^^ not found in `user32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use MessageBoxA; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `FindAtomW` in crate `kernel32` [INFO] [stdout] --> src/win_layer.rs:161:37 [INFO] [stdout] | [INFO] [stdout] 161 | let result = unsafe { kernel32::FindAtomW(wnd_cls.as_ptr() as LPCWSTR) }; [INFO] [stdout] | ^^^^^^^^^ not found in `kernel32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use FindAtomW; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCWSTR` in this scope [INFO] [stdout] --> src/win_layer.rs:161:67 [INFO] [stdout] | [INFO] [stdout] 161 | let result = unsafe { kernel32::FindAtomW(wnd_cls.as_ptr() as LPCWSTR) }; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_uint` in this scope [INFO] [stdout] --> src/win_layer.rs:134:35 [INFO] [stdout] | [INFO] [stdout] 134 | if result != 0 { Ok(result as c_uint) } [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_uint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ATOM` in this scope [INFO] [stdout] --> src/win_layer.rs:169:15 [INFO] [stdout] | [INFO] [stdout] 168 | pub fn GlobalFindAtomW(wnd_cls: &[u16]) [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 169 | -> Result [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GlobalFindAtomW` in crate `kernel32` [INFO] [stdout] --> src/win_layer.rs:171:37 [INFO] [stdout] | [INFO] [stdout] 171 | let result = unsafe { kernel32::GlobalFindAtomW(wnd_cls.as_ptr() as LPCWSTR) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in `kernel32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use GlobalFindAtomW; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:140:18 [INFO] [stdout] | [INFO] [stdout] 139 | pub fn MessageBoxW( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 140 | hwnd: Option, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCWSTR` in this scope [INFO] [stdout] --> src/win_layer.rs:171:73 [INFO] [stdout] | [INFO] [stdout] 171 | let result = unsafe { kernel32::GlobalFindAtomW(wnd_cls.as_ptr() as LPCWSTR) }; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WORD` in this scope [INFO] [stdout] --> src/win_layer.rs:178:9 [INFO] [stdout] | [INFO] [stdout] 178 | Int(WORD), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stdout] --> src/win_layer.rs:186:15 [INFO] [stdout] | [INFO] [stdout] 186 | instance: HINSTANCE, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_uint` in this scope [INFO] [stdout] --> src/win_layer.rs:143:12 [INFO] [stdout] | [INFO] [stdout] 143 | flags: c_uint) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_uint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HICON` in this scope [INFO] [stdout] --> src/win_layer.rs:188:15 [INFO] [stdout] | [INFO] [stdout] 185 | pub fn LoadIconW( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 188 | -> Result [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPWSTR` in this scope [INFO] [stdout] --> src/win_layer.rs:192:52 [INFO] [stdout] | [INFO] [stdout] 192 | ResourceIdW::Int(id) => id as usize as LPWSTR, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPWSTR` in this scope [INFO] [stdout] --> src/win_layer.rs:193:50 [INFO] [stdout] | [INFO] [stdout] 193 | ResourceIdW::Str(s) => s.as_ptr() as LPWSTR, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_uint` in this scope [INFO] [stdout] --> src/win_layer.rs:144:15 [INFO] [stdout] | [INFO] [stdout] 144 | -> Result [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_uint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LoadIconW` in crate `user32` [INFO] [stdout] --> src/win_layer.rs:195:17 [INFO] [stdout] | [INFO] [stdout] 195 | user32::LoadIconW(instance, rc_ptr) [INFO] [stdout] | ^^^^^^^^^ not found in `user32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use LoadIconW; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stdout] --> src/win_layer.rs:204:15 [INFO] [stdout] | [INFO] [stdout] 204 | instance: HINSTANCE, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:146:40 [INFO] [stdout] | [INFO] [stdout] 146 | let hwnd_ptr = hwnd.unwrap_or(0 as HWND); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HCURSOR` in this scope [INFO] [stdout] --> src/win_layer.rs:206:15 [INFO] [stdout] | [INFO] [stdout] 203 | pub fn LoadCursorW( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 206 | -> Result [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPWSTR` in this scope [INFO] [stdout] --> src/win_layer.rs:210:52 [INFO] [stdout] | [INFO] [stdout] 210 | ResourceIdW::Int(id) => id as usize as LPWSTR, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPWSTR` in this scope [INFO] [stdout] --> src/win_layer.rs:211:50 [INFO] [stdout] | [INFO] [stdout] 211 | ResourceIdW::Str(s) => s.as_ptr() as LPWSTR, [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 crate `user32` [INFO] [stdout] --> src/win_layer.rs:147:35 [INFO] [stdout] | [INFO] [stdout] 147 | let result = unsafe { user32::MessageBoxW( [INFO] [stdout] | ^^^^^^^^^^^ not found in `user32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use MessageBoxW; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_uint` in this scope [INFO] [stdout] --> src/win_layer.rs:153:35 [INFO] [stdout] | [INFO] [stdout] 153 | if result != 0 { Ok(result as c_uint) } [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_uint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ATOM` in this scope [INFO] [stdout] --> src/win_layer.rs:159:15 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn FindAtomW(wnd_cls: &[u16]) [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 159 | -> Result [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LoadCursorW` in crate `user32` [INFO] [stdout] --> src/win_layer.rs:213:17 [INFO] [stdout] | [INFO] [stdout] 213 | user32::LoadCursorW(instance, rc_ptr) [INFO] [stdout] | ^^^^^^^^^^^ not found in `user32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use LoadCursorW; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/win_layer.rs:221:41 [INFO] [stdout] | [INFO] [stdout] 221 | pub fn BeginDeferWindowPos(num_windows: c_int) -> Result [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HDWP` in this scope [INFO] [stdout] --> src/win_layer.rs:221:58 [INFO] [stdout] | [INFO] [stdout] 221 | pub fn BeginDeferWindowPos(num_windows: c_int) -> Result [INFO] [stdout] | - ^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HDWP` in this scope [INFO] [stdout] --> src/win_layer.rs:231:19 [INFO] [stdout] | [INFO] [stdout] 231 | win_pos_info: HDWP, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:232:11 [INFO] [stdout] | [INFO] [stdout] 232 | hwnd: HWND, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:233:26 [INFO] [stdout] | [INFO] [stdout] 230 | pub fn DeferWindowPos( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 233 | insert_after: Option, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/win_layer.rs:234:8 [INFO] [stdout] | [INFO] [stdout] 234 | x: c_int, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/win_layer.rs:235:8 [INFO] [stdout] | [INFO] [stdout] 235 | y: c_int, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/win_layer.rs:236:9 [INFO] [stdout] | [INFO] [stdout] 236 | cx: c_int, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `FindAtomW` in crate `kernel32` [INFO] [stdout] --> src/win_layer.rs:161:37 [INFO] [stdout] | [INFO] [stdout] 161 | let result = unsafe { kernel32::FindAtomW(wnd_cls.as_ptr() as LPCWSTR) }; [INFO] [stdout] | ^^^^^^^^^ not found in `kernel32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use FindAtomW; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/win_layer.rs:237:9 [INFO] [stdout] | [INFO] [stdout] 237 | cy: c_int, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `UINT` in this scope [INFO] [stdout] --> src/win_layer.rs:238:12 [INFO] [stdout] | [INFO] [stdout] 238 | flags: UINT) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HDWP` in this scope [INFO] [stdout] --> src/win_layer.rs:239:15 [INFO] [stdout] | [INFO] [stdout] 230 | pub fn DeferWindowPos( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 239 | -> Result [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCWSTR` in this scope [INFO] [stdout] --> src/win_layer.rs:161:67 [INFO] [stdout] | [INFO] [stdout] 161 | let result = unsafe { kernel32::FindAtomW(wnd_cls.as_ptr() as LPCWSTR) }; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:241:56 [INFO] [stdout] | [INFO] [stdout] 241 | let insert_after_ptr = insert_after.unwrap_or(0 as HWND); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DeferWindowPos` in crate `user32` [INFO] [stdout] --> src/win_layer.rs:242:35 [INFO] [stdout] | [INFO] [stdout] 242 | let result = unsafe { user32::DeferWindowPos( [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use DeferWindowPos; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HDWP` in this scope [INFO] [stdout] --> src/win_layer.rs:251:32 [INFO] [stdout] | [INFO] [stdout] 251 | pub fn EndDeferWindowPos(hdwp: HDWP) -> Result<(), u32> [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `EndDeferWindowPos` in crate `user32` [INFO] [stdout] --> src/win_layer.rs:253:35 [INFO] [stdout] | [INFO] [stdout] 253 | let result = unsafe { user32::EndDeferWindowPos(hdwp) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use EndDeferWindowPos; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:261:11 [INFO] [stdout] | [INFO] [stdout] 261 | hwnd: HWND, [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/win_layer.rs:262:12 [INFO] [stdout] | [INFO] [stdout] 262 | rect: &RECT, [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 crate `user32` [INFO] [stdout] --> src/win_layer.rs:267:35 [INFO] [stdout] | [INFO] [stdout] 267 | let result = unsafe { user32::InvalidateRect(hwnd, rect as *const RECT, erase_int) }; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use InvalidateRect; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RECT` in this scope [INFO] [stdout] --> src/win_layer.rs:267:71 [INFO] [stdout] | [INFO] [stdout] 267 | let result = unsafe { user32::InvalidateRect(hwnd, rect as *const RECT, erase_int) }; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ATOM` in this scope [INFO] [stdout] --> src/win_layer.rs:169:15 [INFO] [stdout] | [INFO] [stdout] 168 | pub fn GlobalFindAtomW(wnd_cls: &[u16]) [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 169 | -> Result [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HDC` in this scope [INFO] [stdout] --> src/win_layer.rs:275:10 [INFO] [stdout] | [INFO] [stdout] 275 | hdc: HDC, [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/win_layer.rs:276:14 [INFO] [stdout] | [INFO] [stdout] 276 | x_start: c_int, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/win_layer.rs:277:14 [INFO] [stdout] | [INFO] [stdout] 277 | y_start: c_int, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `TextOutW` in crate `gdi32` [INFO] [stdout] --> src/win_layer.rs:281:34 [INFO] [stdout] | [INFO] [stdout] 281 | let result = unsafe { gdi32::TextOutW( [INFO] [stdout] | ^^^^^^^^ not found in `gdi32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use TextOutW; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GlobalFindAtomW` in crate `kernel32` [INFO] [stdout] --> src/win_layer.rs:171:37 [INFO] [stdout] | [INFO] [stdout] 171 | let result = unsafe { kernel32::GlobalFindAtomW(wnd_cls.as_ptr() as LPCWSTR) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in `kernel32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use GlobalFindAtomW; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/win_layer.rs:282:69 [INFO] [stdout] | [INFO] [stdout] 282 | hdc, x_start, y_start, string.as_ptr(), string.len() as c_int) }; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HDC` in this scope [INFO] [stdout] --> src/win_layer.rs:289:23 [INFO] [stdout] | [INFO] [stdout] 289 | pub fn SetBkMode(hdc: HDC, mode: c_int) -> Result<(), u32> [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/win_layer.rs:289:34 [INFO] [stdout] | [INFO] [stdout] 289 | pub fn SetBkMode(hdc: HDC, mode: c_int) -> Result<(), u32> [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCWSTR` in this scope [INFO] [stdout] --> src/win_layer.rs:171:73 [INFO] [stdout] | [INFO] [stdout] 171 | let result = unsafe { kernel32::GlobalFindAtomW(wnd_cls.as_ptr() as LPCWSTR) }; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetBkMode` in crate `gdi32` [INFO] [stdout] --> src/win_layer.rs:291:34 [INFO] [stdout] | [INFO] [stdout] 291 | let result = unsafe { gdi32::SetBkMode(hdc, mode) }; [INFO] [stdout] | ^^^^^^^^^ not found in `gdi32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use SetBkMode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HDC` in this scope [INFO] [stdout] --> src/win_layer.rs:298:27 [INFO] [stdout] | [INFO] [stdout] 298 | pub fn DrawFocusRect(hdc: HDC, rect: &RECT) -> Result<(), u32> [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/win_layer.rs:298:39 [INFO] [stdout] | [INFO] [stdout] 298 | pub fn DrawFocusRect(hdc: HDC, rect: &RECT) -> Result<(), u32> [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WORD` in this scope [INFO] [stdout] --> src/win_layer.rs:178:9 [INFO] [stdout] | [INFO] [stdout] 178 | Int(WORD), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DrawFocusRect` in crate `user32` [INFO] [stdout] --> src/win_layer.rs:300:35 [INFO] [stdout] | [INFO] [stdout] 300 | let result = unsafe { user32::DrawFocusRect(hdc, rect as *const RECT) }; [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use DrawFocusRect; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stdout] --> src/win_layer.rs:186:15 [INFO] [stdout] | [INFO] [stdout] 186 | instance: HINSTANCE, [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/win_layer.rs:300:69 [INFO] [stdout] | [INFO] [stdout] 300 | let result = unsafe { user32::DrawFocusRect(hdc, rect as *const RECT) }; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:308:11 [INFO] [stdout] | [INFO] [stdout] 308 | hwnd: HWND, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `UINT` in this scope [INFO] [stdout] --> src/win_layer.rs:309:10 [INFO] [stdout] | [INFO] [stdout] 309 | msg: UINT, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WPARAM` in this scope [INFO] [stdout] --> src/win_layer.rs:310:12 [INFO] [stdout] | [INFO] [stdout] 310 | param: WPARAM, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPARAM` in this scope [INFO] [stdout] --> src/win_layer.rs:311:11 [INFO] [stdout] | [INFO] [stdout] 311 | para: LPARAM) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LRESULT` in this scope [INFO] [stdout] --> src/win_layer.rs:312:8 [INFO] [stdout] | [INFO] [stdout] 312 | -> LRESULT [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SendMessageW` in crate `user32` [INFO] [stdout] --> src/win_layer.rs:314:22 [INFO] [stdout] | [INFO] [stdout] 314 | unsafe { user32::SendMessageW(hwnd, msg, param, para) } [INFO] [stdout] | ^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use SendMessageW; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:318:29 [INFO] [stdout] | [INFO] [stdout] 318 | pub fn GetWindowLongW(hwnd: HWND, index: c_int) -> Result [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/win_layer.rs:318:42 [INFO] [stdout] | [INFO] [stdout] 318 | pub fn GetWindowLongW(hwnd: HWND, index: c_int) -> Result [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LONG` in this scope [INFO] [stdout] --> src/win_layer.rs:318:59 [INFO] [stdout] | [INFO] [stdout] 318 | pub fn GetWindowLongW(hwnd: HWND, index: c_int) -> Result [INFO] [stdout] | - ^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetWindowLongW` in crate `user32` [INFO] [stdout] --> src/win_layer.rs:320:35 [INFO] [stdout] | [INFO] [stdout] 320 | let result = unsafe { user32::GetWindowLongW(hwnd, index) }; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use GetWindowLongW; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:327:29 [INFO] [stdout] | [INFO] [stdout] 327 | pub fn SetWindowLongW(hwnd: HWND, index: c_int, value: LONG) -> Result [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HICON` in this scope [INFO] [stdout] --> src/win_layer.rs:188:15 [INFO] [stdout] | [INFO] [stdout] 185 | pub fn LoadIconW( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 188 | -> Result [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/win_layer.rs:327:42 [INFO] [stdout] | [INFO] [stdout] 327 | pub fn SetWindowLongW(hwnd: HWND, index: c_int, value: LONG) -> Result [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LONG` in this scope [INFO] [stdout] --> src/win_layer.rs:327:56 [INFO] [stdout] | [INFO] [stdout] 327 | pub fn SetWindowLongW(hwnd: HWND, index: c_int, value: LONG) -> Result [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/win_layer.rs:327:72 [INFO] [stdout] | [INFO] [stdout] 327 | pub fn SetWindowLongW(hwnd: HWND, index: c_int, value: LONG) -> Result [INFO] [stdout] | - ^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowLongW` in crate `user32` [INFO] [stdout] --> src/win_layer.rs:329:35 [INFO] [stdout] | [INFO] [stdout] 329 | let result = unsafe { user32::SetWindowLongW(hwnd, index, value) }; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use SetWindowLongW; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WNDCLASSEXW` in this scope [INFO] [stdout] --> src/win_layer.rs:336:35 [INFO] [stdout] | [INFO] [stdout] 336 | pub fn RegisterClassExW(wnd_cls: &WNDCLASSEXW) [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ATOM` in this scope [INFO] [stdout] --> src/win_layer.rs:337:15 [INFO] [stdout] | [INFO] [stdout] 336 | pub fn RegisterClassExW(wnd_cls: &WNDCLASSEXW) [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 337 | -> Result [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegisterClassExW` in crate `user32` [INFO] [stdout] --> src/win_layer.rs:339:35 [INFO] [stdout] | [INFO] [stdout] 339 | let result = unsafe { user32::RegisterClassExW(wnd_cls as *const WNDCLASSEXW) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use RegisterClassExW; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WNDCLASSEXW` in this scope [INFO] [stdout] --> src/win_layer.rs:339:70 [INFO] [stdout] | [INFO] [stdout] 339 | let result = unsafe { user32::RegisterClassExW(wnd_cls as *const WNDCLASSEXW) }; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ATOM` in this scope [INFO] [stdout] --> src/win_layer.rs:346:10 [INFO] [stdout] | [INFO] [stdout] 346 | Atom(ATOM), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/win_layer.rs:356:8 [INFO] [stdout] | [INFO] [stdout] 356 | x: c_int, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/win_layer.rs:357:8 [INFO] [stdout] | [INFO] [stdout] 357 | y: c_int, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/win_layer.rs:358:12 [INFO] [stdout] | [INFO] [stdout] 358 | width: c_int, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPWSTR` in this scope [INFO] [stdout] --> src/win_layer.rs:192:52 [INFO] [stdout] | [INFO] [stdout] 192 | ResourceIdW::Int(id) => id as usize as LPWSTR, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/win_layer.rs:359:13 [INFO] [stdout] | [INFO] [stdout] 359 | height: c_int, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:360:24 [INFO] [stdout] | [INFO] [stdout] 351 | pub fn CreateWindowExW( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 360 | wnd_parent: Option, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HMENU` in this scope [INFO] [stdout] --> src/win_layer.rs:361:18 [INFO] [stdout] | [INFO] [stdout] 351 | pub fn CreateWindowExW( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 361 | menu: Option, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stdout] --> src/win_layer.rs:362:15 [INFO] [stdout] | [INFO] [stdout] 362 | instance: HINSTANCE, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/win_layer.rs:363:19 [INFO] [stdout] | [INFO] [stdout] 351 | pub fn CreateWindowExW( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 363 | param: Option) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPWSTR` in this scope [INFO] [stdout] --> src/win_layer.rs:193:50 [INFO] [stdout] | [INFO] [stdout] 193 | ResourceIdW::Str(s) => s.as_ptr() as LPWSTR, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LoadIconW` in crate `user32` [INFO] [stdout] --> src/win_layer.rs:195:17 [INFO] [stdout] | [INFO] [stdout] 195 | user32::LoadIconW(instance, rc_ptr) [INFO] [stdout] | ^^^^^^^^^ not found in `user32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use LoadIconW; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stdout] --> src/win_layer.rs:204:15 [INFO] [stdout] | [INFO] [stdout] 204 | instance: HINSTANCE, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HCURSOR` in this scope [INFO] [stdout] --> src/win_layer.rs:206:15 [INFO] [stdout] | [INFO] [stdout] 203 | pub fn LoadCursorW( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 206 | -> Result [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPWSTR` in this scope [INFO] [stdout] --> src/win_layer.rs:210:52 [INFO] [stdout] | [INFO] [stdout] 210 | ResourceIdW::Int(id) => id as usize as LPWSTR, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPWSTR` in this scope [INFO] [stdout] --> src/win_layer.rs:211:50 [INFO] [stdout] | [INFO] [stdout] 211 | ResourceIdW::Str(s) => s.as_ptr() as LPWSTR, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LoadCursorW` in crate `user32` [INFO] [stdout] --> src/win_layer.rs:213:17 [INFO] [stdout] | [INFO] [stdout] 213 | user32::LoadCursorW(instance, rc_ptr) [INFO] [stdout] | ^^^^^^^^^^^ not found in `user32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use LoadCursorW; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/win_layer.rs:221:41 [INFO] [stdout] | [INFO] [stdout] 221 | pub fn BeginDeferWindowPos(num_windows: c_int) -> Result [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HDWP` in this scope [INFO] [stdout] --> src/win_layer.rs:221:58 [INFO] [stdout] | [INFO] [stdout] 221 | pub fn BeginDeferWindowPos(num_windows: c_int) -> Result [INFO] [stdout] | - ^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HDWP` in this scope [INFO] [stdout] --> src/win_layer.rs:231:19 [INFO] [stdout] | [INFO] [stdout] 231 | win_pos_info: HDWP, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:232:11 [INFO] [stdout] | [INFO] [stdout] 232 | hwnd: HWND, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:233:26 [INFO] [stdout] | [INFO] [stdout] 230 | pub fn DeferWindowPos( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 233 | insert_after: Option, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/win_layer.rs:234:8 [INFO] [stdout] | [INFO] [stdout] 234 | x: c_int, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/win_layer.rs:235:8 [INFO] [stdout] | [INFO] [stdout] 235 | y: c_int, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/win_layer.rs:236:9 [INFO] [stdout] | [INFO] [stdout] 236 | cx: c_int, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/win_layer.rs:237:9 [INFO] [stdout] | [INFO] [stdout] 237 | cy: c_int, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `UINT` in this scope [INFO] [stdout] --> src/win_layer.rs:238:12 [INFO] [stdout] | [INFO] [stdout] 238 | flags: UINT) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:364:15 [INFO] [stdout] | [INFO] [stdout] 351 | pub fn CreateWindowExW( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 364 | -> Result [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCWSTR` in this scope [INFO] [stdout] --> src/win_layer.rs:368:40 [INFO] [stdout] | [INFO] [stdout] 368 | WinClsIdW::Atom(x) => x as LPCWSTR, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCWSTR` in this scope [INFO] [stdout] --> src/win_layer.rs:369:52 [INFO] [stdout] | [INFO] [stdout] 369 | WinClsIdW::ClsName(n) => n.as_ptr() as LPCWSTR, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HDWP` in this scope [INFO] [stdout] --> src/win_layer.rs:239:15 [INFO] [stdout] | [INFO] [stdout] 230 | pub fn DeferWindowPos( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 239 | -> Result [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:241:56 [INFO] [stdout] | [INFO] [stdout] 241 | let insert_after_ptr = insert_after.unwrap_or(0 as HWND); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DeferWindowPos` in crate `user32` [INFO] [stdout] --> src/win_layer.rs:242:35 [INFO] [stdout] | [INFO] [stdout] 242 | let result = unsafe { user32::DeferWindowPos( [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use DeferWindowPos; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HDWP` in this scope [INFO] [stdout] --> src/win_layer.rs:251:32 [INFO] [stdout] | [INFO] [stdout] 251 | pub fn EndDeferWindowPos(hdwp: HDWP) -> Result<(), u32> [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `EndDeferWindowPos` in crate `user32` [INFO] [stdout] --> src/win_layer.rs:253:35 [INFO] [stdout] | [INFO] [stdout] 253 | let result = unsafe { user32::EndDeferWindowPos(hdwp) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use EndDeferWindowPos; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:261:11 [INFO] [stdout] | [INFO] [stdout] 261 | hwnd: HWND, [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/win_layer.rs:262:12 [INFO] [stdout] | [INFO] [stdout] 262 | rect: &RECT, [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 crate `user32` [INFO] [stdout] --> src/win_layer.rs:267:35 [INFO] [stdout] | [INFO] [stdout] 267 | let result = unsafe { user32::InvalidateRect(hwnd, rect as *const RECT, erase_int) }; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use InvalidateRect; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RECT` in this scope [INFO] [stdout] --> src/win_layer.rs:267:71 [INFO] [stdout] | [INFO] [stdout] 267 | let result = unsafe { user32::InvalidateRect(hwnd, rect as *const RECT, erase_int) }; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HDC` in this scope [INFO] [stdout] --> src/win_layer.rs:275:10 [INFO] [stdout] | [INFO] [stdout] 275 | hdc: HDC, [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/win_layer.rs:276:14 [INFO] [stdout] | [INFO] [stdout] 276 | x_start: c_int, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/win_layer.rs:277:14 [INFO] [stdout] | [INFO] [stdout] 277 | y_start: c_int, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `TextOutW` in crate `gdi32` [INFO] [stdout] --> src/win_layer.rs:281:34 [INFO] [stdout] | [INFO] [stdout] 281 | let result = unsafe { gdi32::TextOutW( [INFO] [stdout] | ^^^^^^^^ not found in `gdi32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use TextOutW; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/win_layer.rs:282:69 [INFO] [stdout] | [INFO] [stdout] 282 | hdc, x_start, y_start, string.as_ptr(), string.len() as c_int) }; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HDC` in this scope [INFO] [stdout] --> src/win_layer.rs:289:23 [INFO] [stdout] | [INFO] [stdout] 289 | pub fn SetBkMode(hdc: HDC, mode: c_int) -> Result<(), u32> [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/win_layer.rs:289:34 [INFO] [stdout] | [INFO] [stdout] 289 | pub fn SetBkMode(hdc: HDC, mode: c_int) -> Result<(), u32> [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetBkMode` in crate `gdi32` [INFO] [stdout] --> src/win_layer.rs:291:34 [INFO] [stdout] | [INFO] [stdout] 291 | let result = unsafe { gdi32::SetBkMode(hdc, mode) }; [INFO] [stdout] | ^^^^^^^^^ not found in `gdi32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use SetBkMode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HDC` in this scope [INFO] [stdout] --> src/win_layer.rs:298:27 [INFO] [stdout] | [INFO] [stdout] 298 | pub fn DrawFocusRect(hdc: HDC, rect: &RECT) -> Result<(), u32> [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/win_layer.rs:298:39 [INFO] [stdout] | [INFO] [stdout] 298 | pub fn DrawFocusRect(hdc: HDC, rect: &RECT) -> Result<(), u32> [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DrawFocusRect` in crate `user32` [INFO] [stdout] --> src/win_layer.rs:300:35 [INFO] [stdout] | [INFO] [stdout] 300 | let result = unsafe { user32::DrawFocusRect(hdc, rect as *const RECT) }; [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use DrawFocusRect; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RECT` in this scope [INFO] [stdout] --> src/win_layer.rs:300:69 [INFO] [stdout] | [INFO] [stdout] 300 | let result = unsafe { user32::DrawFocusRect(hdc, rect as *const RECT) }; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:308:11 [INFO] [stdout] | [INFO] [stdout] 308 | hwnd: HWND, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `UINT` in this scope [INFO] [stdout] --> src/win_layer.rs:309:10 [INFO] [stdout] | [INFO] [stdout] 309 | msg: UINT, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WPARAM` in this scope [INFO] [stdout] --> src/win_layer.rs:310:12 [INFO] [stdout] | [INFO] [stdout] 310 | param: WPARAM, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPARAM` in this scope [INFO] [stdout] --> src/win_layer.rs:311:11 [INFO] [stdout] | [INFO] [stdout] 311 | para: LPARAM) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LRESULT` in this scope [INFO] [stdout] --> src/win_layer.rs:312:8 [INFO] [stdout] | [INFO] [stdout] 312 | -> LRESULT [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateWindowExW` in crate `user32` [INFO] [stdout] --> src/win_layer.rs:372:17 [INFO] [stdout] | [INFO] [stdout] 372 | user32::CreateWindowExW( [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use CreateWindowExW; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCWSTR` in this scope [INFO] [stdout] --> src/win_layer.rs:374:37 [INFO] [stdout] | [INFO] [stdout] 374 | window_name.map_or(0 as LPCWSTR, |x|x.as_ptr() as LPCWSTR), [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SendMessageW` in crate `user32` [INFO] [stdout] --> src/win_layer.rs:314:22 [INFO] [stdout] | [INFO] [stdout] 314 | unsafe { user32::SendMessageW(hwnd, msg, param, para) } [INFO] [stdout] | ^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use SendMessageW; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCWSTR` in this scope [INFO] [stdout] --> src/win_layer.rs:374:63 [INFO] [stdout] | [INFO] [stdout] 374 | window_name.map_or(0 as LPCWSTR, |x|x.as_ptr() as LPCWSTR), [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:376:39 [INFO] [stdout] | [INFO] [stdout] 376 | wnd_parent.unwrap_or(0 as HWND), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HMENU` in this scope [INFO] [stdout] --> src/win_layer.rs:377:33 [INFO] [stdout] | [INFO] [stdout] 377 | menu.unwrap_or(0 as HMENU), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/win_layer.rs:379:34 [INFO] [stdout] | [INFO] [stdout] 379 | param.unwrap_or(0 as LPVOID)) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:387:18 [INFO] [stdout] | [INFO] [stdout] 386 | pub struct BlockingMsgLoop { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 387 | hwnd: Option, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MSG` in this scope [INFO] [stdout] --> src/win_layer.rs:391:24 [INFO] [stdout] | [INFO] [stdout] 390 | impl Iterator for BlockingMsgLoop { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 391 | type Item = Result; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MSG` in this scope [INFO] [stdout] --> src/win_layer.rs:394:41 [INFO] [stdout] | [INFO] [stdout] 390 | impl Iterator for BlockingMsgLoop { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 394 | fn next(&mut self) -> Option> { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `MSG` in this scope [INFO] [stdout] --> src/win_layer.rs:395:23 [INFO] [stdout] | [INFO] [stdout] 395 | let mut msg = MSG { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:396:24 [INFO] [stdout] | [INFO] [stdout] 396 | hwnd: 0 as HWND, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `POINT` in this scope [INFO] [stdout] --> src/win_layer.rs:401:17 [INFO] [stdout] | [INFO] [stdout] 401 | pt: POINT {x: 0, y: 0}, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:403:45 [INFO] [stdout] | [INFO] [stdout] 403 | let hwnd = self.hwnd.unwrap_or(0 as HWND); [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 crate `user32` [INFO] [stdout] --> src/win_layer.rs:404:39 [INFO] [stdout] | [INFO] [stdout] 404 | let result = unsafe { user32::GetMessageW(&mut msg as *mut MSG, hwnd, 0, 0) }; [INFO] [stdout] | ^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MSG` in this scope [INFO] [stdout] --> src/win_layer.rs:404:68 [INFO] [stdout] | [INFO] [stdout] 404 | let result = unsafe { user32::GetMessageW(&mut msg as *mut MSG, hwnd, 0, 0) }; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:318:29 [INFO] [stdout] | [INFO] [stdout] 318 | pub fn GetWindowLongW(hwnd: HWND, index: c_int) -> Result [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:412:39 [INFO] [stdout] | [INFO] [stdout] 412 | pub fn blocking_msg_loop(hwnd: Option) -> BlockingMsgLoop [INFO] [stdout] | - ^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:416:18 [INFO] [stdout] | [INFO] [stdout] 415 | pub struct PeekingMsgLoop { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 416 | hwnd: Option, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MSG` in this scope [INFO] [stdout] --> src/win_layer.rs:420:24 [INFO] [stdout] | [INFO] [stdout] 419 | impl Iterator for PeekingMsgLoop { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 420 | type Item = Result; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MSG` in this scope [INFO] [stdout] --> src/win_layer.rs:423:41 [INFO] [stdout] | [INFO] [stdout] 419 | impl Iterator for PeekingMsgLoop { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 423 | fn next(&mut self) -> Option> { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:425:45 [INFO] [stdout] | [INFO] [stdout] 425 | let hwnd = self.hwnd.unwrap_or(0 as HWND); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MSG` in this scope [INFO] [stdout] --> src/win_layer.rs:427:38 [INFO] [stdout] | [INFO] [stdout] 419 | impl Iterator for PeekingMsgLoop { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 427 | msg = std::mem::zeroed::(); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/win_layer.rs:318:42 [INFO] [stdout] | [INFO] [stdout] 318 | pub fn GetWindowLongW(hwnd: HWND, index: c_int) -> Result [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PeekMessageW` in crate `user32` [INFO] [stdout] --> src/win_layer.rs:428:21 [INFO] [stdout] | [INFO] [stdout] 428 | user32::PeekMessageW(&mut msg as *mut MSG, hwnd, 0, 0, PM_REMOVE) [INFO] [stdout] | ^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MSG` in this scope [INFO] [stdout] --> src/win_layer.rs:428:51 [INFO] [stdout] | [INFO] [stdout] 428 | user32::PeekMessageW(&mut msg as *mut MSG, hwnd, 0, 0, PM_REMOVE) [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PM_REMOVE` in this scope [INFO] [stdout] --> src/win_layer.rs:428:68 [INFO] [stdout] | [INFO] [stdout] 428 | user32::PeekMessageW(&mut msg as *mut MSG, hwnd, 0, 0, PM_REMOVE) [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:437:38 [INFO] [stdout] | [INFO] [stdout] 437 | pub fn peeking_msg_loop(hwnd: Option) -> PeekingMsgLoop [INFO] [stdout] | - ^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:441:30 [INFO] [stdout] | [INFO] [stdout] 441 | pub fn IsDialogMessage(hwnd: HWND, msg: &mut MSG) -> bool { [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/win_layer.rs:318:59 [INFO] [stdout] | [INFO] [stdout] 318 | pub fn GetWindowLongW(hwnd: HWND, index: c_int) -> Result [INFO] [stdout] | - ^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MSG` in this scope [INFO] [stdout] --> src/win_layer.rs:441:46 [INFO] [stdout] | [INFO] [stdout] 441 | pub fn IsDialogMessage(hwnd: HWND, msg: &mut MSG) -> bool { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `IsDialogMessageW` in crate `user32` [INFO] [stdout] --> src/win_layer.rs:442:22 [INFO] [stdout] | [INFO] [stdout] 442 | unsafe { user32::IsDialogMessageW(hwnd, msg as *mut MSG) == 0 } [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MSG` in this scope [INFO] [stdout] --> src/win_layer.rs:442:57 [INFO] [stdout] | [INFO] [stdout] 442 | unsafe { user32::IsDialogMessageW(hwnd, msg as *mut MSG) == 0 } [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:446:28 [INFO] [stdout] | [INFO] [stdout] 446 | pub fn DestroyWindow(hwnd: HWND) -> Result<(), u32> [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DestroyWindow` in crate `user32` [INFO] [stdout] --> src/win_layer.rs:448:35 [INFO] [stdout] | [INFO] [stdout] 448 | let result = unsafe { user32::DestroyWindow(hwnd) }; [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use DestroyWindow; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:456:11 [INFO] [stdout] | [INFO] [stdout] 456 | hwnd: HWND, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:457:26 [INFO] [stdout] | [INFO] [stdout] 455 | pub fn SetWindowPos( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 456 | hwnd: HWND, [INFO] [stdout] 457 | insert_after: Option, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/win_layer.rs:458:8 [INFO] [stdout] | [INFO] [stdout] 458 | x: c_int, y: c_int, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/win_layer.rs:458:18 [INFO] [stdout] | [INFO] [stdout] 458 | x: c_int, y: c_int, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/win_layer.rs:459:9 [INFO] [stdout] | [INFO] [stdout] 459 | cx: c_int, cy: c_int, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetWindowLongW` in crate `user32` [INFO] [stdout] --> src/win_layer.rs:320:35 [INFO] [stdout] | [INFO] [stdout] 320 | let result = unsafe { user32::GetWindowLongW(hwnd, index) }; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use GetWindowLongW; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/win_layer.rs:459:20 [INFO] [stdout] | [INFO] [stdout] 459 | cx: c_int, cy: c_int, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:327:29 [INFO] [stdout] | [INFO] [stdout] 327 | pub fn SetWindowLongW(hwnd: HWND, index: c_int, value: LONG) -> Result [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `UINT` in this scope [INFO] [stdout] --> src/win_layer.rs:460:12 [INFO] [stdout] | [INFO] [stdout] 460 | flags: UINT) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/win_layer.rs:327:42 [INFO] [stdout] | [INFO] [stdout] 327 | pub fn SetWindowLongW(hwnd: HWND, index: c_int, value: LONG) -> Result [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowPos` in crate `user32` [INFO] [stdout] --> src/win_layer.rs:464:17 [INFO] [stdout] | [INFO] [stdout] 464 | user32::SetWindowPos( [INFO] [stdout] | ^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use SetWindowPos; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LONG` in this scope [INFO] [stdout] --> src/win_layer.rs:327:56 [INFO] [stdout] | [INFO] [stdout] 327 | pub fn SetWindowLongW(hwnd: HWND, index: c_int, value: LONG) -> Result [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:465:47 [INFO] [stdout] | [INFO] [stdout] 465 | hwnd, insert_after.unwrap_or(0 as HWND), [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/win_layer.rs:327:72 [INFO] [stdout] | [INFO] [stdout] 327 | pub fn SetWindowLongW(hwnd: HWND, index: c_int, value: LONG) -> Result [INFO] [stdout] | - ^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:474:11 [INFO] [stdout] | [INFO] [stdout] 474 | hwnd: HWND, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowLongW` in crate `user32` [INFO] [stdout] --> src/win_layer.rs:329:35 [INFO] [stdout] | [INFO] [stdout] 329 | let result = unsafe { user32::SetWindowLongW(hwnd, index, value) }; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use SetWindowLongW; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/win_layer.rs:475:8 [INFO] [stdout] | [INFO] [stdout] 475 | x: c_int, y: c_int, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WNDCLASSEXW` in this scope [INFO] [stdout] --> src/win_layer.rs:336:35 [INFO] [stdout] | [INFO] [stdout] 336 | pub fn RegisterClassExW(wnd_cls: &WNDCLASSEXW) [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/win_layer.rs:475:18 [INFO] [stdout] | [INFO] [stdout] 475 | x: c_int, y: c_int, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ATOM` in this scope [INFO] [stdout] --> src/win_layer.rs:337:15 [INFO] [stdout] | [INFO] [stdout] 336 | pub fn RegisterClassExW(wnd_cls: &WNDCLASSEXW) [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 337 | -> Result [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/win_layer.rs:476:9 [INFO] [stdout] | [INFO] [stdout] 476 | cx: c_int, cy: c_int, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegisterClassExW` in crate `user32` [INFO] [stdout] --> src/win_layer.rs:339:35 [INFO] [stdout] | [INFO] [stdout] 339 | let result = unsafe { user32::RegisterClassExW(wnd_cls as *const WNDCLASSEXW) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use RegisterClassExW; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/win_layer.rs:476:20 [INFO] [stdout] | [INFO] [stdout] 476 | cx: c_int, cy: c_int, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WNDCLASSEXW` in this scope [INFO] [stdout] --> src/win_layer.rs:339:70 [INFO] [stdout] | [INFO] [stdout] 339 | let result = unsafe { user32::RegisterClassExW(wnd_cls as *const WNDCLASSEXW) }; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `MoveWindow` in crate `user32` [INFO] [stdout] --> src/win_layer.rs:481:35 [INFO] [stdout] | [INFO] [stdout] 481 | let result = unsafe { user32::MoveWindow(hwnd, x, y, cx, cy, repaint) }; [INFO] [stdout] | ^^^^^^^^^^ not found in `user32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use MoveWindow; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:489:11 [INFO] [stdout] | [INFO] [stdout] 489 | hwnd: HWND, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `UINT` in this scope [INFO] [stdout] --> src/win_layer.rs:490:10 [INFO] [stdout] | [INFO] [stdout] 490 | msg: UINT, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WPARAM` in this scope [INFO] [stdout] --> src/win_layer.rs:491:12 [INFO] [stdout] | [INFO] [stdout] 491 | param: WPARAM, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPARAM` in this scope [INFO] [stdout] --> src/win_layer.rs:492:11 [INFO] [stdout] | [INFO] [stdout] 492 | para: LPARAM) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LRESULT` in this scope [INFO] [stdout] --> src/win_layer.rs:493:8 [INFO] [stdout] | [INFO] [stdout] 493 | -> LRESULT [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DefWindowProcW` in crate `user32` [INFO] [stdout] --> src/win_layer.rs:494:20 [INFO] [stdout] | [INFO] [stdout] 494 | { unsafe { user32::DefWindowProcW(hwnd, msg, param, para)} } [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use DefWindowProcW; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/win_layer.rs:497:35 [INFO] [stdout] | [INFO] [stdout] 497 | pub fn PostQuitMessage(exit_code: c_int) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostQuitMessage` in crate `user32` [INFO] [stdout] --> src/win_layer.rs:498:20 [INFO] [stdout] | [INFO] [stdout] 498 | { unsafe { user32::PostQuitMessage(exit_code)} } [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use PostQuitMessage; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MSG` in this scope [INFO] [stdout] --> src/win_layer.rs:501:31 [INFO] [stdout] | [INFO] [stdout] 501 | pub fn TranslateMessage(msg: &MSG) -> bool [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ATOM` in this scope [INFO] [stdout] --> src/win_layer.rs:346:10 [INFO] [stdout] | [INFO] [stdout] 346 | Atom(ATOM), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/win_layer.rs:356:8 [INFO] [stdout] | [INFO] [stdout] 356 | x: c_int, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/win_layer.rs:357:8 [INFO] [stdout] | [INFO] [stdout] 357 | y: c_int, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/win_layer.rs:358:12 [INFO] [stdout] | [INFO] [stdout] 358 | width: c_int, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/win_layer.rs:359:13 [INFO] [stdout] | [INFO] [stdout] 359 | height: c_int, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:360:24 [INFO] [stdout] | [INFO] [stdout] 351 | pub fn CreateWindowExW( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 360 | wnd_parent: Option, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HMENU` in this scope [INFO] [stdout] --> src/win_layer.rs:361:18 [INFO] [stdout] | [INFO] [stdout] 351 | pub fn CreateWindowExW( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 361 | menu: Option, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stdout] --> src/win_layer.rs:362:15 [INFO] [stdout] | [INFO] [stdout] 362 | instance: HINSTANCE, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/win_layer.rs:363:19 [INFO] [stdout] | [INFO] [stdout] 351 | pub fn CreateWindowExW( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 363 | param: Option) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:364:15 [INFO] [stdout] | [INFO] [stdout] 351 | pub fn CreateWindowExW( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 364 | -> Result [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCWSTR` in this scope [INFO] [stdout] --> src/win_layer.rs:368:40 [INFO] [stdout] | [INFO] [stdout] 368 | WinClsIdW::Atom(x) => x as LPCWSTR, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCWSTR` in this scope [INFO] [stdout] --> src/win_layer.rs:369:52 [INFO] [stdout] | [INFO] [stdout] 369 | WinClsIdW::ClsName(n) => n.as_ptr() as LPCWSTR, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateWindowExW` in crate `user32` [INFO] [stdout] --> src/win_layer.rs:372:17 [INFO] [stdout] | [INFO] [stdout] 372 | user32::CreateWindowExW( [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use CreateWindowExW; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCWSTR` in this scope [INFO] [stdout] --> src/win_layer.rs:374:37 [INFO] [stdout] | [INFO] [stdout] 374 | window_name.map_or(0 as LPCWSTR, |x|x.as_ptr() as LPCWSTR), [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCWSTR` in this scope [INFO] [stdout] --> src/win_layer.rs:374:63 [INFO] [stdout] | [INFO] [stdout] 374 | window_name.map_or(0 as LPCWSTR, |x|x.as_ptr() as LPCWSTR), [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:376:39 [INFO] [stdout] | [INFO] [stdout] 376 | wnd_parent.unwrap_or(0 as HWND), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HMENU` in this scope [INFO] [stdout] --> src/win_layer.rs:377:33 [INFO] [stdout] | [INFO] [stdout] 377 | menu.unwrap_or(0 as HMENU), [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 crate `user32` [INFO] [stdout] --> src/win_layer.rs:502:20 [INFO] [stdout] | [INFO] [stdout] 502 | { unsafe { user32::TranslateMessage(msg as *const MSG) != 0 } } [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use TranslateMessage; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MSG` in this scope [INFO] [stdout] --> src/win_layer.rs:502:51 [INFO] [stdout] | [INFO] [stdout] 502 | { unsafe { user32::TranslateMessage(msg as *const MSG) != 0 } } [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MSG` in this scope [INFO] [stdout] --> src/win_layer.rs:505:31 [INFO] [stdout] | [INFO] [stdout] 505 | pub fn DispatchMessageW(msg: &MSG) -> isize [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 crate `user32` [INFO] [stdout] --> src/win_layer.rs:506:20 [INFO] [stdout] | [INFO] [stdout] 506 | { unsafe { user32::DispatchMessageW(msg as *const MSG) as isize } } [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use DispatchMessageW; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MSG` in this scope [INFO] [stdout] --> src/win_layer.rs:506:51 [INFO] [stdout] | [INFO] [stdout] 506 | { unsafe { user32::DispatchMessageW(msg as *const MSG) as isize } } [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:509:28 [INFO] [stdout] | [INFO] [stdout] 509 | pub fn GetClientRect(hwnd: HWND) -> Result [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/win_layer.rs:509:44 [INFO] [stdout] | [INFO] [stdout] 509 | pub fn GetClientRect(hwnd: HWND) -> Result [INFO] [stdout] | - ^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RECT` in this scope [INFO] [stdout] --> src/win_layer.rs:513:35 [INFO] [stdout] | [INFO] [stdout] 509 | pub fn GetClientRect(hwnd: HWND) -> Result [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 513 | 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 `GetClientRect` in crate `user32` [INFO] [stdout] --> src/win_layer.rs:514:17 [INFO] [stdout] | [INFO] [stdout] 514 | user32::GetClientRect(hwnd, &mut rect as *mut RECT) [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use GetClientRect; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RECT` in this scope [INFO] [stdout] --> src/win_layer.rs:514:55 [INFO] [stdout] | [INFO] [stdout] 514 | user32::GetClientRect(hwnd, &mut rect as *mut RECT) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:522:25 [INFO] [stdout] | [INFO] [stdout] 522 | pub fn BeginPaint(hwnd: HWND) -> Result<(PAINTSTRUCT, HDC), u32> [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/win_layer.rs:379:34 [INFO] [stdout] | [INFO] [stdout] 379 | param.unwrap_or(0 as LPVOID)) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:387:18 [INFO] [stdout] | [INFO] [stdout] 386 | pub struct BlockingMsgLoop { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 387 | hwnd: Option, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MSG` in this scope [INFO] [stdout] --> src/win_layer.rs:391:24 [INFO] [stdout] | [INFO] [stdout] 390 | impl Iterator for BlockingMsgLoop { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 391 | type Item = Result; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MSG` in this scope [INFO] [stdout] --> src/win_layer.rs:394:41 [INFO] [stdout] | [INFO] [stdout] 390 | impl Iterator for BlockingMsgLoop { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 394 | fn next(&mut self) -> Option> { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `MSG` in this scope [INFO] [stdout] --> src/win_layer.rs:395:23 [INFO] [stdout] | [INFO] [stdout] 395 | let mut msg = MSG { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:396:24 [INFO] [stdout] | [INFO] [stdout] 396 | hwnd: 0 as HWND, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `POINT` in this scope [INFO] [stdout] --> src/win_layer.rs:401:17 [INFO] [stdout] | [INFO] [stdout] 401 | pt: POINT {x: 0, y: 0}, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:403:45 [INFO] [stdout] | [INFO] [stdout] 403 | let hwnd = self.hwnd.unwrap_or(0 as HWND); [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 crate `user32` [INFO] [stdout] --> src/win_layer.rs:404:39 [INFO] [stdout] | [INFO] [stdout] 404 | let result = unsafe { user32::GetMessageW(&mut msg as *mut MSG, hwnd, 0, 0) }; [INFO] [stdout] | ^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MSG` in this scope [INFO] [stdout] --> src/win_layer.rs:404:68 [INFO] [stdout] | [INFO] [stdout] 404 | let result = unsafe { user32::GetMessageW(&mut msg as *mut MSG, hwnd, 0, 0) }; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:412:39 [INFO] [stdout] | [INFO] [stdout] 412 | pub fn blocking_msg_loop(hwnd: Option) -> BlockingMsgLoop [INFO] [stdout] | - ^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:416:18 [INFO] [stdout] | [INFO] [stdout] 415 | pub struct PeekingMsgLoop { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 416 | hwnd: Option, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MSG` in this scope [INFO] [stdout] --> src/win_layer.rs:420:24 [INFO] [stdout] | [INFO] [stdout] 419 | impl Iterator for PeekingMsgLoop { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 420 | type Item = Result; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MSG` in this scope [INFO] [stdout] --> src/win_layer.rs:423:41 [INFO] [stdout] | [INFO] [stdout] 419 | impl Iterator for PeekingMsgLoop { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 423 | fn next(&mut self) -> Option> { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:425:45 [INFO] [stdout] | [INFO] [stdout] 425 | let hwnd = self.hwnd.unwrap_or(0 as HWND); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MSG` in this scope [INFO] [stdout] --> src/win_layer.rs:427:38 [INFO] [stdout] | [INFO] [stdout] 419 | impl Iterator for PeekingMsgLoop { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 427 | msg = 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 `PeekMessageW` in crate `user32` [INFO] [stdout] --> src/win_layer.rs:428:21 [INFO] [stdout] | [INFO] [stdout] 428 | user32::PeekMessageW(&mut msg as *mut MSG, hwnd, 0, 0, PM_REMOVE) [INFO] [stdout] | ^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MSG` in this scope [INFO] [stdout] --> src/win_layer.rs:428:51 [INFO] [stdout] | [INFO] [stdout] 428 | user32::PeekMessageW(&mut msg as *mut MSG, hwnd, 0, 0, PM_REMOVE) [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PAINTSTRUCT` in this scope [INFO] [stdout] --> src/win_layer.rs:522:42 [INFO] [stdout] | [INFO] [stdout] 522 | pub fn BeginPaint(hwnd: HWND) -> Result<(PAINTSTRUCT, HDC), u32> [INFO] [stdout] | - ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HDC` in this scope [INFO] [stdout] --> src/win_layer.rs:522:55 [INFO] [stdout] | [INFO] [stdout] 522 | pub fn BeginPaint(hwnd: HWND) -> Result<(PAINTSTRUCT, HDC), u32> [INFO] [stdout] | - ^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PAINTSTRUCT` in this scope [INFO] [stdout] --> src/win_layer.rs:526:33 [INFO] [stdout] | [INFO] [stdout] 522 | pub fn BeginPaint(hwnd: HWND) -> Result<(PAINTSTRUCT, HDC), u32> [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 526 | ps = 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 `BeginPaint` in crate `user32` [INFO] [stdout] --> src/win_layer.rs:527:17 [INFO] [stdout] | [INFO] [stdout] 527 | user32::BeginPaint(hwnd, &mut ps as *mut PAINTSTRUCT) [INFO] [stdout] | ^^^^^^^^^^ not found in `user32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use BeginPaint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PAINTSTRUCT` in this scope [INFO] [stdout] --> src/win_layer.rs:527:50 [INFO] [stdout] | [INFO] [stdout] 527 | user32::BeginPaint(hwnd, &mut ps as *mut PAINTSTRUCT) [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:535:23 [INFO] [stdout] | [INFO] [stdout] 535 | pub fn EndPaint(hwnd: HWND, ps: &PAINTSTRUCT) -> Result<(), u32> [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PAINTSTRUCT` in this scope [INFO] [stdout] --> src/win_layer.rs:535:34 [INFO] [stdout] | [INFO] [stdout] 535 | pub fn EndPaint(hwnd: HWND, ps: &PAINTSTRUCT) -> Result<(), u32> [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `EndPaint` in crate `user32` [INFO] [stdout] --> src/win_layer.rs:537:35 [INFO] [stdout] | [INFO] [stdout] 537 | let result = unsafe { user32::EndPaint(hwnd, ps) }; [INFO] [stdout] | ^^^^^^^^ not found in `user32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use EndPaint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HDC` in this scope [INFO] [stdout] --> src/win_layer.rs:544:22 [INFO] [stdout] | [INFO] [stdout] 544 | pub fn FillRect(hdc: HDC, rect: &RECT, brush: HBRUSH) [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/win_layer.rs:544:34 [INFO] [stdout] | [INFO] [stdout] 544 | pub fn FillRect(hdc: HDC, rect: &RECT, brush: HBRUSH) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PM_REMOVE` in this scope [INFO] [stdout] --> src/win_layer.rs:428:68 [INFO] [stdout] | [INFO] [stdout] 428 | user32::PeekMessageW(&mut msg as *mut MSG, hwnd, 0, 0, PM_REMOVE) [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:437:38 [INFO] [stdout] | [INFO] [stdout] 437 | pub fn peeking_msg_loop(hwnd: Option) -> PeekingMsgLoop [INFO] [stdout] | - ^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:441:30 [INFO] [stdout] | [INFO] [stdout] 441 | pub fn IsDialogMessage(hwnd: HWND, msg: &mut MSG) -> bool { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MSG` in this scope [INFO] [stdout] --> src/win_layer.rs:441:46 [INFO] [stdout] | [INFO] [stdout] 441 | pub fn IsDialogMessage(hwnd: HWND, msg: &mut MSG) -> bool { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `IsDialogMessageW` in crate `user32` [INFO] [stdout] --> src/win_layer.rs:442:22 [INFO] [stdout] | [INFO] [stdout] 442 | unsafe { user32::IsDialogMessageW(hwnd, msg as *mut MSG) == 0 } [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MSG` in this scope [INFO] [stdout] --> src/win_layer.rs:442:57 [INFO] [stdout] | [INFO] [stdout] 442 | unsafe { user32::IsDialogMessageW(hwnd, msg as *mut MSG) == 0 } [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:446:28 [INFO] [stdout] | [INFO] [stdout] 446 | pub fn DestroyWindow(hwnd: HWND) -> Result<(), u32> [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DestroyWindow` in crate `user32` [INFO] [stdout] --> src/win_layer.rs:448:35 [INFO] [stdout] | [INFO] [stdout] 448 | let result = unsafe { user32::DestroyWindow(hwnd) }; [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use DestroyWindow; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:456:11 [INFO] [stdout] | [INFO] [stdout] 456 | hwnd: HWND, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:457:26 [INFO] [stdout] | [INFO] [stdout] 455 | pub fn SetWindowPos( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 456 | hwnd: HWND, [INFO] [stdout] 457 | insert_after: Option, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/win_layer.rs:458:8 [INFO] [stdout] | [INFO] [stdout] 458 | x: c_int, y: c_int, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/win_layer.rs:458:18 [INFO] [stdout] | [INFO] [stdout] 458 | x: c_int, y: c_int, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/win_layer.rs:459:9 [INFO] [stdout] | [INFO] [stdout] 459 | cx: c_int, cy: c_int, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/win_layer.rs:459:20 [INFO] [stdout] | [INFO] [stdout] 459 | cx: c_int, cy: c_int, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `UINT` in this scope [INFO] [stdout] --> src/win_layer.rs:460:12 [INFO] [stdout] | [INFO] [stdout] 460 | flags: UINT) [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 crate `user32` [INFO] [stdout] --> src/win_layer.rs:464:17 [INFO] [stdout] | [INFO] [stdout] 464 | user32::SetWindowPos( [INFO] [stdout] | ^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use SetWindowPos; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:465:47 [INFO] [stdout] | [INFO] [stdout] 465 | hwnd, insert_after.unwrap_or(0 as HWND), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:474:11 [INFO] [stdout] | [INFO] [stdout] 474 | hwnd: HWND, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HBRUSH` in this scope [INFO] [stdout] --> src/win_layer.rs:544:47 [INFO] [stdout] | [INFO] [stdout] 544 | pub fn FillRect(hdc: HDC, rect: &RECT, brush: HBRUSH) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `FillRect` in crate `user32` [INFO] [stdout] --> src/win_layer.rs:547:35 [INFO] [stdout] | [INFO] [stdout] 547 | let result = unsafe { user32::FillRect(hdc, rect, brush) }; [INFO] [stdout] | ^^^^^^^^ not found in `user32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use FillRect; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/win_layer.rs:475:8 [INFO] [stdout] | [INFO] [stdout] 475 | x: c_int, y: c_int, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_gdi.rs:42:24 [INFO] [stdout] | [INFO] [stdout] 42 | type HwndMap = HashMap>; [INFO] [stdout] | - ^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/win_layer.rs:475:18 [INFO] [stdout] | [INFO] [stdout] 475 | x: c_int, y: c_int, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/win_layer.rs:476:9 [INFO] [stdout] | [INFO] [stdout] 476 | cx: c_int, cy: c_int, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/win_layer.rs:476:20 [INFO] [stdout] | [INFO] [stdout] 476 | cx: c_int, cy: c_int, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `MoveWindow` in crate `user32` [INFO] [stdout] --> src/win_layer.rs:481:35 [INFO] [stdout] | [INFO] [stdout] 481 | let result = unsafe { user32::MoveWindow(hwnd, x, y, cx, cy, repaint) }; [INFO] [stdout] | ^^^^^^^^^^ not found in `user32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use MoveWindow; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:489:11 [INFO] [stdout] | [INFO] [stdout] 489 | hwnd: HWND, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `UINT` in this scope [INFO] [stdout] --> src/win_layer.rs:490:10 [INFO] [stdout] | [INFO] [stdout] 490 | msg: UINT, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WPARAM` in this scope [INFO] [stdout] --> src/win_layer.rs:491:12 [INFO] [stdout] | [INFO] [stdout] 491 | param: WPARAM, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPARAM` in this scope [INFO] [stdout] --> src/win_layer.rs:492:11 [INFO] [stdout] | [INFO] [stdout] 492 | para: LPARAM) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LRESULT` in this scope [INFO] [stdout] --> src/win_layer.rs:493:8 [INFO] [stdout] | [INFO] [stdout] 493 | -> LRESULT [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DefWindowProcW` in crate `user32` [INFO] [stdout] --> src/win_layer.rs:494:20 [INFO] [stdout] | [INFO] [stdout] 494 | { unsafe { user32::DefWindowProcW(hwnd, msg, param, para)} } [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use DefWindowProcW; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/win_layer.rs:497:35 [INFO] [stdout] | [INFO] [stdout] 497 | pub fn PostQuitMessage(exit_code: c_int) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 9 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostQuitMessage` in crate `user32` [INFO] [stdout] --> src/win_layer.rs:498:20 [INFO] [stdout] | [INFO] [stdout] 498 | { unsafe { user32::PostQuitMessage(exit_code)} } [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use PostQuitMessage; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ATOM` in this scope [INFO] [stdout] --> src/win_gdi.rs:45:48 [INFO] [stdout] | [INFO] [stdout] 45 | static ATOM_TABLE: RefCell> = RefCell::new(HashMap::new()); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_gdi.rs:48:25 [INFO] [stdout] | [INFO] [stdout] 48 | fn lookup_hwnd(hwnd: HWND) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_gdi.rs:59:25 [INFO] [stdout] | [INFO] [stdout] 59 | fn insert_hwnd(hwnd: HWND, para: LPARAM) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPARAM` in this scope [INFO] [stdout] --> src/win_gdi.rs:59:37 [INFO] [stdout] | [INFO] [stdout] 59 | fn insert_hwnd(hwnd: HWND, para: LPARAM) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `CREATESTRUCTW` in this scope [INFO] [stdout] --> src/win_gdi.rs:66:41 [INFO] [stdout] | [INFO] [stdout] 66 | let create_ptr = para as *const CREATESTRUCTW; [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_gdi.rs:76:25 [INFO] [stdout] | [INFO] [stdout] 76 | fn remove_hwnd(hwnd: HWND) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_gdi.rs:89:16 [INFO] [stdout] | [INFO] [stdout] 89 | _hwnd: HWND, _msg: UINT, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `UINT` in this scope [INFO] [stdout] --> src/win_gdi.rs:89:28 [INFO] [stdout] | [INFO] [stdout] 89 | _hwnd: HWND, _msg: UINT, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WPARAM` in this scope [INFO] [stdout] --> src/win_gdi.rs:90:17 [INFO] [stdout] | [INFO] [stdout] 90 | _param: WPARAM, _para: LPARAM) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPARAM` in this scope [INFO] [stdout] --> src/win_gdi.rs:90:32 [INFO] [stdout] | [INFO] [stdout] 90 | _param: WPARAM, _para: LPARAM) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LRESULT` in this scope [INFO] [stdout] --> src/win_gdi.rs:91:19 [INFO] [stdout] | [INFO] [stdout] 86 | pub trait WinCls: Sized + 'static { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 91 | -> Option [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_gdi.rs:95:16 [INFO] [stdout] | [INFO] [stdout] 95 | _hwnd: HWND, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `UINT` in this scope [INFO] [stdout] --> src/win_gdi.rs:96:15 [INFO] [stdout] | [INFO] [stdout] 96 | _msg: UINT, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WPARAM` in this scope [INFO] [stdout] --> src/win_gdi.rs:97:17 [INFO] [stdout] | [INFO] [stdout] 97 | _param: WPARAM, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPARAM` in this scope [INFO] [stdout] --> src/win_gdi.rs:98:16 [INFO] [stdout] | [INFO] [stdout] 98 | _para: LPARAM) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LRESULT` in this scope [INFO] [stdout] --> src/win_gdi.rs:99:19 [INFO] [stdout] | [INFO] [stdout] 86 | pub trait WinCls: Sized + 'static { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 99 | -> Option [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_gdi.rs:104:15 [INFO] [stdout] | [INFO] [stdout] 104 | hwnd: HWND, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `UINT` in this scope [INFO] [stdout] --> src/win_gdi.rs:105:14 [INFO] [stdout] | [INFO] [stdout] 105 | msg: UINT, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WPARAM` in this scope [INFO] [stdout] --> src/win_gdi.rs:106:16 [INFO] [stdout] | [INFO] [stdout] 106 | param: WPARAM, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPARAM` in this scope [INFO] [stdout] --> src/win_gdi.rs:107:15 [INFO] [stdout] | [INFO] [stdout] 107 | para: LPARAM) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LRESULT` in this scope [INFO] [stdout] --> src/win_gdi.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 108 | -> LRESULT [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WM_NCDESTROY` in this scope [INFO] [stdout] --> src/win_gdi.rs:111:19 [INFO] [stdout] | [INFO] [stdout] 111 | if msg == WM_NCDESTROY { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WM_CREATE` in this scope [INFO] [stdout] --> src/win_gdi.rs:124:39 [INFO] [stdout] | [INFO] [stdout] 124 | if target.is_none() && msg == WM_CREATE { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ATOM` in this scope [INFO] [stdout] --> src/win_gdi.rs:132:29 [INFO] [stdout] | [INFO] [stdout] 86 | pub trait WinCls: Sized + 'static { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 132 | fn register() -> Result [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_gdi.rs:152:13 [INFO] [stdout] | [INFO] [stdout] 152 | panel1: HWND, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_gdi.rs:153:13 [INFO] [stdout] | [INFO] [stdout] 153 | panel2: HWND, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stdout] --> src/win_gdi.rs:157:29 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn create(instance: HINSTANCE) -> Result [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_gdi.rs:157:50 [INFO] [stdout] | [INFO] [stdout] 156 | impl MainCls { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 157 | pub fn create(instance: HINSTANCE) -> Result [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_gdi.rs:159:43 [INFO] [stdout] | [INFO] [stdout] 159 | let inst = MainCls { panel1: 0 as HWND, panel2: 0 as HWND }; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_gdi.rs:159:62 [INFO] [stdout] | [INFO] [stdout] 159 | let inst = MainCls { panel1: 0 as HWND, panel2: 0 as HWND }; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WS_EX_CLIENTEDGE` in this scope [INFO] [stdout] --> src/win_gdi.rs:164:13 [INFO] [stdout] | [INFO] [stdout] 164 | WS_EX_CLIENTEDGE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WS_TILEDWINDOW` in this scope [INFO] [stdout] --> src/win_gdi.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | WS_TILEDWINDOW, [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CW_USEDEFAULT` in this scope [INFO] [stdout] --> src/win_gdi.rs:168:13 [INFO] [stdout] | [INFO] [stdout] 168 | CW_USEDEFAULT, CW_USEDEFAULT, 1024, 768, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MSG` in this scope [INFO] [stdout] --> src/win_layer.rs:501:31 [INFO] [stdout] | [INFO] [stdout] 501 | pub fn TranslateMessage(msg: &MSG) -> bool [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 crate `user32` [INFO] [stdout] --> src/win_layer.rs:502:20 [INFO] [stdout] | [INFO] [stdout] 502 | { unsafe { user32::TranslateMessage(msg as *const MSG) != 0 } } [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use TranslateMessage; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MSG` in this scope [INFO] [stdout] --> src/win_layer.rs:502:51 [INFO] [stdout] | [INFO] [stdout] 502 | { unsafe { user32::TranslateMessage(msg as *const MSG) != 0 } } [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MSG` in this scope [INFO] [stdout] --> src/win_layer.rs:505:31 [INFO] [stdout] | [INFO] [stdout] 505 | pub fn DispatchMessageW(msg: &MSG) -> isize [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 crate `user32` [INFO] [stdout] --> src/win_layer.rs:506:20 [INFO] [stdout] | [INFO] [stdout] 506 | { unsafe { user32::DispatchMessageW(msg as *const MSG) as isize } } [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use DispatchMessageW; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MSG` in this scope [INFO] [stdout] --> src/win_layer.rs:506:51 [INFO] [stdout] | [INFO] [stdout] 506 | { unsafe { user32::DispatchMessageW(msg as *const MSG) as isize } } [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:509:28 [INFO] [stdout] | [INFO] [stdout] 509 | pub fn GetClientRect(hwnd: HWND) -> Result [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/win_layer.rs:509:44 [INFO] [stdout] | [INFO] [stdout] 509 | pub fn GetClientRect(hwnd: HWND) -> Result [INFO] [stdout] | - ^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RECT` in this scope [INFO] [stdout] --> src/win_layer.rs:513:35 [INFO] [stdout] | [INFO] [stdout] 509 | pub fn GetClientRect(hwnd: HWND) -> Result [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 513 | 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 `GetClientRect` in crate `user32` [INFO] [stdout] --> src/win_layer.rs:514:17 [INFO] [stdout] | [INFO] [stdout] 514 | user32::GetClientRect(hwnd, &mut rect as *mut RECT) [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use GetClientRect; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RECT` in this scope [INFO] [stdout] --> src/win_layer.rs:514:55 [INFO] [stdout] | [INFO] [stdout] 514 | user32::GetClientRect(hwnd, &mut rect as *mut RECT) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:522:25 [INFO] [stdout] | [INFO] [stdout] 522 | pub fn BeginPaint(hwnd: HWND) -> Result<(PAINTSTRUCT, HDC), u32> [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PAINTSTRUCT` in this scope [INFO] [stdout] --> src/win_layer.rs:522:42 [INFO] [stdout] | [INFO] [stdout] 522 | pub fn BeginPaint(hwnd: HWND) -> Result<(PAINTSTRUCT, HDC), u32> [INFO] [stdout] | - ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HDC` in this scope [INFO] [stdout] --> src/win_layer.rs:522:55 [INFO] [stdout] | [INFO] [stdout] 522 | pub fn BeginPaint(hwnd: HWND) -> Result<(PAINTSTRUCT, HDC), u32> [INFO] [stdout] | - ^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PAINTSTRUCT` in this scope [INFO] [stdout] --> src/win_layer.rs:526:33 [INFO] [stdout] | [INFO] [stdout] 522 | pub fn BeginPaint(hwnd: HWND) -> Result<(PAINTSTRUCT, HDC), u32> [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 526 | ps = 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 `BeginPaint` in crate `user32` [INFO] [stdout] --> src/win_layer.rs:527:17 [INFO] [stdout] | [INFO] [stdout] 527 | user32::BeginPaint(hwnd, &mut ps as *mut PAINTSTRUCT) [INFO] [stdout] | ^^^^^^^^^^ not found in `user32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use BeginPaint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PAINTSTRUCT` in this scope [INFO] [stdout] --> src/win_layer.rs:527:50 [INFO] [stdout] | [INFO] [stdout] 527 | user32::BeginPaint(hwnd, &mut ps as *mut PAINTSTRUCT) [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_layer.rs:535:23 [INFO] [stdout] | [INFO] [stdout] 535 | pub fn EndPaint(hwnd: HWND, ps: &PAINTSTRUCT) -> Result<(), u32> [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PAINTSTRUCT` in this scope [INFO] [stdout] --> src/win_layer.rs:535:34 [INFO] [stdout] | [INFO] [stdout] 535 | pub fn EndPaint(hwnd: HWND, ps: &PAINTSTRUCT) -> Result<(), u32> [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `EndPaint` in crate `user32` [INFO] [stdout] --> src/win_layer.rs:537:35 [INFO] [stdout] | [INFO] [stdout] 537 | let result = unsafe { user32::EndPaint(hwnd, ps) }; [INFO] [stdout] | ^^^^^^^^ not found in `user32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use EndPaint; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HDC` in this scope [INFO] [stdout] --> src/win_layer.rs:544:22 [INFO] [stdout] | [INFO] [stdout] 544 | pub fn FillRect(hdc: HDC, rect: &RECT, brush: HBRUSH) [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/win_layer.rs:544:34 [INFO] [stdout] | [INFO] [stdout] 544 | pub fn FillRect(hdc: HDC, rect: &RECT, brush: HBRUSH) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HBRUSH` in this scope [INFO] [stdout] --> src/win_layer.rs:544:47 [INFO] [stdout] | [INFO] [stdout] 544 | pub fn FillRect(hdc: HDC, rect: &RECT, brush: HBRUSH) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `FillRect` in crate `user32` [INFO] [stdout] --> src/win_layer.rs:547:35 [INFO] [stdout] | [INFO] [stdout] 547 | let result = unsafe { user32::FillRect(hdc, rect, brush) }; [INFO] [stdout] | ^^^^^^^^ not found in `user32` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 9 | use FillRect; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_gdi.rs:42:24 [INFO] [stdout] | [INFO] [stdout] 42 | type HwndMap = HashMap>; [INFO] [stdout] | - ^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ATOM` in this scope [INFO] [stdout] --> src/win_gdi.rs:45:48 [INFO] [stdout] | [INFO] [stdout] 45 | static ATOM_TABLE: RefCell> = RefCell::new(HashMap::new()); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_gdi.rs:48:25 [INFO] [stdout] | [INFO] [stdout] 48 | fn lookup_hwnd(hwnd: HWND) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_gdi.rs:59:25 [INFO] [stdout] | [INFO] [stdout] 59 | fn insert_hwnd(hwnd: HWND, para: LPARAM) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPARAM` in this scope [INFO] [stdout] --> src/win_gdi.rs:59:37 [INFO] [stdout] | [INFO] [stdout] 59 | fn insert_hwnd(hwnd: HWND, para: LPARAM) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `CREATESTRUCTW` in this scope [INFO] [stdout] --> src/win_gdi.rs:66:41 [INFO] [stdout] | [INFO] [stdout] 66 | let create_ptr = para as *const CREATESTRUCTW; [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_gdi.rs:76:25 [INFO] [stdout] | [INFO] [stdout] 76 | fn remove_hwnd(hwnd: HWND) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_gdi.rs:89:16 [INFO] [stdout] | [INFO] [stdout] 89 | _hwnd: HWND, _msg: UINT, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `UINT` in this scope [INFO] [stdout] --> src/win_gdi.rs:89:28 [INFO] [stdout] | [INFO] [stdout] 89 | _hwnd: HWND, _msg: UINT, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WPARAM` in this scope [INFO] [stdout] --> src/win_gdi.rs:90:17 [INFO] [stdout] | [INFO] [stdout] 90 | _param: WPARAM, _para: LPARAM) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPARAM` in this scope [INFO] [stdout] --> src/win_gdi.rs:90:32 [INFO] [stdout] | [INFO] [stdout] 90 | _param: WPARAM, _para: LPARAM) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LRESULT` in this scope [INFO] [stdout] --> src/win_gdi.rs:91:19 [INFO] [stdout] | [INFO] [stdout] 86 | pub trait WinCls: Sized + 'static { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 91 | -> Option [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_gdi.rs:95:16 [INFO] [stdout] | [INFO] [stdout] 95 | _hwnd: HWND, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `UINT` in this scope [INFO] [stdout] --> src/win_gdi.rs:96:15 [INFO] [stdout] | [INFO] [stdout] 96 | _msg: UINT, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WPARAM` in this scope [INFO] [stdout] --> src/win_gdi.rs:97:17 [INFO] [stdout] | [INFO] [stdout] 97 | _param: WPARAM, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPARAM` in this scope [INFO] [stdout] --> src/win_gdi.rs:98:16 [INFO] [stdout] | [INFO] [stdout] 98 | _para: LPARAM) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LRESULT` in this scope [INFO] [stdout] --> src/win_gdi.rs:99:19 [INFO] [stdout] | [INFO] [stdout] 86 | pub trait WinCls: Sized + 'static { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 99 | -> Option [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_gdi.rs:104:15 [INFO] [stdout] | [INFO] [stdout] 104 | hwnd: HWND, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `UINT` in this scope [INFO] [stdout] --> src/win_gdi.rs:105:14 [INFO] [stdout] | [INFO] [stdout] 105 | msg: UINT, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WPARAM` in this scope [INFO] [stdout] --> src/win_gdi.rs:106:16 [INFO] [stdout] | [INFO] [stdout] 106 | param: WPARAM, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPARAM` in this scope [INFO] [stdout] --> src/win_gdi.rs:107:15 [INFO] [stdout] | [INFO] [stdout] 107 | para: LPARAM) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LRESULT` in this scope [INFO] [stdout] --> src/win_gdi.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 108 | -> LRESULT [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WM_NCDESTROY` in this scope [INFO] [stdout] --> src/win_gdi.rs:111:19 [INFO] [stdout] | [INFO] [stdout] 111 | if msg == WM_NCDESTROY { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WM_CREATE` in this scope [INFO] [stdout] --> src/win_gdi.rs:124:39 [INFO] [stdout] | [INFO] [stdout] 124 | if target.is_none() && msg == WM_CREATE { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ATOM` in this scope [INFO] [stdout] --> src/win_gdi.rs:132:29 [INFO] [stdout] | [INFO] [stdout] 86 | pub trait WinCls: Sized + 'static { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 132 | fn register() -> Result [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_gdi.rs:152:13 [INFO] [stdout] | [INFO] [stdout] 152 | panel1: HWND, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_gdi.rs:153:13 [INFO] [stdout] | [INFO] [stdout] 153 | panel2: HWND, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stdout] --> src/win_gdi.rs:157:29 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn create(instance: HINSTANCE) -> Result [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_gdi.rs:157:50 [INFO] [stdout] | [INFO] [stdout] 156 | impl MainCls { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 157 | pub fn create(instance: HINSTANCE) -> Result [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_gdi.rs:159:43 [INFO] [stdout] | [INFO] [stdout] 159 | let inst = MainCls { panel1: 0 as HWND, panel2: 0 as HWND }; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_gdi.rs:159:62 [INFO] [stdout] | [INFO] [stdout] 159 | let inst = MainCls { panel1: 0 as HWND, panel2: 0 as HWND }; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WS_EX_CLIENTEDGE` in this scope [INFO] [stdout] --> src/win_gdi.rs:164:13 [INFO] [stdout] | [INFO] [stdout] 164 | WS_EX_CLIENTEDGE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WS_TILEDWINDOW` in this scope [INFO] [stdout] --> src/win_gdi.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | WS_TILEDWINDOW, [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CW_USEDEFAULT` in this scope [INFO] [stdout] --> src/win_gdi.rs:168:13 [INFO] [stdout] | [INFO] [stdout] 168 | CW_USEDEFAULT, CW_USEDEFAULT, 1024, 768, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CW_USEDEFAULT` in this scope [INFO] [stdout] --> src/win_gdi.rs:168:28 [INFO] [stdout] | [INFO] [stdout] 168 | CW_USEDEFAULT, CW_USEDEFAULT, 1024, 768, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/win_gdi.rs:169:52 [INFO] [stdout] | [INFO] [stdout] 169 | None, None, instance, Some(inst_ptr as LPVOID))); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ATOM` in this scope [INFO] [stdout] --> src/win_gdi.rs:182:30 [INFO] [stdout] | [INFO] [stdout] 181 | impl WinCls for MainCls { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 182 | fn register () -> Result [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `WNDCLASSEXW` in this scope [INFO] [stdout] --> src/win_gdi.rs:184:23 [INFO] [stdout] | [INFO] [stdout] 184 | let wnd_cls = WNDCLASSEXW { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WNDCLASSEXW` in this scope [INFO] [stdout] --> src/win_gdi.rs:185:41 [INFO] [stdout] | [INFO] [stdout] 181 | impl WinCls for MainCls { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 185 | cbSize: std::mem::size_of::() as UINT, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `UINT` in this scope [INFO] [stdout] --> src/win_gdi.rs:185:59 [INFO] [stdout] | [INFO] [stdout] 185 | cbSize: std::mem::size_of::() as UINT, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CS_HREDRAW` in this scope [INFO] [stdout] --> src/win_gdi.rs:186:20 [INFO] [stdout] | [INFO] [stdout] 186 | style: CS_HREDRAW | CS_VREDRAW, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CS_VREDRAW` in this scope [INFO] [stdout] --> src/win_gdi.rs:186:33 [INFO] [stdout] | [INFO] [stdout] 186 | style: CS_HREDRAW | CS_VREDRAW, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stdout] --> src/win_gdi.rs:190:29 [INFO] [stdout] | [INFO] [stdout] 190 | hInstance: 0 as HINSTANCE, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stdout] --> src/win_gdi.rs:191:40 [INFO] [stdout] | [INFO] [stdout] 191 | hIcon: try!(LoadIconW(0 as HINSTANCE, RC_IDI_APPLICATION)), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stdout] --> src/win_gdi.rs:192:44 [INFO] [stdout] | [INFO] [stdout] 192 | hCursor: try!(LoadCursorW(0 as HINSTANCE, RC_IDC_ARROW)), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `COLOR_WINDOW` in crate `winapi` [INFO] [stdout] --> src/win_gdi.rs:193:37 [INFO] [stdout] | [INFO] [stdout] 193 | hbrBackground: (winapi::COLOR_WINDOW + 1) as HBRUSH, [INFO] [stdout] | ^^^^^^^^^^^^ not found in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HBRUSH` in this scope [INFO] [stdout] --> src/win_gdi.rs:193:58 [INFO] [stdout] | [INFO] [stdout] 193 | hbrBackground: (winapi::COLOR_WINDOW + 1) as HBRUSH, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stdout] --> src/win_gdi.rs:196:42 [INFO] [stdout] | [INFO] [stdout] 196 | hIconSm: try!(LoadIconW(0 as HINSTANCE, RC_IDI_APPLICATION)), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_gdi.rs:203:16 [INFO] [stdout] | [INFO] [stdout] 203 | _hwnd: HWND, msg: UINT, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `UINT` in this scope [INFO] [stdout] --> src/win_gdi.rs:203:27 [INFO] [stdout] | [INFO] [stdout] 203 | _hwnd: HWND, msg: UINT, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WPARAM` in this scope [INFO] [stdout] --> src/win_gdi.rs:204:17 [INFO] [stdout] | [INFO] [stdout] 204 | _param: WPARAM, para: LPARAM) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPARAM` in this scope [INFO] [stdout] --> src/win_gdi.rs:204:31 [INFO] [stdout] | [INFO] [stdout] 204 | _param: WPARAM, para: LPARAM) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LRESULT` in this scope [INFO] [stdout] --> src/win_gdi.rs:205:19 [INFO] [stdout] | [INFO] [stdout] 181 | impl WinCls for MainCls { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 205 | -> Option [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MINMAXINFO` in this scope [INFO] [stdout] --> src/win_gdi.rs:209:55 [INFO] [stdout] | [INFO] [stdout] 209 | let mmi = unsafe { &mut*(para as *mut MINMAXINFO) }; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_gdi.rs:220:15 [INFO] [stdout] | [INFO] [stdout] 220 | hwnd: HWND, msg: UINT, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `UINT` in this scope [INFO] [stdout] --> src/win_gdi.rs:220:26 [INFO] [stdout] | [INFO] [stdout] 220 | hwnd: HWND, msg: UINT, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WPARAM` in this scope [INFO] [stdout] --> src/win_gdi.rs:221:17 [INFO] [stdout] | [INFO] [stdout] 221 | _param: WPARAM, para: LPARAM) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPARAM` in this scope [INFO] [stdout] --> src/win_gdi.rs:221:31 [INFO] [stdout] | [INFO] [stdout] 221 | _param: WPARAM, para: LPARAM) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LRESULT` in this scope [INFO] [stdout] --> src/win_gdi.rs:222:19 [INFO] [stdout] | [INFO] [stdout] 181 | impl WinCls for MainCls { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 222 | -> Option [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/win_gdi.rs:232:33 [INFO] [stdout] | [INFO] [stdout] 232 | let flags = 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/win_gdi.rs:232:50 [INFO] [stdout] | [INFO] [stdout] 232 | let flags = SWP_NOACTIVATE | SWP_NOZORDER; [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LRESULT` in this scope [INFO] [stdout] --> src/win_gdi.rs:242:41 [INFO] [stdout] | [INFO] [stdout] 242 | Err(x) => Some(x as LRESULT), [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `COLOR_WINDOW` in this scope [INFO] [stdout] --> src/win_gdi.rs:248:48 [INFO] [stdout] | [INFO] [stdout] 248 | try!(FillRect(hdc, &rect, (COLOR_WINDOW + 2) as HBRUSH)); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HBRUSH` in this scope [INFO] [stdout] --> src/win_gdi.rs:248:69 [INFO] [stdout] | [INFO] [stdout] 248 | try!(FillRect(hdc, &rect, (COLOR_WINDOW + 2) as HBRUSH)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LRESULT` in this scope [INFO] [stdout] --> src/win_gdi.rs:253:41 [INFO] [stdout] | [INFO] [stdout] 253 | Err(x) => Some(x as LRESULT), [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CW_USEDEFAULT` in this scope [INFO] [stdout] --> src/win_gdi.rs:168:28 [INFO] [stdout] | [INFO] [stdout] 168 | CW_USEDEFAULT, CW_USEDEFAULT, 1024, 768, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/win_gdi.rs:169:52 [INFO] [stdout] | [INFO] [stdout] 169 | None, None, instance, Some(inst_ptr as LPVOID))); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ATOM` in this scope [INFO] [stdout] --> src/win_gdi.rs:182:30 [INFO] [stdout] | [INFO] [stdout] 181 | impl WinCls for MainCls { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 182 | fn register () -> Result [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `WNDCLASSEXW` in this scope [INFO] [stdout] --> src/win_gdi.rs:184:23 [INFO] [stdout] | [INFO] [stdout] 184 | let wnd_cls = WNDCLASSEXW { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WNDCLASSEXW` in this scope [INFO] [stdout] --> src/win_gdi.rs:185:41 [INFO] [stdout] | [INFO] [stdout] 181 | impl WinCls for MainCls { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 185 | cbSize: std::mem::size_of::() as UINT, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `UINT` in this scope [INFO] [stdout] --> src/win_gdi.rs:185:59 [INFO] [stdout] | [INFO] [stdout] 185 | cbSize: std::mem::size_of::() as UINT, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CS_HREDRAW` in this scope [INFO] [stdout] --> src/win_gdi.rs:186:20 [INFO] [stdout] | [INFO] [stdout] 186 | style: CS_HREDRAW | CS_VREDRAW, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CS_VREDRAW` in this scope [INFO] [stdout] --> src/win_gdi.rs:186:33 [INFO] [stdout] | [INFO] [stdout] 186 | style: CS_HREDRAW | CS_VREDRAW, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stdout] --> src/win_gdi.rs:190:29 [INFO] [stdout] | [INFO] [stdout] 190 | hInstance: 0 as HINSTANCE, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stdout] --> src/win_gdi.rs:191:40 [INFO] [stdout] | [INFO] [stdout] 191 | hIcon: try!(LoadIconW(0 as HINSTANCE, RC_IDI_APPLICATION)), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stdout] --> src/win_gdi.rs:192:44 [INFO] [stdout] | [INFO] [stdout] 192 | hCursor: try!(LoadCursorW(0 as HINSTANCE, RC_IDC_ARROW)), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `COLOR_WINDOW` in crate `winapi` [INFO] [stdout] --> src/win_gdi.rs:193:37 [INFO] [stdout] | [INFO] [stdout] 193 | hbrBackground: (winapi::COLOR_WINDOW + 1) as HBRUSH, [INFO] [stdout] | ^^^^^^^^^^^^ not found in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HBRUSH` in this scope [INFO] [stdout] --> src/win_gdi.rs:193:58 [INFO] [stdout] | [INFO] [stdout] 193 | hbrBackground: (winapi::COLOR_WINDOW + 1) as HBRUSH, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stdout] --> src/win_gdi.rs:196:42 [INFO] [stdout] | [INFO] [stdout] 196 | hIconSm: try!(LoadIconW(0 as HINSTANCE, RC_IDI_APPLICATION)), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_gdi.rs:203:16 [INFO] [stdout] | [INFO] [stdout] 203 | _hwnd: HWND, msg: UINT, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `UINT` in this scope [INFO] [stdout] --> src/win_gdi.rs:203:27 [INFO] [stdout] | [INFO] [stdout] 203 | _hwnd: HWND, msg: UINT, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WPARAM` in this scope [INFO] [stdout] --> src/win_gdi.rs:204:17 [INFO] [stdout] | [INFO] [stdout] 204 | _param: WPARAM, para: LPARAM) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPARAM` in this scope [INFO] [stdout] --> src/win_gdi.rs:204:31 [INFO] [stdout] | [INFO] [stdout] 204 | _param: WPARAM, para: LPARAM) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LRESULT` in this scope [INFO] [stdout] --> src/win_gdi.rs:205:19 [INFO] [stdout] | [INFO] [stdout] 181 | impl WinCls for MainCls { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 205 | -> Option [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MINMAXINFO` in this scope [INFO] [stdout] --> src/win_gdi.rs:209:55 [INFO] [stdout] | [INFO] [stdout] 209 | let mmi = unsafe { &mut*(para as *mut MINMAXINFO) }; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_gdi.rs:220:15 [INFO] [stdout] | [INFO] [stdout] 220 | hwnd: HWND, msg: UINT, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `UINT` in this scope [INFO] [stdout] --> src/win_gdi.rs:220:26 [INFO] [stdout] | [INFO] [stdout] 220 | hwnd: HWND, msg: UINT, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WPARAM` in this scope [INFO] [stdout] --> src/win_gdi.rs:221:17 [INFO] [stdout] | [INFO] [stdout] 221 | _param: WPARAM, para: LPARAM) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPARAM` in this scope [INFO] [stdout] --> src/win_gdi.rs:221:31 [INFO] [stdout] | [INFO] [stdout] 221 | _param: WPARAM, para: LPARAM) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LRESULT` in this scope [INFO] [stdout] --> src/win_gdi.rs:222:19 [INFO] [stdout] | [INFO] [stdout] 181 | impl WinCls for MainCls { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 222 | -> Option [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/win_gdi.rs:232:33 [INFO] [stdout] | [INFO] [stdout] 232 | let flags = 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/win_gdi.rs:232:50 [INFO] [stdout] | [INFO] [stdout] 232 | let flags = SWP_NOACTIVATE | SWP_NOZORDER; [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LRESULT` in this scope [INFO] [stdout] --> src/win_gdi.rs:242:41 [INFO] [stdout] | [INFO] [stdout] 242 | Err(x) => Some(x as LRESULT), [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `COLOR_WINDOW` in this scope [INFO] [stdout] --> src/win_gdi.rs:248:48 [INFO] [stdout] | [INFO] [stdout] 248 | try!(FillRect(hdc, &rect, (COLOR_WINDOW + 2) as HBRUSH)); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HBRUSH` in this scope [INFO] [stdout] --> src/win_gdi.rs:248:69 [INFO] [stdout] | [INFO] [stdout] 248 | try!(FillRect(hdc, &rect, (COLOR_WINDOW + 2) as HBRUSH)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LRESULT` in this scope [INFO] [stdout] --> src/win_gdi.rs:253:41 [INFO] [stdout] | [INFO] [stdout] 253 | Err(x) => Some(x as LRESULT), [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DRAWITEMSTRUCT` in this scope [INFO] [stdout] --> src/win_gdi.rs:258:62 [INFO] [stdout] | [INFO] [stdout] 258 | let draw_struct = unsafe { &*(para as *const DRAWITEMSTRUCT) }; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `COLOR_WINDOW` in this scope [INFO] [stdout] --> src/win_gdi.rs:261:51 [INFO] [stdout] | [INFO] [stdout] 261 | FillRect(draw_struct.hDC, &rect, (COLOR_WINDOW + 0) as HBRUSH).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HBRUSH` in this scope [INFO] [stdout] --> src/win_gdi.rs:261:72 [INFO] [stdout] | [INFO] [stdout] 261 | FillRect(draw_struct.hDC, &rect, (COLOR_WINDOW + 0) as HBRUSH).unwrap(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stdout] --> src/win_gdi.rs:298:29 [INFO] [stdout] | [INFO] [stdout] 298 | pub fn create(instance: HINSTANCE, parent: HWND) -> Result [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_gdi.rs:298:48 [INFO] [stdout] | [INFO] [stdout] 298 | pub fn create(instance: HINSTANCE, parent: HWND) -> Result [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_gdi.rs:298:64 [INFO] [stdout] | [INFO] [stdout] 297 | impl FilePanelCls { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 298 | pub fn create(instance: HINSTANCE, parent: HWND) -> Result [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WS_VISIBLE` in this scope [INFO] [stdout] --> src/win_gdi.rs:308:13 [INFO] [stdout] | [INFO] [stdout] 308 | WS_VISIBLE | WS_CHILD | WS_BORDER, [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/win_gdi.rs:308:26 [INFO] [stdout] | [INFO] [stdout] 308 | WS_VISIBLE | WS_CHILD | WS_BORDER, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WS_BORDER` in this scope [INFO] [stdout] --> src/win_gdi.rs:308:37 [INFO] [stdout] | [INFO] [stdout] 308 | WS_VISIBLE | WS_CHILD | WS_BORDER, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/win_gdi.rs:310:60 [INFO] [stdout] | [INFO] [stdout] 310 | Some(parent), None, instance, Some(inst_ptr as LPVOID))); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_gdi.rs:318:15 [INFO] [stdout] | [INFO] [stdout] 318 | hwnd: HWND, msg: UINT, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `UINT` in this scope [INFO] [stdout] --> src/win_gdi.rs:318:26 [INFO] [stdout] | [INFO] [stdout] 318 | hwnd: HWND, msg: UINT, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WPARAM` in this scope [INFO] [stdout] --> src/win_gdi.rs:319:17 [INFO] [stdout] | [INFO] [stdout] 319 | _param: WPARAM, _para: LPARAM) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPARAM` in this scope [INFO] [stdout] --> src/win_gdi.rs:319:32 [INFO] [stdout] | [INFO] [stdout] 319 | _param: WPARAM, _para: LPARAM) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LRESULT` in this scope [INFO] [stdout] --> src/win_gdi.rs:320:19 [INFO] [stdout] | [INFO] [stdout] 315 | impl WinCls for FilePanelCls { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 320 | -> Option [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `COLOR_WINDOW` in this scope [INFO] [stdout] --> src/win_gdi.rs:326:48 [INFO] [stdout] | [INFO] [stdout] 326 | try!(FillRect(hdc, &rect, (COLOR_WINDOW + 0) as HBRUSH)); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HBRUSH` in this scope [INFO] [stdout] --> src/win_gdi.rs:326:69 [INFO] [stdout] | [INFO] [stdout] 326 | try!(FillRect(hdc, &rect, (COLOR_WINDOW + 0) as HBRUSH)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TRANSPARENT` in this scope [INFO] [stdout] --> src/win_gdi.rs:327:41 [INFO] [stdout] | [INFO] [stdout] 327 | try!(SetBkMode(hdc, TRANSPARENT)); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `RECT` in this scope [INFO] [stdout] --> src/win_gdi.rs:329:32 [INFO] [stdout] | [INFO] [stdout] 329 | let rect = RECT { left: 0, right: 200, top: 0, bottom: 20 }; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LRESULT` in this scope [INFO] [stdout] --> src/win_gdi.rs:335:41 [INFO] [stdout] | [INFO] [stdout] 335 | Err(x) => Some(x as LRESULT), [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ATOM` in this scope [INFO] [stdout] --> src/win_gdi.rs:341:30 [INFO] [stdout] | [INFO] [stdout] 315 | impl WinCls for FilePanelCls { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 341 | fn register () -> Result [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `WNDCLASSEXW` in this scope [INFO] [stdout] --> src/win_gdi.rs:343:23 [INFO] [stdout] | [INFO] [stdout] 343 | let wnd_cls = WNDCLASSEXW { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WNDCLASSEXW` in this scope [INFO] [stdout] --> src/win_gdi.rs:344:41 [INFO] [stdout] | [INFO] [stdout] 315 | impl WinCls for FilePanelCls { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 344 | cbSize: std::mem::size_of::() as UINT, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `UINT` in this scope [INFO] [stdout] --> src/win_gdi.rs:344:59 [INFO] [stdout] | [INFO] [stdout] 344 | cbSize: std::mem::size_of::() as UINT, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CS_HREDRAW` in this scope [INFO] [stdout] --> src/win_gdi.rs:345:20 [INFO] [stdout] | [INFO] [stdout] 345 | style: CS_HREDRAW | CS_VREDRAW, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CS_VREDRAW` in this scope [INFO] [stdout] --> src/win_gdi.rs:345:33 [INFO] [stdout] | [INFO] [stdout] 345 | style: CS_HREDRAW | CS_VREDRAW, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stdout] --> src/win_gdi.rs:349:29 [INFO] [stdout] | [INFO] [stdout] 349 | hInstance: 0 as HINSTANCE, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stdout] --> src/win_gdi.rs:350:40 [INFO] [stdout] | [INFO] [stdout] 350 | hIcon: try!(LoadIconW(0 as HINSTANCE, RC_IDI_APPLICATION)), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stdout] --> src/win_gdi.rs:351:44 [INFO] [stdout] | [INFO] [stdout] 351 | hCursor: try!(LoadCursorW(0 as HINSTANCE, RC_IDC_ARROW)), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `COLOR_WINDOW` in crate `winapi` [INFO] [stdout] --> src/win_gdi.rs:352:37 [INFO] [stdout] | [INFO] [stdout] 352 | hbrBackground: (winapi::COLOR_WINDOW + 1) as HBRUSH, [INFO] [stdout] | ^^^^^^^^^^^^ not found in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HBRUSH` in this scope [INFO] [stdout] --> src/win_gdi.rs:352:58 [INFO] [stdout] | [INFO] [stdout] 352 | hbrBackground: (winapi::COLOR_WINDOW + 1) as HBRUSH, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stdout] --> src/win_gdi.rs:355:42 [INFO] [stdout] | [INFO] [stdout] 355 | hIconSm: try!(LoadIconW(0 as HINSTANCE, RC_IDI_APPLICATION)), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `UINT` in this scope [INFO] [stdout] --> src/messages.rs:2:22 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn msg_name(msg: UINT) -> &'static str { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stdout] --> src/main.rs:15:15 [INFO] [stdout] | [INFO] [stdout] 15 | instance: HINSTANCE, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stdout] --> src/main.rs:16:21 [INFO] [stdout] | [INFO] [stdout] 16 | _prev_instance: HINSTANCE, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/main.rs:18:16 [INFO] [stdout] | [INFO] [stdout] 18 | _cmd_show: c_int) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 5 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/main.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | -> c_int [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 5 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/main.rs:21:59 [INFO] [stdout] | [INFO] [stdout] 21 | match our_main(instance) { Ok(_) => 0, Err(x) => x as c_int } [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 5 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/main.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | _argc: c_int, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 5 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/main.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | -> c_int [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 5 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stdout] --> src/main.rs:31:58 [INFO] [stdout] | [INFO] [stdout] 31 | let instance = GetModuleHandleW(None).unwrap_or(0 as HINSTANCE); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/main.rs:32:59 [INFO] [stdout] | [INFO] [stdout] 32 | match our_main(instance) { Ok(_) => 0, Err(x) => x as c_int } [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 5 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stdout] --> src/main.rs:35:23 [INFO] [stdout] | [INFO] [stdout] 35 | fn our_main(instance: HINSTANCE) -> Result<(), u32> [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SW_SHOWDEFAULT` in this scope [INFO] [stdout] --> src/main.rs:41:30 [INFO] [stdout] | [INFO] [stdout] 41 | let _ = ShowWindow(hwnd, SW_SHOWDEFAULT); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `winapi::*` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `winapi::*` [INFO] [stdout] --> src/win_layer.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `::messages` [INFO] [stdout] --> src/win_gdi.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use ::messages; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `winapi::*` [INFO] [stdout] --> src/win_gdi.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use winapi::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> src/win_gdi.rs:32:1 [INFO] [stdout] | [INFO] [stdout] 32 | / macro_rules! dbg_block { [INFO] [stdout] 33 | | ($x:expr) => { let _guard = DebugBlock::start($x); } [INFO] [stdout] 34 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/win_gdi.rs:42:34 [INFO] [stdout] | [INFO] [stdout] 42 | type HwndMap = HashMap>; [INFO] [stdout] | ^^^ help: use `dyn`: `dyn Any` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/win_gdi.rs:64:22 [INFO] [stdout] | [INFO] [stdout] 64 | let box_any: Box; [INFO] [stdout] | ^^^ help: use `dyn`: `dyn Any` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/win_gdi.rs:143:28 [INFO] [stdout] | [INFO] [stdout] 143 | let atom = try!(Self::register()); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/win_gdi.rs:160:22 [INFO] [stdout] | [INFO] [stdout] 160 | let cls_id = try!(Self::get_cls_id()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/win_gdi.rs:163:20 [INFO] [stdout] | [INFO] [stdout] 163 | let hwnd = try!(CreateWindowExW( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/win_gdi.rs:171:22 [INFO] [stdout] | [INFO] [stdout] 171 | let panel1 = try!(FilePanelCls::create(instance, hwnd)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/win_gdi.rs:172:22 [INFO] [stdout] | [INFO] [stdout] 172 | let panel2 = try!(FilePanelCls::create(instance, hwnd)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/win_gdi.rs:162:71 [INFO] [stdout] | [INFO] [stdout] 162 | let inst_ptr = Box::into_raw(Box::new(inst_rc.clone()) as Box); [INFO] [stdout] | ^^^ help: use `dyn`: `dyn Any` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/win_gdi.rs:191:20 [INFO] [stdout] | [INFO] [stdout] 191 | hIcon: try!(LoadIconW(0 as HINSTANCE, RC_IDI_APPLICATION)), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/win_gdi.rs:192:22 [INFO] [stdout] | [INFO] [stdout] 192 | hCursor: try!(LoadCursorW(0 as HINSTANCE, RC_IDC_ARROW)), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/win_gdi.rs:196:22 [INFO] [stdout] | [INFO] [stdout] 196 | hIconSm: try!(LoadIconW(0 as HINSTANCE, RC_IDI_APPLICATION)), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/win_gdi.rs:233:36 [INFO] [stdout] | [INFO] [stdout] 233 | let mut hdwp = try!(BeginDeferWindowPos(2)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/win_gdi.rs:234:28 [INFO] [stdout] | [INFO] [stdout] 234 | hdwp = try!(DeferWindowPos(hdwp, self.panel1, None, 0, 0, panel_width, height, flags)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/win_gdi.rs:235:28 [INFO] [stdout] | [INFO] [stdout] 235 | hdwp = try!(DeferWindowPos(hdwp, self.panel2, None, panel2x, 0, panel_width, height, flags)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/win_gdi.rs:236:21 [INFO] [stdout] | [INFO] [stdout] 236 | try!(EndDeferWindowPos(hdwp)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/win_gdi.rs:237:21 [INFO] [stdout] | [INFO] [stdout] 237 | try!(InvalidateRect(hwnd, &rect, true)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/win_gdi.rs:247:32 [INFO] [stdout] | [INFO] [stdout] 247 | let rect = try!(GetClientRect(hwnd)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/win_gdi.rs:248:21 [INFO] [stdout] | [INFO] [stdout] 248 | try!(FillRect(hdc, &rect, (COLOR_WINDOW + 2) as HBRUSH)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/win_gdi.rs:301:22 [INFO] [stdout] | [INFO] [stdout] 301 | let cls_id = try!(Self::get_cls_id()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/win_gdi.rs:304:20 [INFO] [stdout] | [INFO] [stdout] 304 | let hwnd = try!(CreateWindowExW( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/win_gdi.rs:303:63 [INFO] [stdout] | [INFO] [stdout] 303 | let inst_ptr = Box::into_raw(Box::new(inst_rc) as Box); [INFO] [stdout] | ^^^ help: use `dyn`: `dyn Any` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/win_gdi.rs:325:32 [INFO] [stdout] | [INFO] [stdout] 325 | let rect = try!(GetClientRect(hwnd)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/win_gdi.rs:326:21 [INFO] [stdout] | [INFO] [stdout] 326 | try!(FillRect(hdc, &rect, (COLOR_WINDOW + 0) as HBRUSH)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/win_gdi.rs:327:21 [INFO] [stdout] | [INFO] [stdout] 327 | try!(SetBkMode(hdc, TRANSPARENT)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/win_gdi.rs:328:21 [INFO] [stdout] | [INFO] [stdout] 328 | try!(TextOutW(hdc, 0, 0, &wstr("test"))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/win_gdi.rs:330:21 [INFO] [stdout] | [INFO] [stdout] 330 | try!(DrawFocusRect(hdc, &rect)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/win_gdi.rs:350:20 [INFO] [stdout] | [INFO] [stdout] 350 | hIcon: try!(LoadIconW(0 as HINSTANCE, RC_IDI_APPLICATION)), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/win_gdi.rs:351:22 [INFO] [stdout] | [INFO] [stdout] 351 | hCursor: try!(LoadCursorW(0 as HINSTANCE, RC_IDC_ARROW)), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/win_gdi.rs:355:22 [INFO] [stdout] | [INFO] [stdout] 355 | hIconSm: try!(LoadIconW(0 as HINSTANCE, RC_IDI_APPLICATION)), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `winapi::*` [INFO] [stdout] --> src/messages.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use winapi::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:40:16 [INFO] [stdout] | [INFO] [stdout] 40 | let hwnd = try!(win_gdi::MainCls::create(instance)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | let _ = try!(UpdateWindow(hwnd)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:57:19 [INFO] [stdout] | [INFO] [stdout] 57 | let msg = try!(rmsg); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DRAWITEMSTRUCT` in this scope [INFO] [stdout] --> src/win_gdi.rs:258:62 [INFO] [stdout] | [INFO] [stdout] 258 | let draw_struct = unsafe { &*(para as *const DRAWITEMSTRUCT) }; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `COLOR_WINDOW` in this scope [INFO] [stdout] --> src/win_gdi.rs:261:51 [INFO] [stdout] | [INFO] [stdout] 261 | FillRect(draw_struct.hDC, &rect, (COLOR_WINDOW + 0) as HBRUSH).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HBRUSH` in this scope [INFO] [stdout] --> src/win_gdi.rs:261:72 [INFO] [stdout] | [INFO] [stdout] 261 | FillRect(draw_struct.hDC, &rect, (COLOR_WINDOW + 0) as HBRUSH).unwrap(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stdout] --> src/win_gdi.rs:298:29 [INFO] [stdout] | [INFO] [stdout] 298 | pub fn create(instance: HINSTANCE, parent: HWND) -> Result [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_gdi.rs:298:48 [INFO] [stdout] | [INFO] [stdout] 298 | pub fn create(instance: HINSTANCE, parent: HWND) -> Result [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_gdi.rs:298:64 [INFO] [stdout] | [INFO] [stdout] 297 | impl FilePanelCls { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 298 | pub fn create(instance: HINSTANCE, parent: HWND) -> Result [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WS_VISIBLE` in this scope [INFO] [stdout] --> src/win_gdi.rs:308:13 [INFO] [stdout] | [INFO] [stdout] 308 | WS_VISIBLE | WS_CHILD | WS_BORDER, [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/win_gdi.rs:308:26 [INFO] [stdout] | [INFO] [stdout] 308 | WS_VISIBLE | WS_CHILD | WS_BORDER, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WS_BORDER` in this scope [INFO] [stdout] --> src/win_gdi.rs:308:37 [INFO] [stdout] | [INFO] [stdout] 308 | WS_VISIBLE | WS_CHILD | WS_BORDER, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/win_gdi.rs:310:60 [INFO] [stdout] | [INFO] [stdout] 310 | Some(parent), None, instance, Some(inst_ptr as LPVOID))); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win_gdi.rs:318:15 [INFO] [stdout] | [INFO] [stdout] 318 | hwnd: HWND, msg: UINT, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `UINT` in this scope [INFO] [stdout] --> src/win_gdi.rs:318:26 [INFO] [stdout] | [INFO] [stdout] 318 | hwnd: HWND, msg: UINT, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WPARAM` in this scope [INFO] [stdout] --> src/win_gdi.rs:319:17 [INFO] [stdout] | [INFO] [stdout] 319 | _param: WPARAM, _para: LPARAM) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPARAM` in this scope [INFO] [stdout] --> src/win_gdi.rs:319:32 [INFO] [stdout] | [INFO] [stdout] 319 | _param: WPARAM, _para: LPARAM) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LRESULT` in this scope [INFO] [stdout] --> src/win_gdi.rs:320:19 [INFO] [stdout] | [INFO] [stdout] 315 | impl WinCls for FilePanelCls { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 320 | -> Option [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `COLOR_WINDOW` in this scope [INFO] [stdout] --> src/win_gdi.rs:326:48 [INFO] [stdout] | [INFO] [stdout] 326 | try!(FillRect(hdc, &rect, (COLOR_WINDOW + 0) as HBRUSH)); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HBRUSH` in this scope [INFO] [stdout] --> src/win_gdi.rs:326:69 [INFO] [stdout] | [INFO] [stdout] 326 | try!(FillRect(hdc, &rect, (COLOR_WINDOW + 0) as HBRUSH)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TRANSPARENT` in this scope [INFO] [stdout] --> src/win_gdi.rs:327:41 [INFO] [stdout] | [INFO] [stdout] 327 | try!(SetBkMode(hdc, TRANSPARENT)); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `RECT` in this scope [INFO] [stdout] --> src/win_gdi.rs:329:32 [INFO] [stdout] | [INFO] [stdout] 329 | let rect = RECT { left: 0, right: 200, top: 0, bottom: 20 }; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LRESULT` in this scope [INFO] [stdout] --> src/win_gdi.rs:335:41 [INFO] [stdout] | [INFO] [stdout] 335 | Err(x) => Some(x as LRESULT), [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ATOM` in this scope [INFO] [stdout] --> src/win_gdi.rs:341:30 [INFO] [stdout] | [INFO] [stdout] 315 | impl WinCls for FilePanelCls { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 341 | fn register () -> Result [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `WNDCLASSEXW` in this scope [INFO] [stdout] --> src/win_gdi.rs:343:23 [INFO] [stdout] | [INFO] [stdout] 343 | let wnd_cls = WNDCLASSEXW { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WNDCLASSEXW` in this scope [INFO] [stdout] --> src/win_gdi.rs:344:41 [INFO] [stdout] | [INFO] [stdout] 315 | impl WinCls for FilePanelCls { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 344 | cbSize: std::mem::size_of::() as UINT, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `UINT` in this scope [INFO] [stdout] --> src/win_gdi.rs:344:59 [INFO] [stdout] | [INFO] [stdout] 344 | cbSize: std::mem::size_of::() as UINT, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CS_HREDRAW` in this scope [INFO] [stdout] --> src/win_gdi.rs:345:20 [INFO] [stdout] | [INFO] [stdout] 345 | style: CS_HREDRAW | CS_VREDRAW, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CS_VREDRAW` in this scope [INFO] [stdout] --> src/win_gdi.rs:345:33 [INFO] [stdout] | [INFO] [stdout] 345 | style: CS_HREDRAW | CS_VREDRAW, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stdout] --> src/win_gdi.rs:349:29 [INFO] [stdout] | [INFO] [stdout] 349 | hInstance: 0 as HINSTANCE, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stdout] --> src/win_gdi.rs:350:40 [INFO] [stdout] | [INFO] [stdout] 350 | hIcon: try!(LoadIconW(0 as HINSTANCE, RC_IDI_APPLICATION)), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stdout] --> src/win_gdi.rs:351:44 [INFO] [stdout] | [INFO] [stdout] 351 | hCursor: try!(LoadCursorW(0 as HINSTANCE, RC_IDC_ARROW)), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `COLOR_WINDOW` in crate `winapi` [INFO] [stdout] --> src/win_gdi.rs:352:37 [INFO] [stdout] | [INFO] [stdout] 352 | hbrBackground: (winapi::COLOR_WINDOW + 1) as HBRUSH, [INFO] [stdout] | ^^^^^^^^^^^^ not found in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HBRUSH` in this scope [INFO] [stdout] --> src/win_gdi.rs:352:58 [INFO] [stdout] | [INFO] [stdout] 352 | hbrBackground: (winapi::COLOR_WINDOW + 1) as HBRUSH, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stdout] --> src/win_gdi.rs:355:42 [INFO] [stdout] | [INFO] [stdout] 355 | hIconSm: try!(LoadIconW(0 as HINSTANCE, RC_IDI_APPLICATION)), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `UINT` in this scope [INFO] [stdout] --> src/messages.rs:2:22 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn msg_name(msg: UINT) -> &'static str { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stdout] --> src/main.rs:15:15 [INFO] [stdout] | [INFO] [stdout] 15 | instance: HINSTANCE, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stdout] --> src/main.rs:16:21 [INFO] [stdout] | [INFO] [stdout] 16 | _prev_instance: HINSTANCE, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/main.rs:18:16 [INFO] [stdout] | [INFO] [stdout] 18 | _cmd_show: c_int) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 5 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/main.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | -> c_int [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 5 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/main.rs:21:59 [INFO] [stdout] | [INFO] [stdout] 21 | match our_main(instance) { Ok(_) => 0, Err(x) => x as c_int } [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 5 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/main.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | _argc: c_int, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 5 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/main.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | -> c_int [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 5 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stdout] --> src/main.rs:31:58 [INFO] [stdout] | [INFO] [stdout] 31 | let instance = GetModuleHandleW(None).unwrap_or(0 as HINSTANCE); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/main.rs:32:59 [INFO] [stdout] | [INFO] [stdout] 32 | match our_main(instance) { Ok(_) => 0, Err(x) => x as c_int } [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 5 | use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stdout] --> src/main.rs:35:23 [INFO] [stdout] | [INFO] [stdout] 35 | fn our_main(instance: HINSTANCE) -> Result<(), u32> [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SW_SHOWDEFAULT` in this scope [INFO] [stdout] --> src/main.rs:41:30 [INFO] [stdout] | [INFO] [stdout] 41 | let _ = ShowWindow(hwnd, SW_SHOWDEFAULT); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `winapi::*` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `winapi::*` [INFO] [stdout] --> src/win_layer.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `::messages` [INFO] [stdout] --> src/win_gdi.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use ::messages; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `winapi::*` [INFO] [stdout] --> src/win_gdi.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use winapi::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> src/win_gdi.rs:32:1 [INFO] [stdout] | [INFO] [stdout] 32 | / macro_rules! dbg_block { [INFO] [stdout] 33 | | ($x:expr) => { let _guard = DebugBlock::start($x); } [INFO] [stdout] 34 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/win_gdi.rs:42:34 [INFO] [stdout] | [INFO] [stdout] 42 | type HwndMap = HashMap>; [INFO] [stdout] | ^^^ help: use `dyn`: `dyn Any` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/win_gdi.rs:64:22 [INFO] [stdout] | [INFO] [stdout] 64 | let box_any: Box; [INFO] [stdout] | ^^^ help: use `dyn`: `dyn Any` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/win_gdi.rs:143:28 [INFO] [stdout] | [INFO] [stdout] 143 | let atom = try!(Self::register()); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/win_gdi.rs:160:22 [INFO] [stdout] | [INFO] [stdout] 160 | let cls_id = try!(Self::get_cls_id()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/win_gdi.rs:163:20 [INFO] [stdout] | [INFO] [stdout] 163 | let hwnd = try!(CreateWindowExW( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/win_gdi.rs:171:22 [INFO] [stdout] | [INFO] [stdout] 171 | let panel1 = try!(FilePanelCls::create(instance, hwnd)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/win_gdi.rs:172:22 [INFO] [stdout] | [INFO] [stdout] 172 | let panel2 = try!(FilePanelCls::create(instance, hwnd)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/win_gdi.rs:162:71 [INFO] [stdout] | [INFO] [stdout] 162 | let inst_ptr = Box::into_raw(Box::new(inst_rc.clone()) as Box); [INFO] [stdout] | ^^^ help: use `dyn`: `dyn Any` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/win_gdi.rs:191:20 [INFO] [stdout] | [INFO] [stdout] 191 | hIcon: try!(LoadIconW(0 as HINSTANCE, RC_IDI_APPLICATION)), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/win_gdi.rs:192:22 [INFO] [stdout] | [INFO] [stdout] 192 | hCursor: try!(LoadCursorW(0 as HINSTANCE, RC_IDC_ARROW)), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/win_gdi.rs:196:22 [INFO] [stdout] | [INFO] [stdout] 196 | hIconSm: try!(LoadIconW(0 as HINSTANCE, RC_IDI_APPLICATION)), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/win_gdi.rs:233:36 [INFO] [stdout] | [INFO] [stdout] 233 | let mut hdwp = try!(BeginDeferWindowPos(2)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/win_gdi.rs:234:28 [INFO] [stdout] | [INFO] [stdout] 234 | hdwp = try!(DeferWindowPos(hdwp, self.panel1, None, 0, 0, panel_width, height, flags)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/win_gdi.rs:235:28 [INFO] [stdout] | [INFO] [stdout] 235 | hdwp = try!(DeferWindowPos(hdwp, self.panel2, None, panel2x, 0, panel_width, height, flags)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/win_gdi.rs:236:21 [INFO] [stdout] | [INFO] [stdout] 236 | try!(EndDeferWindowPos(hdwp)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/win_gdi.rs:237:21 [INFO] [stdout] | [INFO] [stdout] 237 | try!(InvalidateRect(hwnd, &rect, true)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/win_gdi.rs:247:32 [INFO] [stdout] | [INFO] [stdout] 247 | let rect = try!(GetClientRect(hwnd)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/win_gdi.rs:248:21 [INFO] [stdout] | [INFO] [stdout] 248 | try!(FillRect(hdc, &rect, (COLOR_WINDOW + 2) as HBRUSH)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/win_gdi.rs:301:22 [INFO] [stdout] | [INFO] [stdout] 301 | let cls_id = try!(Self::get_cls_id()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/win_gdi.rs:304:20 [INFO] [stdout] | [INFO] [stdout] 304 | let hwnd = try!(CreateWindowExW( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/win_gdi.rs:303:63 [INFO] [stdout] | [INFO] [stdout] 303 | let inst_ptr = Box::into_raw(Box::new(inst_rc) as Box); [INFO] [stdout] | ^^^ help: use `dyn`: `dyn Any` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/win_gdi.rs:325:32 [INFO] [stdout] | [INFO] [stdout] 325 | let rect = try!(GetClientRect(hwnd)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/win_gdi.rs:326:21 [INFO] [stdout] | [INFO] [stdout] 326 | try!(FillRect(hdc, &rect, (COLOR_WINDOW + 0) as HBRUSH)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/win_gdi.rs:327:21 [INFO] [stdout] | [INFO] [stdout] 327 | try!(SetBkMode(hdc, TRANSPARENT)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/win_gdi.rs:328:21 [INFO] [stdout] | [INFO] [stdout] 328 | try!(TextOutW(hdc, 0, 0, &wstr("test"))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/win_gdi.rs:330:21 [INFO] [stdout] | [INFO] [stdout] 330 | try!(DrawFocusRect(hdc, &rect)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/win_gdi.rs:350:20 [INFO] [stdout] | [INFO] [stdout] 350 | hIcon: try!(LoadIconW(0 as HINSTANCE, RC_IDI_APPLICATION)), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/win_gdi.rs:351:22 [INFO] [stdout] | [INFO] [stdout] 351 | hCursor: try!(LoadCursorW(0 as HINSTANCE, RC_IDC_ARROW)), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/win_gdi.rs:355:22 [INFO] [stdout] | [INFO] [stdout] 355 | hIconSm: try!(LoadIconW(0 as HINSTANCE, RC_IDI_APPLICATION)), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `winapi::*` [INFO] [stdout] --> src/messages.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use winapi::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:40:16 [INFO] [stdout] | [INFO] [stdout] 40 | let hwnd = try!(win_gdi::MainCls::create(instance)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | let _ = try!(UpdateWindow(hwnd)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:57:19 [INFO] [stdout] | [INFO] [stdout] 57 | let msg = try!(rmsg); [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/win_layer.rs:88:40 [INFO] [stdout] | [INFO] [stdout] 88 | let mut rv: Vec<_> = OsStr::new(s).encode_wide().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/win_layer.rs:88:40 [INFO] [stdout] | [INFO] [stdout] 88 | let mut rv: Vec<_> = OsStr::new(s).encode_wide().collect(); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&OsStr` [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] --> src/win_layer.rs:101:15 [INFO] [stdout] | [INFO] [stdout] 101 | OsString::from_wide(w).to_string_lossy().to_string() [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `OsString` [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] --> src/win_layer.rs:101:15 [INFO] [stdout] | [INFO] [stdout] 101 | OsString::from_wide(w).to_string_lossy().to_string() [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `OsString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 312 previous errors; 38 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0425, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 312 previous errors; 38 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0425, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `trusty-commander` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "39b47f49f02cd0f8ecb9d2ff98b77859135e6adec37351c8dc7399e47d391fa3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "39b47f49f02cd0f8ecb9d2ff98b77859135e6adec37351c8dc7399e47d391fa3", kill_on_drop: false }` [INFO] [stdout] 39b47f49f02cd0f8ecb9d2ff98b77859135e6adec37351c8dc7399e47d391fa3