[INFO] crate wintrap 0.3.0 is already in cache
[INFO] checking wintrap-0.3.0 against master#bf1f2eedda4fa02b7c9347dd849ed73ddd43dedc for pr-70917
[INFO] extracting crate wintrap 0.3.0 into /workspace/builds/worker-1/source
[INFO] validating manifest of crates.io crate wintrap 0.3.0 on toolchain bf1f2eedda4fa02b7c9347dd849ed73ddd43dedc
[INFO] running `"/workspace/cargo-home/bin/cargo" "+bf1f2eedda4fa02b7c9347dd849ed73ddd43dedc" "read-manifest" "--manifest-path" "Cargo.toml"`
[INFO] started tweaking crates.io crate wintrap 0.3.0
[INFO] removed 0 missing examples
[INFO] finished tweaking crates.io crate wintrap 0.3.0
[INFO] tweaked toml for crates.io crate wintrap 0.3.0 written to /workspace/builds/worker-1/source/Cargo.toml
[INFO] running `"/workspace/cargo-home/bin/cargo" "+bf1f2eedda4fa02b7c9347dd849ed73ddd43dedc" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"`
[INFO] running `"/workspace/cargo-home/bin/cargo" "+bf1f2eedda4fa02b7c9347dd849ed73ddd43dedc" "fetch" "--locked" "--manifest-path" "Cargo.toml"`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+bf1f2eedda4fa02b7c9347dd849ed73ddd43dedc" "check" "--frozen" "--all" "--all-targets"`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] 963a9ec45d2cc5b5a8a6a000acfba3d9aff0a3311628acad482afa507c879516
[INFO] running `"docker" "start" "-a" "963a9ec45d2cc5b5a8a6a000acfba3d9aff0a3311628acad482afa507c879516"`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]    Compiling winapi v0.3.8
[INFO] [stderr]     Checking wintrap v0.3.0 (/opt/rustwide/workdir)
[INFO] [stderr] error[E0433]: failed to resolve: could not find `windows` in `os`
[INFO] [stderr]  --> src/windows.rs:2:14
[INFO] [stderr]   |
[INFO] [stderr] 2 | use std::os::windows::prelude::*;
[INFO] [stderr]   |              ^^^^^^^ could not find `windows` in `os`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]  --> src/windows.rs:4:13
[INFO] [stderr]   |
[INFO] [stderr] 4 | use winapi::shared::minwindef::{
[INFO] [stderr]   |             ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]  --> src/windows.rs:7:13
[INFO] [stderr]   |
[INFO] [stderr] 7 | use winapi::shared::ntdef::{LANG_NEUTRAL, LPCWSTR, LPWSTR, MAKELANGID, SUBLANG_DEFAULT};
[INFO] [stderr]   |             ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]  --> src/windows.rs:8:13
[INFO] [stderr]   |
[INFO] [stderr] 8 | use winapi::shared::windef::HWND;
[INFO] [stderr]   |             ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]  --> src/windows.rs:9:13
[INFO] [stderr]   |
[INFO] [stderr] 9 | use winapi::um::consoleapi::SetConsoleCtrlHandler;
[INFO] [stderr]   |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]   --> src/windows.rs:10:13
[INFO] [stderr]    |
[INFO] [stderr] 10 | use winapi::um::errhandlingapi::GetLastError;
[INFO] [stderr]    |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]   --> src/windows.rs:11:13
[INFO] [stderr]    |
[INFO] [stderr] 11 | use winapi::um::libloaderapi::GetModuleHandleW;
[INFO] [stderr]    |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]   --> src/windows.rs:12:13
[INFO] [stderr]    |
[INFO] [stderr] 12 | use winapi::um::processthreadsapi::GetCurrentThreadId;
[INFO] [stderr]    |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]   --> src/windows.rs:13:13
[INFO] [stderr]    |
[INFO] [stderr] 13 | use winapi::um::winbase::{
[INFO] [stderr]    |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]   --> src/windows.rs:17:13
[INFO] [stderr]    |
[INFO] [stderr] 17 | use winapi::um::winuser::{
[INFO] [stderr]    |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]   --> src/lib.rs:37:13
[INFO] [stderr]    |
[INFO] [stderr] 37 | use winapi::shared::minwindef::{BOOL, DWORD, FALSE, LPARAM, LRESULT, TRUE, UINT, WPARAM};
[INFO] [stderr]    |             ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]   --> src/lib.rs:38:13
[INFO] [stderr]    |
[INFO] [stderr] 38 | use winapi::shared::windef::HWND;
[INFO] [stderr]    |             ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]   --> src/lib.rs:39:13
[INFO] [stderr]    |
[INFO] [stderr] 39 | use winapi::um::wincon::{CTRL_BREAK_EVENT, CTRL_CLOSE_EVENT, CTRL_C_EVENT};
[INFO] [stderr]    |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]   --> src/lib.rs:40:13
[INFO] [stderr]    |
[INFO] [stderr] 40 | use winapi::um::winuser::{DefWindowProcW, WM_CLOSE, WM_QUIT};
[INFO] [stderr]    |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `DWORD`
[INFO] [stderr]    --> src/windows.rs:124:13
[INFO] [stderr]     |
[INFO] [stderr] 124 |             DWORD::from(MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT)),
[INFO] [stderr]     |             ^^^^^ use of undeclared type or module `DWORD`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `windows` in `os`
[INFO] [stderr]  --> src/windows.rs:2:14
[INFO] [stderr]   |
[INFO] [stderr] 2 | use std::os::windows::prelude::*;
[INFO] [stderr]   |              ^^^^^^^ could not find `windows` in `os`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]  --> src/windows.rs:4:13
[INFO] [stderr]   |
[INFO] [stderr] 4 | use winapi::shared::minwindef::{
[INFO] [stderr]   |             ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]  --> src/windows.rs:7:13
[INFO] [stderr]   |
[INFO] [stderr] 7 | use winapi::shared::ntdef::{LANG_NEUTRAL, LPCWSTR, LPWSTR, MAKELANGID, SUBLANG_DEFAULT};
[INFO] [stderr]   |             ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]  --> src/windows.rs:8:13
[INFO] [stderr]   |
[INFO] [stderr] 8 | use winapi::shared::windef::HWND;
[INFO] [stderr]   |             ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]  --> src/windows.rs:9:13
[INFO] [stderr]   |
[INFO] [stderr] 9 | use winapi::um::consoleapi::SetConsoleCtrlHandler;
[INFO] [stderr]   |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]   --> src/windows.rs:10:13
[INFO] [stderr]    |
[INFO] [stderr] 10 | use winapi::um::errhandlingapi::GetLastError;
[INFO] [stderr]    |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]   --> src/windows.rs:11:13
[INFO] [stderr]    |
[INFO] [stderr] 11 | use winapi::um::libloaderapi::GetModuleHandleW;
[INFO] [stderr]    |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]   --> src/windows.rs:12:13
[INFO] [stderr]    |
[INFO] [stderr] 12 | use winapi::um::processthreadsapi::GetCurrentThreadId;
[INFO] [stderr]    |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]   --> src/windows.rs:13:13
[INFO] [stderr]    |
[INFO] [stderr] 13 | use winapi::um::winbase::{
[INFO] [stderr]    |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]   --> src/windows.rs:17:13
[INFO] [stderr]    |
[INFO] [stderr] 17 | use winapi::um::winuser::{
[INFO] [stderr]    |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]   --> src/lib.rs:37:13
[INFO] [stderr]    |
[INFO] [stderr] 37 | use winapi::shared::minwindef::{BOOL, DWORD, FALSE, LPARAM, LRESULT, TRUE, UINT, WPARAM};
[INFO] [stderr]    |             ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]   --> src/lib.rs:38:13
[INFO] [stderr]    |
[INFO] [stderr] 38 | use winapi::shared::windef::HWND;
[INFO] [stderr]    |             ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]   --> src/lib.rs:39:13
[INFO] [stderr]    |
[INFO] [stderr] 39 | use winapi::um::wincon::{CTRL_BREAK_EVENT, CTRL_CLOSE_EVENT, CTRL_C_EVENT};
[INFO] [stderr]    |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]   --> src/lib.rs:40:13
[INFO] [stderr]    |
[INFO] [stderr] 40 | use winapi::um::winuser::{DefWindowProcW, WM_CLOSE, WM_QUIT};
[INFO] [stderr]    |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]   --> src/windows.rs:30:28
[INFO] [stderr]    |
[INFO] [stderr] 30 | pub fn get_last_error() -> DWORD {
[INFO] [stderr]    |                            ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope
[INFO] [stderr]   --> src/windows.rs:31:14
[INFO] [stderr]    |
[INFO] [stderr] 31 |     unsafe { GetLastError() }
[INFO] [stderr]    |              ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]   --> src/windows.rs:35:58
[INFO] [stderr]    |
[INFO] [stderr] 35 |     handler_routine: unsafe extern "system" fn(CtrlType: DWORD) -> BOOL,
[INFO] [stderr]    |                                                          ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BOOL` in this scope
[INFO] [stderr]   --> src/windows.rs:35:68
[INFO] [stderr]    |
[INFO] [stderr] 35 |     handler_routine: unsafe extern "system" fn(CtrlType: DWORD) -> BOOL,
[INFO] [stderr]    |                                                                    ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]   --> src/windows.rs:37:17
[INFO] [stderr]    |
[INFO] [stderr] 34 | pub fn set_console_ctrl_handler(
[INFO] [stderr]    |                                - help: you might be missing a type parameter: `<DWORD>`
[INFO] [stderr] ...
[INFO] [stderr] 37 | ) -> Result<(), DWORD> {
[INFO] [stderr]    |                 ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SetConsoleCtrlHandler` in this scope
[INFO] [stderr]   --> src/windows.rs:39:18
[INFO] [stderr]    |
[INFO] [stderr] 34 | / pub fn set_console_ctrl_handler(
[INFO] [stderr] 35 | |     handler_routine: unsafe extern "system" fn(CtrlType: DWORD) -> BOOL,
[INFO] [stderr] 36 | |     add: bool,
[INFO] [stderr] 37 | | ) -> Result<(), DWORD> {
[INFO] [stderr] 38 | |     let result =
[INFO] [stderr] 39 | |         unsafe { SetConsoleCtrlHandler(Some(handler_routine), if add { TRUE } else { FALSE }) };
[INFO] [stderr]    | |                  ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...  |
[INFO] [stderr] 44 | |     }
[INFO] [stderr] 45 | | }
[INFO] [stderr]    | |_- similarly named function `set_console_ctrl_handler` defined here
[INFO] [stderr]    |
[INFO] [stderr] help: a function with a similar name exists
[INFO] [stderr]    |
[INFO] [stderr] 39 |         unsafe { set_console_ctrl_handler(Some(handler_routine), if add { TRUE } else { FALSE }) };
[INFO] [stderr]    |                  ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] help: possible candidate is found in another module, you can import it into scope
[INFO] [stderr]    |
[INFO] [stderr] 1  | use crate::Error::SetConsoleCtrlHandler;
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope
[INFO] [stderr]   --> src/windows.rs:39:72
[INFO] [stderr]    |
[INFO] [stderr] 39 |         unsafe { SetConsoleCtrlHandler(Some(handler_routine), if add { TRUE } else { FALSE }) };
[INFO] [stderr]    |                                                                        ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope
[INFO] [stderr]   --> src/windows.rs:39:86
[INFO] [stderr]    |
[INFO] [stderr] 39 |         unsafe { SetConsoleCtrlHandler(Some(handler_routine), if add { TRUE } else { FALSE }) };
[INFO] [stderr]    |                                                                                      ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope
[INFO] [stderr]   --> src/windows.rs:40:18
[INFO] [stderr]    |
[INFO] [stderr] 40 |     if result == FALSE {
[INFO] [stderr]    |                  ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HMODULE` in this scope
[INFO] [stderr]   --> src/windows.rs:47:38
[INFO] [stderr]    |
[INFO] [stderr] 47 | pub fn get_module_handle() -> Result<HMODULE, DWORD> {
[INFO] [stderr]    |                         -            ^^^^^^^ not found in this scope
[INFO] [stderr]    |                         |
[INFO] [stderr]    |                         help: you might be missing a type parameter: `<HMODULE>`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]   --> src/windows.rs:47:47
[INFO] [stderr]    |
[INFO] [stderr] 47 | pub fn get_module_handle() -> Result<HMODULE, DWORD> {
[INFO] [stderr]    |                         -                     ^^^^^ not found in this scope
[INFO] [stderr]    |                         |
[INFO] [stderr]    |                         help: you might be missing a type parameter: `<DWORD>`
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleW` in this scope
[INFO] [stderr]   --> src/windows.rs:48:27
[INFO] [stderr]    |
[INFO] [stderr] 48 |     let result = unsafe { GetModuleHandleW(ptr::null()) };
[INFO] [stderr]    |                           ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `UINT` in this scope
[INFO] [stderr]   --> src/windows.rs:56:71
[INFO] [stderr]    |
[INFO] [stderr] 56 | pub fn register_window_message(identifier: impl AsRef<str>) -> Result<UINT, DWORD> {
[INFO] [stderr]    |                               -                                       ^^^^ not found in this scope
[INFO] [stderr]    |                               |
[INFO] [stderr]    |                               help: you might be missing a type parameter: `<UINT>`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]   --> src/windows.rs:56:77
[INFO] [stderr]    |
[INFO] [stderr] 56 | pub fn register_window_message(identifier: impl AsRef<str>) -> Result<UINT, DWORD> {
[INFO] [stderr]    |                               -                                             ^^^^^ not found in this scope
[INFO] [stderr]    |                               |
[INFO] [stderr]    |                               help: you might be missing a type parameter: `<DWORD>`
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `RegisterWindowMessageW` in this scope
[INFO] [stderr]   --> src/windows.rs:61:27
[INFO] [stderr]    |
[INFO] [stderr] 56 | pub fn register_window_message(identifier: impl AsRef<str>) -> Result<UINT, DWORD> {
[INFO] [stderr]    | ---------------------------------------------------------------------------------- similarly named function `register_window_message` defined here
[INFO] [stderr] ...
[INFO] [stderr] 61 |     let result = unsafe { RegisterWindowMessageW(identifier_wide.as_ptr()) };
[INFO] [stderr]    |                           ^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `register_window_message`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `UINT` in this scope
[INFO] [stderr]   --> src/windows.rs:71:10
[INFO] [stderr]    |
[INFO] [stderr] 71 |     msg: UINT,
[INFO] [stderr]    |          ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `WPARAM` in this scope
[INFO] [stderr]   --> src/windows.rs:72:13
[INFO] [stderr]    |
[INFO] [stderr] 72 |     wparam: WPARAM,
[INFO] [stderr]    |             ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LPARAM` in this scope
[INFO] [stderr]   --> src/windows.rs:73:13
[INFO] [stderr]    |
[INFO] [stderr] 73 |     lparam: LPARAM,
[INFO] [stderr]    |             ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]   --> src/windows.rs:74:17
[INFO] [stderr]    |
[INFO] [stderr] 69 | pub fn post_thread_message(
[INFO] [stderr]    |                           - help: you might be missing a type parameter: `<DWORD>`
[INFO] [stderr] ...
[INFO] [stderr] 74 | ) -> Result<(), DWORD> {
[INFO] [stderr]    |                 ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `PostThreadMessageW` in this scope
[INFO] [stderr]   --> src/windows.rs:75:27
[INFO] [stderr]    |
[INFO] [stderr] 69 | / pub fn post_thread_message(
[INFO] [stderr] 70 | |     thread_id: u32,
[INFO] [stderr] 71 | |     msg: UINT,
[INFO] [stderr] 72 | |     wparam: WPARAM,
[INFO] [stderr] ...  |
[INFO] [stderr] 75 | |     let result = unsafe { PostThreadMessageW(thread_id, msg, wparam, lparam) };
[INFO] [stderr]    | |                           ^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `post_thread_message`
[INFO] [stderr] ...  |
[INFO] [stderr] 80 | |     }
[INFO] [stderr] 81 | | }
[INFO] [stderr]    | |_- similarly named function `post_thread_message` defined here
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope
[INFO] [stderr]   --> src/windows.rs:76:18
[INFO] [stderr]    |
[INFO] [stderr] 76 |     if result == FALSE {
[INFO] [stderr]    |                  ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `UINT` in this scope
[INFO] [stderr]   --> src/windows.rs:85:10
[INFO] [stderr]    |
[INFO] [stderr] 85 |     msg: UINT,
[INFO] [stderr]    |          ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `WPARAM` in this scope
[INFO] [stderr]   --> src/windows.rs:86:13
[INFO] [stderr]    |
[INFO] [stderr] 86 |     wparam: WPARAM,
[INFO] [stderr]    |             ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LPARAM` in this scope
[INFO] [stderr]   --> src/windows.rs:87:13
[INFO] [stderr]    |
[INFO] [stderr] 87 |     lparam: LPARAM,
[INFO] [stderr]    |             ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]   --> src/windows.rs:88:17
[INFO] [stderr]    |
[INFO] [stderr] 83 | pub fn post_message(
[INFO] [stderr]    |                    - help: you might be missing a type parameter: `<DWORD>`
[INFO] [stderr] ...
[INFO] [stderr] 88 | ) -> Result<(), DWORD> {
[INFO] [stderr]    |                 ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `PostMessageW` in this scope
[INFO] [stderr]   --> src/windows.rs:89:27
[INFO] [stderr]    |
[INFO] [stderr] 83 | / pub fn post_message(
[INFO] [stderr] 84 | |     window_handle: WindowHandle,
[INFO] [stderr] 85 | |     msg: UINT,
[INFO] [stderr] 86 | |     wparam: WPARAM,
[INFO] [stderr] ...  |
[INFO] [stderr] 89 | |     let result = unsafe { PostMessageW(window_handle.hwnd, msg, wparam, lparam) };
[INFO] [stderr]    | |                           ^^^^^^^^^^^^ help: a function with a similar name exists: `post_message`
[INFO] [stderr] ...  |
[INFO] [stderr] 94 | |     }
[INFO] [stderr] 95 | | }
[INFO] [stderr]    | |_- similarly named function `post_message` defined here
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope
[INFO] [stderr]   --> src/windows.rs:90:18
[INFO] [stderr]    |
[INFO] [stderr] 90 |     if result == FALSE {
[INFO] [stderr]    |                  ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]   --> src/windows.rs:97:35
[INFO] [stderr]    |
[INFO] [stderr] 97 | pub fn get_current_thread_id() -> DWORD {
[INFO] [stderr]    |                                   ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetCurrentThreadId` in this scope
[INFO] [stderr]   --> src/windows.rs:98:14
[INFO] [stderr]    |
[INFO] [stderr] 98 |     unsafe { GetCurrentThreadId() }
[INFO] [stderr]    |              ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope
[INFO] [stderr]    --> src/windows.rs:101:53
[INFO] [stderr]     |
[INFO] [stderr] 101 | pub fn enum_windows(proc: unsafe extern "system" fn(HWND, LPARAM) -> BOOL, lparam: LPARAM) -> bool {
[INFO] [stderr]     |                                                     ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LPARAM` in this scope
[INFO] [stderr]    --> src/windows.rs:101:59
[INFO] [stderr]     |
[INFO] [stderr] 101 | pub fn enum_windows(proc: unsafe extern "system" fn(HWND, LPARAM) -> BOOL, lparam: LPARAM) -> bool {
[INFO] [stderr]     |                                                           ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BOOL` in this scope
[INFO] [stderr]    --> src/windows.rs:101:70
[INFO] [stderr]     |
[INFO] [stderr] 101 | pub fn enum_windows(proc: unsafe extern "system" fn(HWND, LPARAM) -> BOOL, lparam: LPARAM) -> bool {
[INFO] [stderr]     |                                                                      ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LPARAM` in this scope
[INFO] [stderr]    --> src/windows.rs:101:84
[INFO] [stderr]     |
[INFO] [stderr] 101 | pub fn enum_windows(proc: unsafe extern "system" fn(HWND, LPARAM) -> BOOL, lparam: LPARAM) -> bool {
[INFO] [stderr]     |                                                                                    ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `EnumWindows` in this scope
[INFO] [stderr]    --> src/windows.rs:102:14
[INFO] [stderr]     |
[INFO] [stderr] 101 | pub fn enum_windows(proc: unsafe extern "system" fn(HWND, LPARAM) -> BOOL, lparam: LPARAM) -> bool {
[INFO] [stderr]     | -------------------------------------------------------------------------------------------------- similarly named function `enum_windows` defined here
[INFO] [stderr] 102 |     unsafe { EnumWindows(Some(proc), lparam) != FALSE }
[INFO] [stderr]     |              ^^^^^^^^^^^ help: a function with a similar name exists: `enum_windows`
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope
[INFO] [stderr]    --> src/windows.rs:102:49
[INFO] [stderr]     |
[INFO] [stderr] 102 |     unsafe { EnumWindows(Some(proc), lparam) != FALSE }
[INFO] [stderr]     |                                                 ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope
[INFO] [stderr]    --> src/windows.rs:105:43
[INFO] [stderr]     |
[INFO] [stderr] 105 | pub fn get_window_thread_process_id(hwnd: HWND) -> (DWORD, DWORD) {
[INFO] [stderr]     |                                           ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/windows.rs:105:53
[INFO] [stderr]     |
[INFO] [stderr] 105 | pub fn get_window_thread_process_id(hwnd: HWND) -> (DWORD, DWORD) {
[INFO] [stderr]     |                                                     ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/windows.rs:105:60
[INFO] [stderr]     |
[INFO] [stderr] 105 | pub fn get_window_thread_process_id(hwnd: HWND) -> (DWORD, DWORD) {
[INFO] [stderr]     |                                                            ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/windows.rs:107:29
[INFO] [stderr]     |
[INFO] [stderr] 107 |         let mut process_id: DWORD = mem::uninitialized();
[INFO] [stderr]     |                             ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetWindowThreadProcessId` in this scope
[INFO] [stderr]    --> src/windows.rs:108:25
[INFO] [stderr]     |
[INFO] [stderr] 108 |         let thread_id = GetWindowThreadProcessId(hwnd, &mut process_id as *mut DWORD);
[INFO] [stderr]     |                         ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/windows.rs:108:80
[INFO] [stderr]     |
[INFO] [stderr] 108 |         let thread_id = GetWindowThreadProcessId(hwnd, &mut process_id as *mut DWORD);
[INFO] [stderr]     |                                                                                ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/windows.rs:113:27
[INFO] [stderr]     |
[INFO] [stderr] 113 | pub fn format_error(code: DWORD) -> Result<String, DWORD> {
[INFO] [stderr]     |                           ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/windows.rs:113:52
[INFO] [stderr]     |
[INFO] [stderr] 113 | pub fn format_error(code: DWORD) -> Result<String, DWORD> {
[INFO] [stderr]     |                    -                               ^^^^^ not found in this scope
[INFO] [stderr]     |                    |
[INFO] [stderr]     |                    help: you might be missing a type parameter: `<DWORD>`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LPWSTR` in this scope
[INFO] [stderr]    --> src/windows.rs:114:18
[INFO] [stderr]     |
[INFO] [stderr] 114 |     let mut buf: LPWSTR = unsafe { mem::uninitialized() };
[INFO] [stderr]     |                  ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LPWSTR` in this scope
[INFO] [stderr]    --> src/windows.rs:116:50
[INFO] [stderr]     |
[INFO] [stderr] 113 | pub fn format_error(code: DWORD) -> Result<String, DWORD> {
[INFO] [stderr]     |                    - help: you might be missing a type parameter: `<LPWSTR>`
[INFO] [stderr] ...
[INFO] [stderr] 116 |     let buf_ptr = unsafe { mem::transmute::<*mut LPWSTR, LPWSTR>(&mut buf as *mut LPWSTR) };
[INFO] [stderr]     |                                                  ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LPWSTR` in this scope
[INFO] [stderr]    --> src/windows.rs:116:58
[INFO] [stderr]     |
[INFO] [stderr] 113 | pub fn format_error(code: DWORD) -> Result<String, DWORD> {
[INFO] [stderr]     |                    - help: you might be missing a type parameter: `<LPWSTR>`
[INFO] [stderr] ...
[INFO] [stderr] 116 |     let buf_ptr = unsafe { mem::transmute::<*mut LPWSTR, LPWSTR>(&mut buf as *mut LPWSTR) };
[INFO] [stderr]     |                                                          ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LPWSTR` in this scope
[INFO] [stderr]    --> src/windows.rs:116:83
[INFO] [stderr]     |
[INFO] [stderr] 116 |     let buf_ptr = unsafe { mem::transmute::<*mut LPWSTR, LPWSTR>(&mut buf as *mut LPWSTR) };
[INFO] [stderr]     |                                                                                   ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `FormatMessageW` in this scope
[INFO] [stderr]    --> src/windows.rs:118:9
[INFO] [stderr]     |
[INFO] [stderr] 118 |         FormatMessageW(
[INFO] [stderr]     |         ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FORMAT_MESSAGE_ALLOCATE_BUFFER` in this scope
[INFO] [stderr]    --> src/windows.rs:119:13
[INFO] [stderr]     |
[INFO] [stderr] 119 |             FORMAT_MESSAGE_ALLOCATE_BUFFER
[INFO] [stderr]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FORMAT_MESSAGE_FROM_SYSTEM` in this scope
[INFO] [stderr]    --> src/windows.rs:120:19
[INFO] [stderr]     |
[INFO] [stderr] 120 |                 | FORMAT_MESSAGE_FROM_SYSTEM
[INFO] [stderr]     |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FORMAT_MESSAGE_IGNORE_INSERTS` in this scope
[INFO] [stderr]    --> src/windows.rs:121:19
[INFO] [stderr]     |
[INFO] [stderr] 121 |                 | FORMAT_MESSAGE_IGNORE_INSERTS,
[INFO] [stderr]     |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `MAKELANGID` in this scope
[INFO] [stderr]    --> src/windows.rs:124:25
[INFO] [stderr]     |
[INFO] [stderr] 124 |             DWORD::from(MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT)),
[INFO] [stderr]     |                         ^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `LANG_NEUTRAL` in this scope
[INFO] [stderr]    --> src/windows.rs:124:36
[INFO] [stderr]     |
[INFO] [stderr] 124 |             DWORD::from(MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT)),
[INFO] [stderr]     |                                    ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `SUBLANG_DEFAULT` in this scope
[INFO] [stderr]    --> src/windows.rs:124:50
[INFO] [stderr]     |
[INFO] [stderr] 124 |             DWORD::from(MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT)),
[INFO] [stderr]     |                                                  ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `LocalFree` in this scope
[INFO] [stderr]    --> src/windows.rs:135:14
[INFO] [stderr]     |
[INFO] [stderr] 135 |     unsafe { LocalFree(buf as HLOCAL) };
[INFO] [stderr]     |              ^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HLOCAL` in this scope
[INFO] [stderr]    --> src/windows.rs:135:31
[INFO] [stderr]     |
[INFO] [stderr] 135 |     unsafe { LocalFree(buf as HLOCAL) };
[INFO] [stderr]     |                               ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope
[INFO] [stderr]    --> src/windows.rs:142:15
[INFO] [stderr]     |
[INFO] [stderr] 142 |     pub hwnd: HWND,
[INFO] [stderr]     |               ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope
[INFO] [stderr]    --> src/windows.rs:149:41
[INFO] [stderr]     |
[INFO] [stderr] 149 |         proc: unsafe extern "system" fn(HWND, UINT, WPARAM, LPARAM) -> LRESULT,
[INFO] [stderr]     |                                         ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `UINT` in this scope
[INFO] [stderr]    --> src/windows.rs:149:47
[INFO] [stderr]     |
[INFO] [stderr] 149 |         proc: unsafe extern "system" fn(HWND, UINT, WPARAM, LPARAM) -> LRESULT,
[INFO] [stderr]     |                                               ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `WPARAM` in this scope
[INFO] [stderr]    --> src/windows.rs:149:53
[INFO] [stderr]     |
[INFO] [stderr] 149 |         proc: unsafe extern "system" fn(HWND, UINT, WPARAM, LPARAM) -> LRESULT,
[INFO] [stderr]     |                                                     ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LPARAM` in this scope
[INFO] [stderr]    --> src/windows.rs:149:61
[INFO] [stderr]     |
[INFO] [stderr] 149 |         proc: unsafe extern "system" fn(HWND, UINT, WPARAM, LPARAM) -> LRESULT,
[INFO] [stderr]     |                                                             ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LRESULT` in this scope
[INFO] [stderr]    --> src/windows.rs:149:72
[INFO] [stderr]     |
[INFO] [stderr] 149 |         proc: unsafe extern "system" fn(HWND, UINT, WPARAM, LPARAM) -> LRESULT,
[INFO] [stderr]     |                                                                        ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/windows.rs:150:25
[INFO] [stderr]     |
[INFO] [stderr] 147 | impl Window {
[INFO] [stderr]     |     - help: you might be missing a type parameter: `<DWORD>`
[INFO] [stderr] ...
[INFO] [stderr] 150 |     ) -> Result<Window, DWORD> {
[INFO] [stderr]     |                         ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `CreateWindowExW` in this scope
[INFO] [stderr]    --> src/windows.rs:154:24
[INFO] [stderr]     |
[INFO] [stderr] 154 |             let hwnd = CreateWindowExW(
[INFO] [stderr]     |                        ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LPCWSTR` in this scope
[INFO] [stderr]    --> src/windows.rs:156:42
[INFO] [stderr]     |
[INFO] [stderr] 156 |                 window_class.wndclass as LPCWSTR,
[INFO] [stderr]     |                                          ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `MSG` in this scope
[INFO] [stderr]    --> src/windows.rs:176:59
[INFO] [stderr]     |
[INFO] [stderr] 176 |     pub fn run_event_loop(&mut self, message_cb: impl Fn(&MSG)) -> Result<i32, DWORD> {
[INFO] [stderr]     |                                                           ^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/windows.rs:176:80
[INFO] [stderr]     |
[INFO] [stderr] 147 | impl Window {
[INFO] [stderr]     |     - help: you might be missing a type parameter: `<DWORD>`
[INFO] [stderr] ...
[INFO] [stderr] 176 |     pub fn run_event_loop(&mut self, message_cb: impl Fn(&MSG)) -> Result<i32, DWORD> {
[INFO] [stderr]     |                                                                                ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `MSG` in this scope
[INFO] [stderr]    --> src/windows.rs:178:26
[INFO] [stderr]     |
[INFO] [stderr] 178 |             let mut msg: MSG = unsafe { mem::uninitialized() };
[INFO] [stderr]     |                          ^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetMessageW` in this scope
[INFO] [stderr]    --> src/windows.rs:179:32
[INFO] [stderr]     |
[INFO] [stderr] 179 |             let ret = unsafe { GetMessageW(&mut msg as *mut MSG, ptr::null_mut(), 0, 0) };
[INFO] [stderr]     |                                ^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `MSG` in this scope
[INFO] [stderr]    --> src/windows.rs:179:61
[INFO] [stderr]     |
[INFO] [stderr] 179 |             let ret = unsafe { GetMessageW(&mut msg as *mut MSG, ptr::null_mut(), 0, 0) };
[INFO] [stderr]     |                                                             ^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `TranslateMessage` in this scope
[INFO] [stderr]    --> src/windows.rs:183:21
[INFO] [stderr]     |
[INFO] [stderr] 183 |                     TranslateMessage(&mut msg as *mut MSG);
[INFO] [stderr]     |                     ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `MSG` in this scope
[INFO] [stderr]    --> src/windows.rs:183:55
[INFO] [stderr]     |
[INFO] [stderr] 183 |                     TranslateMessage(&mut msg as *mut MSG);
[INFO] [stderr]     |                                                       ^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `DispatchMessageW` in this scope
[INFO] [stderr]    --> src/windows.rs:184:21
[INFO] [stderr]     |
[INFO] [stderr] 184 |                     DispatchMessageW(&mut msg as *mut MSG);
[INFO] [stderr]     |                     ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `MSG` in this scope
[INFO] [stderr]    --> src/windows.rs:184:55
[INFO] [stderr]     |
[INFO] [stderr] 184 |                     DispatchMessageW(&mut msg as *mut MSG);
[INFO] [stderr]     |                                                       ^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `DestroyWindow` in this scope
[INFO] [stderr]    --> src/windows.rs:197:18
[INFO] [stderr]     |
[INFO] [stderr] 197 |         unsafe { DestroyWindow(self.hwnd) };
[INFO] [stderr]     |                  ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ATOM` in this scope
[INFO] [stderr]    --> src/windows.rs:206:15
[INFO] [stderr]     |
[INFO] [stderr] 206 |     wndclass: ATOM,
[INFO] [stderr]     |               ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HINSTANCE` in this scope
[INFO] [stderr]    --> src/windows.rs:207:15
[INFO] [stderr]     |
[INFO] [stderr] 207 |     instance: HINSTANCE,
[INFO] [stderr]     |               ^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope
[INFO] [stderr]    --> src/windows.rs:212:41
[INFO] [stderr]     |
[INFO] [stderr] 212 |         proc: unsafe extern "system" fn(HWND, UINT, WPARAM, LPARAM) -> LRESULT,
[INFO] [stderr]     |                                         ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `UINT` in this scope
[INFO] [stderr]    --> src/windows.rs:212:47
[INFO] [stderr]     |
[INFO] [stderr] 212 |         proc: unsafe extern "system" fn(HWND, UINT, WPARAM, LPARAM) -> LRESULT,
[INFO] [stderr]     |                                               ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `WPARAM` in this scope
[INFO] [stderr]    --> src/windows.rs:212:53
[INFO] [stderr]     |
[INFO] [stderr] 212 |         proc: unsafe extern "system" fn(HWND, UINT, WPARAM, LPARAM) -> LRESULT,
[INFO] [stderr]     |                                                     ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LPARAM` in this scope
[INFO] [stderr]    --> src/windows.rs:212:61
[INFO] [stderr]     |
[INFO] [stderr] 212 |         proc: unsafe extern "system" fn(HWND, UINT, WPARAM, LPARAM) -> LRESULT,
[INFO] [stderr]     |                                                             ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LRESULT` in this scope
[INFO] [stderr]    --> src/windows.rs:212:72
[INFO] [stderr]     |
[INFO] [stderr] 212 |         proc: unsafe extern "system" fn(HWND, UINT, WPARAM, LPARAM) -> LRESULT,
[INFO] [stderr]     |                                                                        ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HMODULE` in this scope
[INFO] [stderr]    --> src/windows.rs:213:19
[INFO] [stderr]     |
[INFO] [stderr] 213 |         instance: HMODULE,
[INFO] [stderr]     |                   ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/windows.rs:214:30
[INFO] [stderr]     |
[INFO] [stderr] 210 | impl WindowClass {
[INFO] [stderr]     |     - help: you might be missing a type parameter: `<DWORD>`
[INFO] [stderr] ...
[INFO] [stderr] 214 |     ) -> Result<WindowClass, DWORD> {
[INFO] [stderr]     |                              ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `WNDCLASSEXW` in this scope
[INFO] [stderr]    --> src/windows.rs:215:24
[INFO] [stderr]     |
[INFO] [stderr] 215 |         let mut opts = WNDCLASSEXW {
[INFO] [stderr]     |                        ^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `WNDCLASSEXW` in this scope
[INFO] [stderr]    --> src/windows.rs:216:36
[INFO] [stderr]     |
[INFO] [stderr] 210 | impl WindowClass {
[INFO] [stderr]     |     - help: you might be missing a type parameter: `<WNDCLASSEXW>`
[INFO] [stderr] ...
[INFO] [stderr] 216 |             cbSize: mem::size_of::<WNDCLASSEXW>() as u32,
[INFO] [stderr]     |                                    ^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `RegisterClassExW` in this scope
[INFO] [stderr]    --> src/windows.rs:229:33
[INFO] [stderr]     |
[INFO] [stderr] 229 |         let wndclass = unsafe { RegisterClassExW(&mut opts as *mut WNDCLASSEXW) };
[INFO] [stderr]     |                                 ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `WNDCLASSEXW` in this scope
[INFO] [stderr]    --> src/windows.rs:229:68
[INFO] [stderr]     |
[INFO] [stderr] 229 |         let wndclass = unsafe { RegisterClassExW(&mut opts as *mut WNDCLASSEXW) };
[INFO] [stderr]     |                                                                    ^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope
[INFO] [stderr]    --> src/windows.rs:231:26
[INFO] [stderr]     |
[INFO] [stderr] 231 |             Err(unsafe { GetLastError() })
[INFO] [stderr]     |                          ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `UnregisterClassW` in this scope
[INFO] [stderr]    --> src/windows.rs:240:18
[INFO] [stderr]     |
[INFO] [stderr] 240 |         unsafe { UnregisterClassW(self.wndclass as *mut u16, self.instance) };
[INFO] [stderr]     |                  ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope
[INFO] [stderr]    --> src/windows.rs:246:15
[INFO] [stderr]     |
[INFO] [stderr] 246 |     pub hwnd: HWND,
[INFO] [stderr]     |               ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]   --> src/lib.rs:99:39
[INFO] [stderr]    |
[INFO] [stderr] 99 |     fn from_console_ctrl_event(event: DWORD) -> Option<Self> {
[INFO] [stderr]    |                                       ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `UINT` in this scope
[INFO] [stderr]    --> src/lib.rs:108:33
[INFO] [stderr]     |
[INFO] [stderr] 108 |     fn from_window_message(msg: UINT, wparam: WPARAM, _lparam: LPARAM) -> Option<Self> {
[INFO] [stderr]     |                                 ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `WPARAM` in this scope
[INFO] [stderr]    --> src/lib.rs:108:47
[INFO] [stderr]     |
[INFO] [stderr] 108 |     fn from_window_message(msg: UINT, wparam: WPARAM, _lparam: LPARAM) -> Option<Self> {
[INFO] [stderr]     |                                               ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LPARAM` in this scope
[INFO] [stderr]    --> src/lib.rs:108:64
[INFO] [stderr]     |
[INFO] [stderr] 108 |     fn from_window_message(msg: UINT, wparam: WPARAM, _lparam: LPARAM) -> Option<Self> {
[INFO] [stderr]     |                                                                ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `WM_CLOSE` in this scope
[INFO] [stderr]    --> src/lib.rs:109:19
[INFO] [stderr]     |
[INFO] [stderr] 109 |         if msg == WM_CLOSE {
[INFO] [stderr]     |                   ^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/lib.rs:112:55
[INFO] [stderr]     |
[INFO] [stderr] 112 |             Signal::from_console_ctrl_event(wparam as DWORD)
[INFO] [stderr]     |                                                       ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/lib.rs:127:27
[INFO] [stderr]     |
[INFO] [stderr] 127 |     SetConsoleCtrlHandler(DWORD),
[INFO] [stderr]     |                           ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/lib.rs:136:18
[INFO] [stderr]     |
[INFO] [stderr] 136 |     CreateWindow(DWORD),
[INFO] [stderr]     |                  ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `UINT` in this scope
[INFO] [stderr]    --> src/lib.rs:159:33
[INFO] [stderr]     |
[INFO] [stderr] 159 |     static ref WM_CONSOLE_CTRL: UINT =
[INFO] [stderr]     |                                 ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope
[INFO] [stderr]    --> src/lib.rs:260:23
[INFO] [stderr]     |
[INFO] [stderr] 260 |                 hwnd: HWND,
[INFO] [stderr]     |                       ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/lib.rs:261:29
[INFO] [stderr]     |
[INFO] [stderr] 261 |                 process_id: DWORD,
[INFO] [stderr]     |                             ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope
[INFO] [stderr]    --> src/lib.rs:267:63
[INFO] [stderr]     |
[INFO] [stderr] 267 |             unsafe extern "system" fn enum_windows_proc(hwnd: HWND, lparam: LPARAM) -> BOOL {
[INFO] [stderr]     |                                                               ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LPARAM` in this scope
[INFO] [stderr]    --> src/lib.rs:267:77
[INFO] [stderr]     |
[INFO] [stderr] 267 |             unsafe extern "system" fn enum_windows_proc(hwnd: HWND, lparam: LPARAM) -> BOOL {
[INFO] [stderr]     |                                                                             ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BOOL` in this scope
[INFO] [stderr]    --> src/lib.rs:267:88
[INFO] [stderr]     |
[INFO] [stderr] 267 |             unsafe extern "system" fn enum_windows_proc(hwnd: HWND, lparam: LPARAM) -> BOOL {
[INFO] [stderr]     |                                                                                        ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope
[INFO] [stderr]    --> src/lib.rs:270:21
[INFO] [stderr]     |
[INFO] [stderr] 270 |                     TRUE
[INFO] [stderr]     |                     ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope
[INFO] [stderr]    --> src/lib.rs:274:25
[INFO] [stderr]     |
[INFO] [stderr] 274 |                         FALSE
[INFO] [stderr]     |                         ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope
[INFO] [stderr]    --> src/lib.rs:276:25
[INFO] [stderr]     |
[INFO] [stderr] 276 |                         TRUE
[INFO] [stderr]     |                         ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LPARAM` in this scope
[INFO] [stderr]    --> src/lib.rs:284:67
[INFO] [stderr]     |
[INFO] [stderr] 284 |                 (&enum_windows_data as *const EnumWindowsData) as LPARAM,
[INFO] [stderr]     |                                                                   ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/lib.rs:296:16
[INFO] [stderr]     |
[INFO] [stderr] 296 |     thread_id: DWORD,
[INFO] [stderr]     |                ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `WM_CLOSE` in this scope
[INFO] [stderr]    --> src/lib.rs:320:50
[INFO] [stderr]     |
[INFO] [stderr] 320 |                         } else if msg.message == WM_CLOSE {
[INFO] [stderr]     |                                                  ^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/lib.rs:328:46
[INFO] [stderr]     |
[INFO] [stderr] 328 |         let thread_id = r.recv().unwrap() as DWORD;
[INFO] [stderr]     |                                              ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope
[INFO] [stderr]    --> src/lib.rs:329:41
[INFO] [stderr]     |
[INFO] [stderr] 329 |         let hwnd = r.recv().unwrap() as HWND;
[INFO] [stderr]     |                                         ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/lib.rs:337:41
[INFO] [stderr]     |
[INFO] [stderr] 337 |     fn enqueue_ctrl_event(&self, event: DWORD) -> Result<(), DWORD> {
[INFO] [stderr]     |                                         ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/lib.rs:337:62
[INFO] [stderr]     |
[INFO] [stderr] 300 | impl TrapThreadData {
[INFO] [stderr]     |     - help: you might be missing a type parameter: `<DWORD>`
[INFO] [stderr] ...
[INFO] [stderr] 337 |     fn enqueue_ctrl_event(&self, event: DWORD) -> Result<(), DWORD> {
[INFO] [stderr]     |                                                              ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `WPARAM` in this scope
[INFO] [stderr]    --> src/lib.rs:338:78
[INFO] [stderr]     |
[INFO] [stderr] 338 |         windows::post_message(self.window_handle, *WM_CONSOLE_CTRL, event as WPARAM, 0)
[INFO] [stderr]     |                                                                              ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `WM_QUIT` in this scope
[INFO] [stderr]    --> src/lib.rs:345:54
[INFO] [stderr]     |
[INFO] [stderr] 345 |         windows::post_thread_message(self.thread_id, WM_QUIT, 0, 0).unwrap();
[INFO] [stderr]     |                                                      ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/lib.rs:350:55
[INFO] [stderr]     |
[INFO] [stderr] 350 | unsafe extern "system" fn console_ctrl_handler(event: DWORD) -> BOOL {
[INFO] [stderr]     |                                                       ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BOOL` in this scope
[INFO] [stderr]    --> src/lib.rs:350:65
[INFO] [stderr]     |
[INFO] [stderr] 350 | unsafe extern "system" fn console_ctrl_handler(event: DWORD) -> BOOL {
[INFO] [stderr]     |                                                                 ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope
[INFO] [stderr]    --> src/lib.rs:360:38
[INFO] [stderr]     |
[INFO] [stderr] 360 | ...                   Ok(_) => TRUE,
[INFO] [stderr]     |                                ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope
[INFO] [stderr]    --> src/lib.rs:361:39
[INFO] [stderr]     |
[INFO] [stderr] 361 | ...                   Err(_) => FALSE,
[INFO] [stderr]     |                                 ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope
[INFO] [stderr]    --> src/lib.rs:364:29
[INFO] [stderr]     |
[INFO] [stderr] 364 |                     None => FALSE,
[INFO] [stderr]     |                             ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope
[INFO] [stderr]    --> src/lib.rs:367:17
[INFO] [stderr]     |
[INFO] [stderr] 367 |                 FALSE
[INFO] [stderr]     |                 ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope
[INFO] [stderr]    --> src/lib.rs:370:17
[INFO] [stderr]     |
[INFO] [stderr] 370 |         None => FALSE,
[INFO] [stderr]     |                 ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope
[INFO] [stderr]    --> src/lib.rs:375:11
[INFO] [stderr]     |
[INFO] [stderr] 375 |     hwnd: HWND,
[INFO] [stderr]     |           ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `UINT` in this scope
[INFO] [stderr]    --> src/lib.rs:376:10
[INFO] [stderr]     |
[INFO] [stderr] 376 |     msg: UINT,
[INFO] [stderr]     |          ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `WPARAM` in this scope
[INFO] [stderr]    --> src/lib.rs:377:13
[INFO] [stderr]     |
[INFO] [stderr] 377 |     wparam: WPARAM,
[INFO] [stderr]     |             ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LPARAM` in this scope
[INFO] [stderr]    --> src/lib.rs:378:13
[INFO] [stderr]     |
[INFO] [stderr] 378 |     lparam: LPARAM,
[INFO] [stderr]     |             ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LRESULT` in this scope
[INFO] [stderr]    --> src/lib.rs:379:6
[INFO] [stderr]     |
[INFO] [stderr] 379 | ) -> LRESULT {
[INFO] [stderr]     |      ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `WM_CLOSE` in this scope
[INFO] [stderr]    --> src/lib.rs:387:15
[INFO] [stderr]     |
[INFO] [stderr] 387 |     if msg == WM_CLOSE || msg == *WM_CONSOLE_CTRL {
[INFO] [stderr]     |               ^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `DefWindowProcW` in this scope
[INFO] [stderr]    --> src/lib.rs:390:9
[INFO] [stderr]     |
[INFO] [stderr] 390 |         DefWindowProcW(hwnd, msg, wparam, lparam)
[INFO] [stderr]     |         ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0658]: negative trait bounds are not yet fully implemented; use marker types for now
[INFO] [stderr]    --> src/lib.rs:188:6
[INFO] [stderr]     |
[INFO] [stderr] 188 | impl !Send for Trap {}
[INFO] [stderr]     |      ^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: see issue #68318 <https://github.com/rust-lang/rust/issues/68318> for more information
[INFO] [stderr]     = help: add `#![feature(negative_impls)]` to the crate attributes to enable
[INFO] [stderr] 
[INFO] [stderr] error[E0658]: negative trait bounds are not yet fully implemented; use marker types for now
[INFO] [stderr]    --> src/lib.rs:189:6
[INFO] [stderr]     |
[INFO] [stderr] 189 | impl !Sync for Trap {}
[INFO] [stderr]     |      ^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: see issue #68318 <https://github.com/rust-lang/rust/issues/68318> for more information
[INFO] [stderr]     = help: add `#![feature(negative_impls)]` to the crate attributes to enable
[INFO] [stderr] 
[INFO] [stderr] warning: use of deprecated item 'std::mem::uninitialized': use `mem::MaybeUninit` instead
[INFO] [stderr]    --> src/windows.rs:107:37
[INFO] [stderr]     |
[INFO] [stderr] 107 |         let mut process_id: DWORD = mem::uninitialized();
[INFO] [stderr]     |                                     ^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(deprecated)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: use of deprecated item 'std::mem::uninitialized': use `mem::MaybeUninit` instead
[INFO] [stderr]    --> src/windows.rs:114:36
[INFO] [stderr]     |
[INFO] [stderr] 114 |     let mut buf: LPWSTR = unsafe { mem::uninitialized() };
[INFO] [stderr]     |                                    ^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: use of deprecated item 'std::mem::uninitialized': use `mem::MaybeUninit` instead
[INFO] [stderr]    --> src/windows.rs:178:41
[INFO] [stderr]     |
[INFO] [stderr] 178 |             let mut msg: MSG = unsafe { mem::uninitialized() };
[INFO] [stderr]     |                                         ^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] error[E0599]: no method named `encode_wide` found for struct `std::ffi::OsString` in the current scope
[INFO] [stderr]   --> src/windows.rs:58:10
[INFO] [stderr]    |
[INFO] [stderr] 58 |         .encode_wide()
[INFO] [stderr]    |          ^^^^^^^^^^^ method not found in `std::ffi::OsString`
[INFO] [stderr] 
[INFO] [stderr] error[E0599]: no function or associated item named `from_wide` found for struct `std::ffi::OsString` in the current scope
[INFO] [stderr]    --> src/windows.rs:134:19
[INFO] [stderr]     |
[INFO] [stderr] 134 |         OsString::from_wide(unsafe { slice::from_raw_parts(buf as *const u16, size as usize) });
[INFO] [stderr]     |                   ^^^^^^^^^ function or associated item not found in `std::ffi::OsString`
[INFO] [stderr] 
[INFO] [stderr] error[E0599]: no method named `encode_wide` found for struct `std::ffi::OsString` in the current scope
[INFO] [stderr]   --> src/windows.rs:25:10
[INFO] [stderr]    |
[INFO] [stderr] 25 |         .encode_wide()
[INFO] [stderr]    |          ^^^^^^^^^^^ method not found in `std::ffi::OsString`
[INFO] [stderr] 
[INFO] [stderr] error: aborting due to 151 previous errors
[INFO] [stderr] 
[INFO] [stderr] Some errors have detailed explanations: E0412, E0422, E0425, E0433, E0599, E0658.
[INFO] [stderr] For more information about an error, try `rustc --explain E0412`.
[INFO] [stderr] error: could not compile `wintrap`.
[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[E0433]: failed to resolve: use of undeclared type or module `DWORD`
[INFO] [stderr]    --> src/windows.rs:124:13
[INFO] [stderr]     |
[INFO] [stderr] 124 |             DWORD::from(MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT)),
[INFO] [stderr]     |             ^^^^^ use of undeclared type or module `DWORD`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]   --> src/windows.rs:30:28
[INFO] [stderr]    |
[INFO] [stderr] 30 | pub fn get_last_error() -> DWORD {
[INFO] [stderr]    |                            ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope
[INFO] [stderr]   --> src/windows.rs:31:14
[INFO] [stderr]    |
[INFO] [stderr] 31 |     unsafe { GetLastError() }
[INFO] [stderr]    |              ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]   --> src/windows.rs:35:58
[INFO] [stderr]    |
[INFO] [stderr] 35 |     handler_routine: unsafe extern "system" fn(CtrlType: DWORD) -> BOOL,
[INFO] [stderr]    |                                                          ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BOOL` in this scope
[INFO] [stderr]   --> src/windows.rs:35:68
[INFO] [stderr]    |
[INFO] [stderr] 35 |     handler_routine: unsafe extern "system" fn(CtrlType: DWORD) -> BOOL,
[INFO] [stderr]    |                                                                    ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]   --> src/windows.rs:37:17
[INFO] [stderr]    |
[INFO] [stderr] 34 | pub fn set_console_ctrl_handler(
[INFO] [stderr]    |                                - help: you might be missing a type parameter: `<DWORD>`
[INFO] [stderr] ...
[INFO] [stderr] 37 | ) -> Result<(), DWORD> {
[INFO] [stderr]    |                 ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SetConsoleCtrlHandler` in this scope
[INFO] [stderr]   --> src/windows.rs:39:18
[INFO] [stderr]    |
[INFO] [stderr] 34 | / pub fn set_console_ctrl_handler(
[INFO] [stderr] 35 | |     handler_routine: unsafe extern "system" fn(CtrlType: DWORD) -> BOOL,
[INFO] [stderr] 36 | |     add: bool,
[INFO] [stderr] 37 | | ) -> Result<(), DWORD> {
[INFO] [stderr] 38 | |     let result =
[INFO] [stderr] 39 | |         unsafe { SetConsoleCtrlHandler(Some(handler_routine), if add { TRUE } else { FALSE }) };
[INFO] [stderr]    | |                  ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...  |
[INFO] [stderr] 44 | |     }
[INFO] [stderr] 45 | | }
[INFO] [stderr]    | |_- similarly named function `set_console_ctrl_handler` defined here
[INFO] [stderr]    |
[INFO] [stderr] help: a function with a similar name exists
[INFO] [stderr]    |
[INFO] [stderr] 39 |         unsafe { set_console_ctrl_handler(Some(handler_routine), if add { TRUE } else { FALSE }) };
[INFO] [stderr]    |                  ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] help: possible candidate is found in another module, you can import it into scope
[INFO] [stderr]    |
[INFO] [stderr] 1  | use crate::Error::SetConsoleCtrlHandler;
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope
[INFO] [stderr]   --> src/windows.rs:39:72
[INFO] [stderr]    |
[INFO] [stderr] 39 |         unsafe { SetConsoleCtrlHandler(Some(handler_routine), if add { TRUE } else { FALSE }) };
[INFO] [stderr]    |                                                                        ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope
[INFO] [stderr]   --> src/windows.rs:39:86
[INFO] [stderr]    |
[INFO] [stderr] 39 |         unsafe { SetConsoleCtrlHandler(Some(handler_routine), if add { TRUE } else { FALSE }) };
[INFO] [stderr]    |                                                                                      ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope
[INFO] [stderr]   --> src/windows.rs:40:18
[INFO] [stderr]    |
[INFO] [stderr] 40 |     if result == FALSE {
[INFO] [stderr]    |                  ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HMODULE` in this scope
[INFO] [stderr]   --> src/windows.rs:47:38
[INFO] [stderr]    |
[INFO] [stderr] 47 | pub fn get_module_handle() -> Result<HMODULE, DWORD> {
[INFO] [stderr]    |                         -            ^^^^^^^ not found in this scope
[INFO] [stderr]    |                         |
[INFO] [stderr]    |                         help: you might be missing a type parameter: `<HMODULE>`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]   --> src/windows.rs:47:47
[INFO] [stderr]    |
[INFO] [stderr] 47 | pub fn get_module_handle() -> Result<HMODULE, DWORD> {
[INFO] [stderr]    |                         -                     ^^^^^ not found in this scope
[INFO] [stderr]    |                         |
[INFO] [stderr]    |                         help: you might be missing a type parameter: `<DWORD>`
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleW` in this scope
[INFO] [stderr]   --> src/windows.rs:48:27
[INFO] [stderr]    |
[INFO] [stderr] 48 |     let result = unsafe { GetModuleHandleW(ptr::null()) };
[INFO] [stderr]    |                           ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `UINT` in this scope
[INFO] [stderr]   --> src/windows.rs:56:71
[INFO] [stderr]    |
[INFO] [stderr] 56 | pub fn register_window_message(identifier: impl AsRef<str>) -> Result<UINT, DWORD> {
[INFO] [stderr]    |                               -                                       ^^^^ not found in this scope
[INFO] [stderr]    |                               |
[INFO] [stderr]    |                               help: you might be missing a type parameter: `<UINT>`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]   --> src/windows.rs:56:77
[INFO] [stderr]    |
[INFO] [stderr] 56 | pub fn register_window_message(identifier: impl AsRef<str>) -> Result<UINT, DWORD> {
[INFO] [stderr]    |                               -                                             ^^^^^ not found in this scope
[INFO] [stderr]    |                               |
[INFO] [stderr]    |                               help: you might be missing a type parameter: `<DWORD>`
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `RegisterWindowMessageW` in this scope
[INFO] [stderr]   --> src/windows.rs:61:27
[INFO] [stderr]    |
[INFO] [stderr] 56 | pub fn register_window_message(identifier: impl AsRef<str>) -> Result<UINT, DWORD> {
[INFO] [stderr]    | ---------------------------------------------------------------------------------- similarly named function `register_window_message` defined here
[INFO] [stderr] ...
[INFO] [stderr] 61 |     let result = unsafe { RegisterWindowMessageW(identifier_wide.as_ptr()) };
[INFO] [stderr]    |                           ^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `register_window_message`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `UINT` in this scope
[INFO] [stderr]   --> src/windows.rs:71:10
[INFO] [stderr]    |
[INFO] [stderr] 71 |     msg: UINT,
[INFO] [stderr]    |          ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `WPARAM` in this scope
[INFO] [stderr]   --> src/windows.rs:72:13
[INFO] [stderr]    |
[INFO] [stderr] 72 |     wparam: WPARAM,
[INFO] [stderr]    |             ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LPARAM` in this scope
[INFO] [stderr]   --> src/windows.rs:73:13
[INFO] [stderr]    |
[INFO] [stderr] 73 |     lparam: LPARAM,
[INFO] [stderr]    |             ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]   --> src/windows.rs:74:17
[INFO] [stderr]    |
[INFO] [stderr] 69 | pub fn post_thread_message(
[INFO] [stderr]    |                           - help: you might be missing a type parameter: `<DWORD>`
[INFO] [stderr] ...
[INFO] [stderr] 74 | ) -> Result<(), DWORD> {
[INFO] [stderr]    |                 ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `PostThreadMessageW` in this scope
[INFO] [stderr]   --> src/windows.rs:75:27
[INFO] [stderr]    |
[INFO] [stderr] 69 | / pub fn post_thread_message(
[INFO] [stderr] 70 | |     thread_id: u32,
[INFO] [stderr] 71 | |     msg: UINT,
[INFO] [stderr] 72 | |     wparam: WPARAM,
[INFO] [stderr] ...  |
[INFO] [stderr] 75 | |     let result = unsafe { PostThreadMessageW(thread_id, msg, wparam, lparam) };
[INFO] [stderr]    | |                           ^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `post_thread_message`
[INFO] [stderr] ...  |
[INFO] [stderr] 80 | |     }
[INFO] [stderr] 81 | | }
[INFO] [stderr]    | |_- similarly named function `post_thread_message` defined here
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope
[INFO] [stderr]   --> src/windows.rs:76:18
[INFO] [stderr]    |
[INFO] [stderr] 76 |     if result == FALSE {
[INFO] [stderr]    |                  ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `UINT` in this scope
[INFO] [stderr]   --> src/windows.rs:85:10
[INFO] [stderr]    |
[INFO] [stderr] 85 |     msg: UINT,
[INFO] [stderr]    |          ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `WPARAM` in this scope
[INFO] [stderr]   --> src/windows.rs:86:13
[INFO] [stderr]    |
[INFO] [stderr] 86 |     wparam: WPARAM,
[INFO] [stderr]    |             ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LPARAM` in this scope
[INFO] [stderr]   --> src/windows.rs:87:13
[INFO] [stderr]    |
[INFO] [stderr] 87 |     lparam: LPARAM,
[INFO] [stderr]    |             ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]   --> src/windows.rs:88:17
[INFO] [stderr]    |
[INFO] [stderr] 83 | pub fn post_message(
[INFO] [stderr]    |                    - help: you might be missing a type parameter: `<DWORD>`
[INFO] [stderr] ...
[INFO] [stderr] 88 | ) -> Result<(), DWORD> {
[INFO] [stderr]    |                 ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `PostMessageW` in this scope
[INFO] [stderr]   --> src/windows.rs:89:27
[INFO] [stderr]    |
[INFO] [stderr] 83 | / pub fn post_message(
[INFO] [stderr] 84 | |     window_handle: WindowHandle,
[INFO] [stderr] 85 | |     msg: UINT,
[INFO] [stderr] 86 | |     wparam: WPARAM,
[INFO] [stderr] ...  |
[INFO] [stderr] 89 | |     let result = unsafe { PostMessageW(window_handle.hwnd, msg, wparam, lparam) };
[INFO] [stderr]    | |                           ^^^^^^^^^^^^ help: a function with a similar name exists: `post_message`
[INFO] [stderr] ...  |
[INFO] [stderr] 94 | |     }
[INFO] [stderr] 95 | | }
[INFO] [stderr]    | |_- similarly named function `post_message` defined here
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope
[INFO] [stderr]   --> src/windows.rs:90:18
[INFO] [stderr]    |
[INFO] [stderr] 90 |     if result == FALSE {
[INFO] [stderr]    |                  ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]   --> src/windows.rs:97:35
[INFO] [stderr]    |
[INFO] [stderr] 97 | pub fn get_current_thread_id() -> DWORD {
[INFO] [stderr]    |                                   ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetCurrentThreadId` in this scope
[INFO] [stderr]   --> src/windows.rs:98:14
[INFO] [stderr]    |
[INFO] [stderr] 98 |     unsafe { GetCurrentThreadId() }
[INFO] [stderr]    |              ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope
[INFO] [stderr]    --> src/windows.rs:101:53
[INFO] [stderr]     |
[INFO] [stderr] 101 | pub fn enum_windows(proc: unsafe extern "system" fn(HWND, LPARAM) -> BOOL, lparam: LPARAM) -> bool {
[INFO] [stderr]     |                                                     ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LPARAM` in this scope
[INFO] [stderr]    --> src/windows.rs:101:59
[INFO] [stderr]     |
[INFO] [stderr] 101 | pub fn enum_windows(proc: unsafe extern "system" fn(HWND, LPARAM) -> BOOL, lparam: LPARAM) -> bool {
[INFO] [stderr]     |                                                           ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BOOL` in this scope
[INFO] [stderr]    --> src/windows.rs:101:70
[INFO] [stderr]     |
[INFO] [stderr] 101 | pub fn enum_windows(proc: unsafe extern "system" fn(HWND, LPARAM) -> BOOL, lparam: LPARAM) -> bool {
[INFO] [stderr]     |                                                                      ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LPARAM` in this scope
[INFO] [stderr]    --> src/windows.rs:101:84
[INFO] [stderr]     |
[INFO] [stderr] 101 | pub fn enum_windows(proc: unsafe extern "system" fn(HWND, LPARAM) -> BOOL, lparam: LPARAM) -> bool {
[INFO] [stderr]     |                                                                                    ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `EnumWindows` in this scope
[INFO] [stderr]    --> src/windows.rs:102:14
[INFO] [stderr]     |
[INFO] [stderr] 101 | pub fn enum_windows(proc: unsafe extern "system" fn(HWND, LPARAM) -> BOOL, lparam: LPARAM) -> bool {
[INFO] [stderr]     | -------------------------------------------------------------------------------------------------- similarly named function `enum_windows` defined here
[INFO] [stderr] 102 |     unsafe { EnumWindows(Some(proc), lparam) != FALSE }
[INFO] [stderr]     |              ^^^^^^^^^^^ help: a function with a similar name exists: `enum_windows`
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope
[INFO] [stderr]    --> src/windows.rs:102:49
[INFO] [stderr]     |
[INFO] [stderr] 102 |     unsafe { EnumWindows(Some(proc), lparam) != FALSE }
[INFO] [stderr]     |                                                 ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope
[INFO] [stderr]    --> src/windows.rs:105:43
[INFO] [stderr]     |
[INFO] [stderr] 105 | pub fn get_window_thread_process_id(hwnd: HWND) -> (DWORD, DWORD) {
[INFO] [stderr]     |                                           ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/windows.rs:105:53
[INFO] [stderr]     |
[INFO] [stderr] 105 | pub fn get_window_thread_process_id(hwnd: HWND) -> (DWORD, DWORD) {
[INFO] [stderr]     |                                                     ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/windows.rs:105:60
[INFO] [stderr]     |
[INFO] [stderr] 105 | pub fn get_window_thread_process_id(hwnd: HWND) -> (DWORD, DWORD) {
[INFO] [stderr]     |                                                            ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/windows.rs:107:29
[INFO] [stderr]     |
[INFO] [stderr] 107 |         let mut process_id: DWORD = mem::uninitialized();
[INFO] [stderr]     |                             ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetWindowThreadProcessId` in this scope
[INFO] [stderr]    --> src/windows.rs:108:25
[INFO] [stderr]     |
[INFO] [stderr] 108 |         let thread_id = GetWindowThreadProcessId(hwnd, &mut process_id as *mut DWORD);
[INFO] [stderr]     |                         ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/windows.rs:108:80
[INFO] [stderr]     |
[INFO] [stderr] 108 |         let thread_id = GetWindowThreadProcessId(hwnd, &mut process_id as *mut DWORD);
[INFO] [stderr]     |                                                                                ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/windows.rs:113:27
[INFO] [stderr]     |
[INFO] [stderr] 113 | pub fn format_error(code: DWORD) -> Result<String, DWORD> {
[INFO] [stderr]     |                           ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/windows.rs:113:52
[INFO] [stderr]     |
[INFO] [stderr] 113 | pub fn format_error(code: DWORD) -> Result<String, DWORD> {
[INFO] [stderr]     |                    -                               ^^^^^ not found in this scope
[INFO] [stderr]     |                    |
[INFO] [stderr]     |                    help: you might be missing a type parameter: `<DWORD>`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LPWSTR` in this scope
[INFO] [stderr]    --> src/windows.rs:114:18
[INFO] [stderr]     |
[INFO] [stderr] 114 |     let mut buf: LPWSTR = unsafe { mem::uninitialized() };
[INFO] [stderr]     |                  ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LPWSTR` in this scope
[INFO] [stderr]    --> src/windows.rs:116:50
[INFO] [stderr]     |
[INFO] [stderr] 113 | pub fn format_error(code: DWORD) -> Result<String, DWORD> {
[INFO] [stderr]     |                    - help: you might be missing a type parameter: `<LPWSTR>`
[INFO] [stderr] ...
[INFO] [stderr] 116 |     let buf_ptr = unsafe { mem::transmute::<*mut LPWSTR, LPWSTR>(&mut buf as *mut LPWSTR) };
[INFO] [stderr]     |                                                  ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LPWSTR` in this scope
[INFO] [stderr]    --> src/windows.rs:116:58
[INFO] [stderr]     |
[INFO] [stderr] 113 | pub fn format_error(code: DWORD) -> Result<String, DWORD> {
[INFO] [stderr]     |                    - help: you might be missing a type parameter: `<LPWSTR>`
[INFO] [stderr] ...
[INFO] [stderr] 116 |     let buf_ptr = unsafe { mem::transmute::<*mut LPWSTR, LPWSTR>(&mut buf as *mut LPWSTR) };
[INFO] [stderr]     |                                                          ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LPWSTR` in this scope
[INFO] [stderr]    --> src/windows.rs:116:83
[INFO] [stderr]     |
[INFO] [stderr] 116 |     let buf_ptr = unsafe { mem::transmute::<*mut LPWSTR, LPWSTR>(&mut buf as *mut LPWSTR) };
[INFO] [stderr]     |                                                                                   ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `FormatMessageW` in this scope
[INFO] [stderr]    --> src/windows.rs:118:9
[INFO] [stderr]     |
[INFO] [stderr] 118 |         FormatMessageW(
[INFO] [stderr]     |         ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FORMAT_MESSAGE_ALLOCATE_BUFFER` in this scope
[INFO] [stderr]    --> src/windows.rs:119:13
[INFO] [stderr]     |
[INFO] [stderr] 119 |             FORMAT_MESSAGE_ALLOCATE_BUFFER
[INFO] [stderr]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FORMAT_MESSAGE_FROM_SYSTEM` in this scope
[INFO] [stderr]    --> src/windows.rs:120:19
[INFO] [stderr]     |
[INFO] [stderr] 120 |                 | FORMAT_MESSAGE_FROM_SYSTEM
[INFO] [stderr]     |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FORMAT_MESSAGE_IGNORE_INSERTS` in this scope
[INFO] [stderr]    --> src/windows.rs:121:19
[INFO] [stderr]     |
[INFO] [stderr] 121 |                 | FORMAT_MESSAGE_IGNORE_INSERTS,
[INFO] [stderr]     |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `MAKELANGID` in this scope
[INFO] [stderr]    --> src/windows.rs:124:25
[INFO] [stderr]     |
[INFO] [stderr] 124 |             DWORD::from(MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT)),
[INFO] [stderr]     |                         ^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `LANG_NEUTRAL` in this scope
[INFO] [stderr]    --> src/windows.rs:124:36
[INFO] [stderr]     |
[INFO] [stderr] 124 |             DWORD::from(MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT)),
[INFO] [stderr]     |                                    ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `SUBLANG_DEFAULT` in this scope
[INFO] [stderr]    --> src/windows.rs:124:50
[INFO] [stderr]     |
[INFO] [stderr] 124 |             DWORD::from(MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT)),
[INFO] [stderr]     |                                                  ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `LocalFree` in this scope
[INFO] [stderr]    --> src/windows.rs:135:14
[INFO] [stderr]     |
[INFO] [stderr] 135 |     unsafe { LocalFree(buf as HLOCAL) };
[INFO] [stderr]     |              ^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HLOCAL` in this scope
[INFO] [stderr]    --> src/windows.rs:135:31
[INFO] [stderr]     |
[INFO] [stderr] 135 |     unsafe { LocalFree(buf as HLOCAL) };
[INFO] [stderr]     |                               ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope
[INFO] [stderr]    --> src/windows.rs:142:15
[INFO] [stderr]     |
[INFO] [stderr] 142 |     pub hwnd: HWND,
[INFO] [stderr]     |               ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope
[INFO] [stderr]    --> src/windows.rs:149:41
[INFO] [stderr]     |
[INFO] [stderr] 149 |         proc: unsafe extern "system" fn(HWND, UINT, WPARAM, LPARAM) -> LRESULT,
[INFO] [stderr]     |                                         ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `UINT` in this scope
[INFO] [stderr]    --> src/windows.rs:149:47
[INFO] [stderr]     |
[INFO] [stderr] 149 |         proc: unsafe extern "system" fn(HWND, UINT, WPARAM, LPARAM) -> LRESULT,
[INFO] [stderr]     |                                               ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `WPARAM` in this scope
[INFO] [stderr]    --> src/windows.rs:149:53
[INFO] [stderr]     |
[INFO] [stderr] 149 |         proc: unsafe extern "system" fn(HWND, UINT, WPARAM, LPARAM) -> LRESULT,
[INFO] [stderr]     |                                                     ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LPARAM` in this scope
[INFO] [stderr]    --> src/windows.rs:149:61
[INFO] [stderr]     |
[INFO] [stderr] 149 |         proc: unsafe extern "system" fn(HWND, UINT, WPARAM, LPARAM) -> LRESULT,
[INFO] [stderr]     |                                                             ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LRESULT` in this scope
[INFO] [stderr]    --> src/windows.rs:149:72
[INFO] [stderr]     |
[INFO] [stderr] 149 |         proc: unsafe extern "system" fn(HWND, UINT, WPARAM, LPARAM) -> LRESULT,
[INFO] [stderr]     |                                                                        ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/windows.rs:150:25
[INFO] [stderr]     |
[INFO] [stderr] 147 | impl Window {
[INFO] [stderr]     |     - help: you might be missing a type parameter: `<DWORD>`
[INFO] [stderr] ...
[INFO] [stderr] 150 |     ) -> Result<Window, DWORD> {
[INFO] [stderr]     |                         ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `CreateWindowExW` in this scope
[INFO] [stderr]    --> src/windows.rs:154:24
[INFO] [stderr]     |
[INFO] [stderr] 154 |             let hwnd = CreateWindowExW(
[INFO] [stderr]     |                        ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LPCWSTR` in this scope
[INFO] [stderr]    --> src/windows.rs:156:42
[INFO] [stderr]     |
[INFO] [stderr] 156 |                 window_class.wndclass as LPCWSTR,
[INFO] [stderr]     |                                          ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `MSG` in this scope
[INFO] [stderr]    --> src/windows.rs:176:59
[INFO] [stderr]     |
[INFO] [stderr] 176 |     pub fn run_event_loop(&mut self, message_cb: impl Fn(&MSG)) -> Result<i32, DWORD> {
[INFO] [stderr]     |                                                           ^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/windows.rs:176:80
[INFO] [stderr]     |
[INFO] [stderr] 147 | impl Window {
[INFO] [stderr]     |     - help: you might be missing a type parameter: `<DWORD>`
[INFO] [stderr] ...
[INFO] [stderr] 176 |     pub fn run_event_loop(&mut self, message_cb: impl Fn(&MSG)) -> Result<i32, DWORD> {
[INFO] [stderr]     |                                                                                ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `MSG` in this scope
[INFO] [stderr]    --> src/windows.rs:178:26
[INFO] [stderr]     |
[INFO] [stderr] 178 |             let mut msg: MSG = unsafe { mem::uninitialized() };
[INFO] [stderr]     |                          ^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetMessageW` in this scope
[INFO] [stderr]    --> src/windows.rs:179:32
[INFO] [stderr]     |
[INFO] [stderr] 179 |             let ret = unsafe { GetMessageW(&mut msg as *mut MSG, ptr::null_mut(), 0, 0) };
[INFO] [stderr]     |                                ^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `MSG` in this scope
[INFO] [stderr]    --> src/windows.rs:179:61
[INFO] [stderr]     |
[INFO] [stderr] 179 |             let ret = unsafe { GetMessageW(&mut msg as *mut MSG, ptr::null_mut(), 0, 0) };
[INFO] [stderr]     |                                                             ^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `TranslateMessage` in this scope
[INFO] [stderr]    --> src/windows.rs:183:21
[INFO] [stderr]     |
[INFO] [stderr] 183 |                     TranslateMessage(&mut msg as *mut MSG);
[INFO] [stderr]     |                     ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `MSG` in this scope
[INFO] [stderr]    --> src/windows.rs:183:55
[INFO] [stderr]     |
[INFO] [stderr] 183 |                     TranslateMessage(&mut msg as *mut MSG);
[INFO] [stderr]     |                                                       ^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `DispatchMessageW` in this scope
[INFO] [stderr]    --> src/windows.rs:184:21
[INFO] [stderr]     |
[INFO] [stderr] 184 |                     DispatchMessageW(&mut msg as *mut MSG);
[INFO] [stderr]     |                     ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `MSG` in this scope
[INFO] [stderr]    --> src/windows.rs:184:55
[INFO] [stderr]     |
[INFO] [stderr] 184 |                     DispatchMessageW(&mut msg as *mut MSG);
[INFO] [stderr]     |                                                       ^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `DestroyWindow` in this scope
[INFO] [stderr]    --> src/windows.rs:197:18
[INFO] [stderr]     |
[INFO] [stderr] 197 |         unsafe { DestroyWindow(self.hwnd) };
[INFO] [stderr]     |                  ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `ATOM` in this scope
[INFO] [stderr]    --> src/windows.rs:206:15
[INFO] [stderr]     |
[INFO] [stderr] 206 |     wndclass: ATOM,
[INFO] [stderr]     |               ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HINSTANCE` in this scope
[INFO] [stderr]    --> src/windows.rs:207:15
[INFO] [stderr]     |
[INFO] [stderr] 207 |     instance: HINSTANCE,
[INFO] [stderr]     |               ^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope
[INFO] [stderr]    --> src/windows.rs:212:41
[INFO] [stderr]     |
[INFO] [stderr] 212 |         proc: unsafe extern "system" fn(HWND, UINT, WPARAM, LPARAM) -> LRESULT,
[INFO] [stderr]     |                                         ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `UINT` in this scope
[INFO] [stderr]    --> src/windows.rs:212:47
[INFO] [stderr]     |
[INFO] [stderr] 212 |         proc: unsafe extern "system" fn(HWND, UINT, WPARAM, LPARAM) -> LRESULT,
[INFO] [stderr]     |                                               ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `WPARAM` in this scope
[INFO] [stderr]    --> src/windows.rs:212:53
[INFO] [stderr]     |
[INFO] [stderr] 212 |         proc: unsafe extern "system" fn(HWND, UINT, WPARAM, LPARAM) -> LRESULT,
[INFO] [stderr]     |                                                     ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LPARAM` in this scope
[INFO] [stderr]    --> src/windows.rs:212:61
[INFO] [stderr]     |
[INFO] [stderr] 212 |         proc: unsafe extern "system" fn(HWND, UINT, WPARAM, LPARAM) -> LRESULT,
[INFO] [stderr]     |                                                             ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LRESULT` in this scope
[INFO] [stderr]    --> src/windows.rs:212:72
[INFO] [stderr]     |
[INFO] [stderr] 212 |         proc: unsafe extern "system" fn(HWND, UINT, WPARAM, LPARAM) -> LRESULT,
[INFO] [stderr]     |                                                                        ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HMODULE` in this scope
[INFO] [stderr]    --> src/windows.rs:213:19
[INFO] [stderr]     |
[INFO] [stderr] 213 |         instance: HMODULE,
[INFO] [stderr]     |                   ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/windows.rs:214:30
[INFO] [stderr]     |
[INFO] [stderr] 210 | impl WindowClass {
[INFO] [stderr]     |     - help: you might be missing a type parameter: `<DWORD>`
[INFO] [stderr] ...
[INFO] [stderr] 214 |     ) -> Result<WindowClass, DWORD> {
[INFO] [stderr]     |                              ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `WNDCLASSEXW` in this scope
[INFO] [stderr]    --> src/windows.rs:215:24
[INFO] [stderr]     |
[INFO] [stderr] 215 |         let mut opts = WNDCLASSEXW {
[INFO] [stderr]     |                        ^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `WNDCLASSEXW` in this scope
[INFO] [stderr]    --> src/windows.rs:216:36
[INFO] [stderr]     |
[INFO] [stderr] 210 | impl WindowClass {
[INFO] [stderr]     |     - help: you might be missing a type parameter: `<WNDCLASSEXW>`
[INFO] [stderr] ...
[INFO] [stderr] 216 |             cbSize: mem::size_of::<WNDCLASSEXW>() as u32,
[INFO] [stderr]     |                                    ^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `RegisterClassExW` in this scope
[INFO] [stderr]    --> src/windows.rs:229:33
[INFO] [stderr]     |
[INFO] [stderr] 229 |         let wndclass = unsafe { RegisterClassExW(&mut opts as *mut WNDCLASSEXW) };
[INFO] [stderr]     |                                 ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `WNDCLASSEXW` in this scope
[INFO] [stderr]    --> src/windows.rs:229:68
[INFO] [stderr]     |
[INFO] [stderr] 229 |         let wndclass = unsafe { RegisterClassExW(&mut opts as *mut WNDCLASSEXW) };
[INFO] [stderr]     |                                                                    ^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope
[INFO] [stderr]    --> src/windows.rs:231:26
[INFO] [stderr]     |
[INFO] [stderr] 231 |             Err(unsafe { GetLastError() })
[INFO] [stderr]     |                          ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `UnregisterClassW` in this scope
[INFO] [stderr]    --> src/windows.rs:240:18
[INFO] [stderr]     |
[INFO] [stderr] 240 |         unsafe { UnregisterClassW(self.wndclass as *mut u16, self.instance) };
[INFO] [stderr]     |                  ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope
[INFO] [stderr]    --> src/windows.rs:246:15
[INFO] [stderr]     |
[INFO] [stderr] 246 |     pub hwnd: HWND,
[INFO] [stderr]     |               ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]   --> src/lib.rs:99:39
[INFO] [stderr]    |
[INFO] [stderr] 99 |     fn from_console_ctrl_event(event: DWORD) -> Option<Self> {
[INFO] [stderr]    |                                       ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `UINT` in this scope
[INFO] [stderr]    --> src/lib.rs:108:33
[INFO] [stderr]     |
[INFO] [stderr] 108 |     fn from_window_message(msg: UINT, wparam: WPARAM, _lparam: LPARAM) -> Option<Self> {
[INFO] [stderr]     |                                 ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `WPARAM` in this scope
[INFO] [stderr]    --> src/lib.rs:108:47
[INFO] [stderr]     |
[INFO] [stderr] 108 |     fn from_window_message(msg: UINT, wparam: WPARAM, _lparam: LPARAM) -> Option<Self> {
[INFO] [stderr]     |                                               ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LPARAM` in this scope
[INFO] [stderr]    --> src/lib.rs:108:64
[INFO] [stderr]     |
[INFO] [stderr] 108 |     fn from_window_message(msg: UINT, wparam: WPARAM, _lparam: LPARAM) -> Option<Self> {
[INFO] [stderr]     |                                                                ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `WM_CLOSE` in this scope
[INFO] [stderr]    --> src/lib.rs:109:19
[INFO] [stderr]     |
[INFO] [stderr] 109 |         if msg == WM_CLOSE {
[INFO] [stderr]     |                   ^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/lib.rs:112:55
[INFO] [stderr]     |
[INFO] [stderr] 112 |             Signal::from_console_ctrl_event(wparam as DWORD)
[INFO] [stderr]     |                                                       ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/lib.rs:127:27
[INFO] [stderr]     |
[INFO] [stderr] 127 |     SetConsoleCtrlHandler(DWORD),
[INFO] [stderr]     |                           ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/lib.rs:136:18
[INFO] [stderr]     |
[INFO] [stderr] 136 |     CreateWindow(DWORD),
[INFO] [stderr]     |                  ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `UINT` in this scope
[INFO] [stderr]    --> src/lib.rs:159:33
[INFO] [stderr]     |
[INFO] [stderr] 159 |     static ref WM_CONSOLE_CTRL: UINT =
[INFO] [stderr]     |                                 ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope
[INFO] [stderr]    --> src/lib.rs:260:23
[INFO] [stderr]     |
[INFO] [stderr] 260 |                 hwnd: HWND,
[INFO] [stderr]     |                       ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/lib.rs:261:29
[INFO] [stderr]     |
[INFO] [stderr] 261 |                 process_id: DWORD,
[INFO] [stderr]     |                             ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope
[INFO] [stderr]    --> src/lib.rs:267:63
[INFO] [stderr]     |
[INFO] [stderr] 267 |             unsafe extern "system" fn enum_windows_proc(hwnd: HWND, lparam: LPARAM) -> BOOL {
[INFO] [stderr]     |                                                               ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LPARAM` in this scope
[INFO] [stderr]    --> src/lib.rs:267:77
[INFO] [stderr]     |
[INFO] [stderr] 267 |             unsafe extern "system" fn enum_windows_proc(hwnd: HWND, lparam: LPARAM) -> BOOL {
[INFO] [stderr]     |                                                                             ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BOOL` in this scope
[INFO] [stderr]    --> src/lib.rs:267:88
[INFO] [stderr]     |
[INFO] [stderr] 267 |             unsafe extern "system" fn enum_windows_proc(hwnd: HWND, lparam: LPARAM) -> BOOL {
[INFO] [stderr]     |                                                                                        ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope
[INFO] [stderr]    --> src/lib.rs:270:21
[INFO] [stderr]     |
[INFO] [stderr] 270 |                     TRUE
[INFO] [stderr]     |                     ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope
[INFO] [stderr]    --> src/lib.rs:274:25
[INFO] [stderr]     |
[INFO] [stderr] 274 |                         FALSE
[INFO] [stderr]     |                         ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope
[INFO] [stderr]    --> src/lib.rs:276:25
[INFO] [stderr]     |
[INFO] [stderr] 276 |                         TRUE
[INFO] [stderr]     |                         ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LPARAM` in this scope
[INFO] [stderr]    --> src/lib.rs:284:67
[INFO] [stderr]     |
[INFO] [stderr] 284 |                 (&enum_windows_data as *const EnumWindowsData) as LPARAM,
[INFO] [stderr]     |                                                                   ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/lib.rs:296:16
[INFO] [stderr]     |
[INFO] [stderr] 296 |     thread_id: DWORD,
[INFO] [stderr]     |                ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `WM_CLOSE` in this scope
[INFO] [stderr]    --> src/lib.rs:320:50
[INFO] [stderr]     |
[INFO] [stderr] 320 |                         } else if msg.message == WM_CLOSE {
[INFO] [stderr]     |                                                  ^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/lib.rs:328:46
[INFO] [stderr]     |
[INFO] [stderr] 328 |         let thread_id = r.recv().unwrap() as DWORD;
[INFO] [stderr]     |                                              ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope
[INFO] [stderr]    --> src/lib.rs:329:41
[INFO] [stderr]     |
[INFO] [stderr] 329 |         let hwnd = r.recv().unwrap() as HWND;
[INFO] [stderr]     |                                         ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/lib.rs:337:41
[INFO] [stderr]     |
[INFO] [stderr] 337 |     fn enqueue_ctrl_event(&self, event: DWORD) -> Result<(), DWORD> {
[INFO] [stderr]     |                                         ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/lib.rs:337:62
[INFO] [stderr]     |
[INFO] [stderr] 300 | impl TrapThreadData {
[INFO] [stderr]     |     - help: you might be missing a type parameter: `<DWORD>`
[INFO] [stderr] ...
[INFO] [stderr] 337 |     fn enqueue_ctrl_event(&self, event: DWORD) -> Result<(), DWORD> {
[INFO] [stderr]     |                                                              ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `WPARAM` in this scope
[INFO] [stderr]    --> src/lib.rs:338:78
[INFO] [stderr]     |
[INFO] [stderr] 338 |         windows::post_message(self.window_handle, *WM_CONSOLE_CTRL, event as WPARAM, 0)
[INFO] [stderr]     |                                                                              ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `WM_QUIT` in this scope
[INFO] [stderr]    --> src/lib.rs:345:54
[INFO] [stderr]     |
[INFO] [stderr] 345 |         windows::post_thread_message(self.thread_id, WM_QUIT, 0, 0).unwrap();
[INFO] [stderr]     |                                                      ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/lib.rs:350:55
[INFO] [stderr]     |
[INFO] [stderr] 350 | unsafe extern "system" fn console_ctrl_handler(event: DWORD) -> BOOL {
[INFO] [stderr]     |                                                       ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BOOL` in this scope
[INFO] [stderr]    --> src/lib.rs:350:65
[INFO] [stderr]     |
[INFO] [stderr] 350 | unsafe extern "system" fn console_ctrl_handler(event: DWORD) -> BOOL {
[INFO] [stderr]     |                                                                 ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `TRUE` in this scope
[INFO] [stderr]    --> src/lib.rs:360:38
[INFO] [stderr]     |
[INFO] [stderr] 360 | ...                   Ok(_) => TRUE,
[INFO] [stderr]     |                                ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope
[INFO] [stderr]    --> src/lib.rs:361:39
[INFO] [stderr]     |
[INFO] [stderr] 361 | ...                   Err(_) => FALSE,
[INFO] [stderr]     |                                 ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope
[INFO] [stderr]    --> src/lib.rs:364:29
[INFO] [stderr]     |
[INFO] [stderr] 364 |                     None => FALSE,
[INFO] [stderr]     |                             ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope
[INFO] [stderr]    --> src/lib.rs:367:17
[INFO] [stderr]     |
[INFO] [stderr] 367 |                 FALSE
[INFO] [stderr]     |                 ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope
[INFO] [stderr]    --> src/lib.rs:370:17
[INFO] [stderr]     |
[INFO] [stderr] 370 |         None => FALSE,
[INFO] [stderr]     |                 ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope
[INFO] [stderr]    --> src/lib.rs:375:11
[INFO] [stderr]     |
[INFO] [stderr] 375 |     hwnd: HWND,
[INFO] [stderr]     |           ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `UINT` in this scope
[INFO] [stderr]    --> src/lib.rs:376:10
[INFO] [stderr]     |
[INFO] [stderr] 376 |     msg: UINT,
[INFO] [stderr]     |          ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `WPARAM` in this scope
[INFO] [stderr]    --> src/lib.rs:377:13
[INFO] [stderr]     |
[INFO] [stderr] 377 |     wparam: WPARAM,
[INFO] [stderr]     |             ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LPARAM` in this scope
[INFO] [stderr]    --> src/lib.rs:378:13
[INFO] [stderr]     |
[INFO] [stderr] 378 |     lparam: LPARAM,
[INFO] [stderr]     |             ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LRESULT` in this scope
[INFO] [stderr]    --> src/lib.rs:379:6
[INFO] [stderr]     |
[INFO] [stderr] 379 | ) -> LRESULT {
[INFO] [stderr]     |      ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `WM_CLOSE` in this scope
[INFO] [stderr]    --> src/lib.rs:387:15
[INFO] [stderr]     |
[INFO] [stderr] 387 |     if msg == WM_CLOSE || msg == *WM_CONSOLE_CTRL {
[INFO] [stderr]     |               ^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `DefWindowProcW` in this scope
[INFO] [stderr]    --> src/lib.rs:390:9
[INFO] [stderr]     |
[INFO] [stderr] 390 |         DefWindowProcW(hwnd, msg, wparam, lparam)
[INFO] [stderr]     |         ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0658]: negative trait bounds are not yet fully implemented; use marker types for now
[INFO] [stderr]    --> src/lib.rs:188:6
[INFO] [stderr]     |
[INFO] [stderr] 188 | impl !Send for Trap {}
[INFO] [stderr]     |      ^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: see issue #68318 <https://github.com/rust-lang/rust/issues/68318> for more information
[INFO] [stderr]     = help: add `#![feature(negative_impls)]` to the crate attributes to enable
[INFO] [stderr] 
[INFO] [stderr] error[E0658]: negative trait bounds are not yet fully implemented; use marker types for now
[INFO] [stderr]    --> src/lib.rs:189:6
[INFO] [stderr]     |
[INFO] [stderr] 189 | impl !Sync for Trap {}
[INFO] [stderr]     |      ^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: see issue #68318 <https://github.com/rust-lang/rust/issues/68318> for more information
[INFO] [stderr]     = help: add `#![feature(negative_impls)]` to the crate attributes to enable
[INFO] [stderr] 
[INFO] [stderr] warning: use of deprecated item 'std::mem::uninitialized': use `mem::MaybeUninit` instead
[INFO] [stderr]    --> src/windows.rs:107:37
[INFO] [stderr]     |
[INFO] [stderr] 107 |         let mut process_id: DWORD = mem::uninitialized();
[INFO] [stderr]     |                                     ^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(deprecated)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: use of deprecated item 'std::mem::uninitialized': use `mem::MaybeUninit` instead
[INFO] [stderr]    --> src/windows.rs:114:36
[INFO] [stderr]     |
[INFO] [stderr] 114 |     let mut buf: LPWSTR = unsafe { mem::uninitialized() };
[INFO] [stderr]     |                                    ^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: use of deprecated item 'std::mem::uninitialized': use `mem::MaybeUninit` instead
[INFO] [stderr]    --> src/windows.rs:178:41
[INFO] [stderr]     |
[INFO] [stderr] 178 |             let mut msg: MSG = unsafe { mem::uninitialized() };
[INFO] [stderr]     |                                         ^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] error[E0599]: no method named `encode_wide` found for struct `std::ffi::OsString` in the current scope
[INFO] [stderr]   --> src/windows.rs:58:10
[INFO] [stderr]    |
[INFO] [stderr] 58 |         .encode_wide()
[INFO] [stderr]    |          ^^^^^^^^^^^ method not found in `std::ffi::OsString`
[INFO] [stderr] 
[INFO] [stderr] error[E0599]: no function or associated item named `from_wide` found for struct `std::ffi::OsString` in the current scope
[INFO] [stderr]    --> src/windows.rs:134:19
[INFO] [stderr]     |
[INFO] [stderr] 134 |         OsString::from_wide(unsafe { slice::from_raw_parts(buf as *const u16, size as usize) });
[INFO] [stderr]     |                   ^^^^^^^^^ function or associated item not found in `std::ffi::OsString`
[INFO] [stderr] 
[INFO] [stderr] error[E0599]: no method named `encode_wide` found for struct `std::ffi::OsString` in the current scope
[INFO] [stderr]   --> src/windows.rs:25:10
[INFO] [stderr]    |
[INFO] [stderr] 25 |         .encode_wide()
[INFO] [stderr]    |          ^^^^^^^^^^^ method not found in `std::ffi::OsString`
[INFO] [stderr] 
[INFO] [stderr] error: aborting due to 151 previous errors
[INFO] [stderr] 
[INFO] [stderr] Some errors have detailed explanations: E0412, E0422, E0425, E0433, E0599, E0658.
[INFO] [stderr] For more information about an error, try `rustc --explain E0412`.
[INFO] [stderr] error: could not compile `wintrap`.
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] running `"docker" "inspect" "963a9ec45d2cc5b5a8a6a000acfba3d9aff0a3311628acad482afa507c879516"`
[INFO] running `"docker" "rm" "-f" "963a9ec45d2cc5b5a8a6a000acfba3d9aff0a3311628acad482afa507c879516"`
[INFO] [stdout] 963a9ec45d2cc5b5a8a6a000acfba3d9aff0a3311628acad482afa507c879516
