[INFO] updating cached repository https://github.com/edkins/reduce
[INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"`
[INFO] running `"git" "rev-parse" "HEAD"`
[INFO] [stdout] d8073d2b0c26ae5daa3249ea6b99df6df984d06e
[INFO] checking edkins/reduce against master#209b2be09fcaff937480d1fbbe8b31646e361c7a for pr-70917
[INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fedkins%2Freduce" "/workspace/builds/worker-9/source"`
[INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/edkins/reduce on toolchain 209b2be09fcaff937480d1fbbe8b31646e361c7a
[INFO] running `"/workspace/cargo-home/bin/cargo" "+209b2be09fcaff937480d1fbbe8b31646e361c7a" "read-manifest" "--manifest-path" "Cargo.toml"`
[INFO] started tweaking git repo https://github.com/edkins/reduce
[INFO] finished tweaking git repo https://github.com/edkins/reduce
[INFO] tweaked toml for git repo https://github.com/edkins/reduce written to /workspace/builds/worker-9/source/Cargo.toml
[INFO] crate git repo https://github.com/edkins/reduce already has a lockfile, it will not be regenerated
[INFO] running `"/workspace/cargo-home/bin/cargo" "+209b2be09fcaff937480d1fbbe8b31646e361c7a" "fetch" "--locked" "--manifest-path" "Cargo.toml"`
[INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "+209b2be09fcaff937480d1fbbe8b31646e361c7a" "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] 90f311a000398a4df500ca99ab3957c6bdacc330291f8519be7f68f043cc79a6
[INFO] running `"docker" "start" "-a" "90f311a000398a4df500ca99ab3957c6bdacc330291f8519be7f68f043cc79a6"`
[INFO] [stderr]    Compiling winapi v0.3.8
[INFO] [stderr]    Compiling embed-resource v1.3.0
[INFO] [stderr]    Compiling memoffset v0.5.1
[INFO] [stderr]    Compiling num-derive v0.2.5
[INFO] [stderr]     Checking crossbeam-epoch v0.7.2
[INFO] [stderr]    Compiling reduce v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Checking crossbeam-deque v0.7.1
[INFO] [stderr]     Checking rayon-core v1.6.0
[INFO] [stderr]     Checking rayon v1.2.0
[INFO] [stderr]     Checking tiff v0.3.1
[INFO] [stderr]     Checking jpeg-decoder v0.1.16
[INFO] [stderr]     Checking image v0.22.1
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]  --> src/event.rs:4:13
[INFO] [stderr]   |
[INFO] [stderr] 4 | use winapi::shared::minwindef::{UINT,WPARAM,LPARAM};
[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/event.rs:5:13
[INFO] [stderr]   |
[INFO] [stderr] 5 | use winapi::shared::windef::{HWND,HBRUSH,RECT};
[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/event.rs:6:13
[INFO] [stderr]   |
[INFO] [stderr] 6 | 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/image.rs:7:13
[INFO] [stderr]   |
[INFO] [stderr] 7 | use winapi::shared::minwindef::DWORD;
[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/image.rs:8:13
[INFO] [stderr]   |
[INFO] [stderr] 8 | use winapi::shared::windef::HDC;
[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/image.rs:9:13
[INFO] [stderr]   |
[INFO] [stderr] 9 | use winapi::um::wingdi::{SetDIBitsToDevice,BITMAPINFO,BITMAPINFOHEADER,RGBQUAD,BI_RGB,DIB_RGB_COLORS};
[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/image.rs:10:13
[INFO] [stderr]    |
[INFO] [stderr] 10 | use winapi::um::winnt::LONG;
[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/open.rs:4:13
[INFO] [stderr]   |
[INFO] [stderr] 4 | 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/open.rs:5:13
[INFO] [stderr]   |
[INFO] [stderr] 5 | use winapi::um::commdlg::{OPENFILENAMEW,OFN_EXPLORER,OFN_FILEMUSTEXIST,OFN_HIDEREADONLY,OFN_PATHMUSTEXIST,GetOpenFileNameW};
[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/open.rs:6:13
[INFO] [stderr]   |
[INFO] [stderr] 6 | 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/ui.rs:3:13
[INFO] [stderr]   |
[INFO] [stderr] 3 | use winapi::um::winuser::{WS_HSCROLL,WS_VSCROLL,SWP_NOZORDER,
[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/window.rs:3:13
[INFO] [stderr]   |
[INFO] [stderr] 3 | use winapi::shared::minwindef::DWORD;
[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/window.rs:4:13
[INFO] [stderr]   |
[INFO] [stderr] 4 | 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/window.rs:5:13
[INFO] [stderr]   |
[INFO] [stderr] 5 | use winapi::um::winuser::{
[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/window.rs:12:13
[INFO] [stderr]    |
[INFO] [stderr] 12 | 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 `shared` in `winapi`
[INFO] [stderr]   --> src/main.rs:12:13
[INFO] [stderr]    |
[INFO] [stderr] 12 | use winapi::shared::minwindef::FALSE;
[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/main.rs:13:13
[INFO] [stderr]    |
[INFO] [stderr] 13 | 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/main.rs:14:13
[INFO] [stderr]    |
[INFO] [stderr] 14 | use winapi::um::winuser::{InvalidateRect};
[INFO] [stderr]    |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0432]: unresolved import `winapi::ctypes`
[INFO] [stderr]   --> src/image.rs:11:13
[INFO] [stderr]    |
[INFO] [stderr] 11 | use winapi::ctypes::c_void;
[INFO] [stderr]    |             ^^^^^^ could not find `ctypes` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]  --> src/event.rs:4:13
[INFO] [stderr]   |
[INFO] [stderr] 4 | use winapi::shared::minwindef::{UINT,WPARAM,LPARAM};
[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/event.rs:5:13
[INFO] [stderr]   |
[INFO] [stderr] 5 | use winapi::shared::windef::{HWND,HBRUSH,RECT};
[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/event.rs:6:13
[INFO] [stderr]   |
[INFO] [stderr] 6 | 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/image.rs:7:13
[INFO] [stderr]   |
[INFO] [stderr] 7 | use winapi::shared::minwindef::DWORD;
[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/image.rs:8:13
[INFO] [stderr]   |
[INFO] [stderr] 8 | use winapi::shared::windef::HDC;
[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/image.rs:9:13
[INFO] [stderr]   |
[INFO] [stderr] 9 | use winapi::um::wingdi::{SetDIBitsToDevice,BITMAPINFO,BITMAPINFOHEADER,RGBQUAD,BI_RGB,DIB_RGB_COLORS};
[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/image.rs:10:13
[INFO] [stderr]    |
[INFO] [stderr] 10 | use winapi::um::winnt::LONG;
[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/open.rs:4:13
[INFO] [stderr]   |
[INFO] [stderr] 4 | 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/open.rs:5:13
[INFO] [stderr]   |
[INFO] [stderr] 5 | use winapi::um::commdlg::{OPENFILENAMEW,OFN_EXPLORER,OFN_FILEMUSTEXIST,OFN_HIDEREADONLY,OFN_PATHMUSTEXIST,GetOpenFileNameW};
[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/open.rs:6:13
[INFO] [stderr]   |
[INFO] [stderr] 6 | 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/ui.rs:3:13
[INFO] [stderr]   |
[INFO] [stderr] 3 | use winapi::um::winuser::{WS_HSCROLL,WS_VSCROLL,SWP_NOZORDER,
[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/window.rs:3:13
[INFO] [stderr]   |
[INFO] [stderr] 3 | use winapi::shared::minwindef::DWORD;
[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/window.rs:4:13
[INFO] [stderr]   |
[INFO] [stderr] 4 | 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/window.rs:5:13
[INFO] [stderr]   |
[INFO] [stderr] 5 | use winapi::um::winuser::{
[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/window.rs:12:13
[INFO] [stderr]    |
[INFO] [stderr] 12 | 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 `shared` in `winapi`
[INFO] [stderr]   --> src/main.rs:12:13
[INFO] [stderr]    |
[INFO] [stderr] 12 | use winapi::shared::minwindef::FALSE;
[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/main.rs:13:13
[INFO] [stderr]    |
[INFO] [stderr] 13 | 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/main.rs:14:13
[INFO] [stderr]    |
[INFO] [stderr] 14 | use winapi::um::winuser::{InvalidateRect};
[INFO] [stderr]    |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0432]: unresolved import `winapi::ctypes`
[INFO] [stderr]   --> src/image.rs:11:13
[INFO] [stderr]    |
[INFO] [stderr] 11 | use winapi::ctypes::c_void;
[INFO] [stderr]    |             ^^^^^^ could not find `ctypes` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope
[INFO] [stderr]   --> src/event.rs:22:11
[INFO] [stderr]    |
[INFO] [stderr] 22 |     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/event.rs:23:10
[INFO] [stderr]    |
[INFO] [stderr] 23 |     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/event.rs:24:13
[INFO] [stderr]    |
[INFO] [stderr] 24 |     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/event.rs:25:13
[INFO] [stderr]    |
[INFO] [stderr] 25 |     lparam: LPARAM
[INFO] [stderr]    |             ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `PostQuitMessage` in this scope
[INFO] [stderr]   --> src/event.rs:37:29
[INFO] [stderr]    |
[INFO] [stderr] 37 |                 SC_CLOSE => PostQuitMessage(0),
[INFO] [stderr]    |                             ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetDC` in this scope
[INFO] [stderr]   --> src/event.rs:43:26
[INFO] [stderr]    |
[INFO] [stderr] 43 |                 let dc = GetDC(hwnd);
[INFO] [stderr]    |                          ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `RECT` in this scope
[INFO] [stderr]   --> src/event.rs:44:32
[INFO] [stderr]    |
[INFO] [stderr] 44 |                 let mut rect = RECT{left:0, top:0, right: 0, bottom: 0};
[INFO] [stderr]    |                                ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetClientRect` in this scope
[INFO] [stderr]   --> src/event.rs:45:17
[INFO] [stderr]    |
[INFO] [stderr] 45 |                 GetClientRect(hwnd, &mut rect);
[INFO] [stderr]    |                 ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `FillRect` in this scope
[INFO] [stderr]   --> src/event.rs:46:17
[INFO] [stderr]    |
[INFO] [stderr] 46 |                 FillRect(dc, &rect, (COLOR_WINDOW+1) as HBRUSH);
[INFO] [stderr]    |                 ^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `COLOR_WINDOW` in this scope
[INFO] [stderr]   --> src/event.rs:46:38
[INFO] [stderr]    |
[INFO] [stderr] 46 |                 FillRect(dc, &rect, (COLOR_WINDOW+1) as HBRUSH);
[INFO] [stderr]    |                                      ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HBRUSH` in this scope
[INFO] [stderr]   --> src/event.rs:46:57
[INFO] [stderr]    |
[INFO] [stderr] 46 |                 FillRect(dc, &rect, (COLOR_WINDOW+1) as HBRUSH);
[INFO] [stderr]    |                                                         ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `MSG` in this scope
[INFO] [stderr]   --> src/event.rs:68:25
[INFO] [stderr]    |
[INFO] [stderr] 68 |         let mut message:MSG = 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/event.rs:70:16
[INFO] [stderr]    |
[INFO] [stderr] 70 |             if GetMessageW( &mut message as *mut MSG, null_mut(), 0, 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/event.rs:70:50
[INFO] [stderr]    |
[INFO] [stderr] 70 |             if GetMessageW( &mut message as *mut MSG, null_mut(), 0, 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/event.rs:71:17
[INFO] [stderr]    |
[INFO] [stderr] 71 |                 TranslateMessage( &message as *const MSG );
[INFO] [stderr]    |                 ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `MSG` in this scope
[INFO] [stderr]   --> src/event.rs:71:54
[INFO] [stderr]    |
[INFO] [stderr] 71 |                 TranslateMessage( &message as *const 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/event.rs:73:21
[INFO] [stderr]    |
[INFO] [stderr] 73 |                     DispatchMessageW( &message as *const MSG );
[INFO] [stderr]    |                     ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `MSG` in this scope
[INFO] [stderr]   --> src/event.rs:73:58
[INFO] [stderr]    |
[INFO] [stderr] 73 |                     DispatchMessageW( &message as *const MSG );
[INFO] [stderr]    |                                                          ^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HDC` in this scope
[INFO] [stderr]   --> src/image.rs:91:36
[INFO] [stderr]    |
[INFO] [stderr] 91 |     pub fn paint_to_dc(&self, hdc: HDC) {
[INFO] [stderr]    |                                    ^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `BITMAPINFO` in this scope
[INFO] [stderr]   --> src/image.rs:92:19
[INFO] [stderr]    |
[INFO] [stderr] 92 |         let bmi = BITMAPINFO {
[INFO] [stderr]    |                   ^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `BITMAPINFOHEADER` in this scope
[INFO] [stderr]   --> src/image.rs:93:24
[INFO] [stderr]    |
[INFO] [stderr] 93 |             bmiHeader: BITMAPINFOHEADER{
[INFO] [stderr]    |                        ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BITMAPINFOHEADER` in this scope
[INFO] [stderr]   --> src/image.rs:94:35
[INFO] [stderr]    |
[INFO] [stderr] 23 | impl Image {
[INFO] [stderr]    |     - help: you might be missing a type parameter: `<BITMAPINFOHEADER>`
[INFO] [stderr] ...
[INFO] [stderr] 94 |                 biSize: size_of::<BITMAPINFOHEADER>() 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/image.rs:94:58
[INFO] [stderr]    |
[INFO] [stderr] 94 |                 biSize: size_of::<BITMAPINFOHEADER>() as DWORD,
[INFO] [stderr]    |                                                          ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LONG` in this scope
[INFO] [stderr]   --> src/image.rs:95:45
[INFO] [stderr]    |
[INFO] [stderr] 95 |                 biWidth: (self.stride/3) as LONG,
[INFO] [stderr]    |                                             ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LONG` in this scope
[INFO] [stderr]   --> src/image.rs:96:42
[INFO] [stderr]    |
[INFO] [stderr] 96 |                 biHeight: self.height as LONG,
[INFO] [stderr]    |                                          ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `BI_RGB` in this scope
[INFO] [stderr]   --> src/image.rs:99:32
[INFO] [stderr]    |
[INFO] [stderr] 99 |                 biCompression: BI_RGB,
[INFO] [stderr]    |                                ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/image.rs:100:49
[INFO] [stderr]     |
[INFO] [stderr] 100 |                 biSizeImage: self.data.len() as DWORD,
[INFO] [stderr]     |                                                 ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `RGBQUAD` in this scope
[INFO] [stderr]    --> src/image.rs:106:25
[INFO] [stderr]     |
[INFO] [stderr] 106 |             bmiColors: [RGBQUAD{
[INFO] [stderr]     |                         ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SetDIBitsToDevice` in this scope
[INFO] [stderr]    --> src/image.rs:114:13
[INFO] [stderr]     |
[INFO] [stderr] 114 |             SetDIBitsToDevice(
[INFO] [stderr]     |             ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/image.rs:118:31
[INFO] [stderr]     |
[INFO] [stderr] 118 |                 self.width 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/image.rs:119:32
[INFO] [stderr]     |
[INFO] [stderr] 119 |                 self.height 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/image.rs:123:32
[INFO] [stderr]     |
[INFO] [stderr] 123 |                 self.height as DWORD,
[INFO] [stderr]     |                                ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `DIB_RGB_COLORS` in this scope
[INFO] [stderr]    --> src/image.rs:126:17
[INFO] [stderr]     |
[INFO] [stderr] 126 |                 DIB_RGB_COLORS);
[INFO] [stderr]     |                 ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope
[INFO] [stderr]   --> src/open.rs:29:37
[INFO] [stderr]    |
[INFO] [stderr] 29 | pub fn show_file_open_dialog(owner: HWND) -> Option<String> {
[INFO] [stderr]    |                                     ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `OPENFILENAMEW` in this scope
[INFO] [stderr]   --> src/open.rs:33:32
[INFO] [stderr]    |
[INFO] [stderr] 33 |         let mut openfilename = OPENFILENAMEW {
[INFO] [stderr]    |                                ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `OPENFILENAMEW` in this scope
[INFO] [stderr]   --> src/open.rs:34:36
[INFO] [stderr]    |
[INFO] [stderr] 29 | pub fn show_file_open_dialog(owner: HWND) -> Option<String> {
[INFO] [stderr]    |                             - help: you might be missing a type parameter: `<OPENFILENAMEW>`
[INFO] [stderr] ...
[INFO] [stderr] 34 |             lStructSize: size_of::<OPENFILENAMEW>() as u32,
[INFO] [stderr]    |                                    ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleW` in this scope
[INFO] [stderr]   --> src/open.rs:36:24
[INFO] [stderr]    |
[INFO] [stderr] 36 |             hInstance: GetModuleHandleW(null_mut()),
[INFO] [stderr]    |                        ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `OFN_EXPLORER` in this scope
[INFO] [stderr]   --> src/open.rs:47:20
[INFO] [stderr]    |
[INFO] [stderr] 47 |             Flags: OFN_EXPLORER | OFN_FILEMUSTEXIST | OFN_HIDEREADONLY | OFN_PATHMUSTEXIST,
[INFO] [stderr]    |                    ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `OFN_FILEMUSTEXIST` in this scope
[INFO] [stderr]   --> src/open.rs:47:35
[INFO] [stderr]    |
[INFO] [stderr] 47 |             Flags: OFN_EXPLORER | OFN_FILEMUSTEXIST | OFN_HIDEREADONLY | OFN_PATHMUSTEXIST,
[INFO] [stderr]    |                                   ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `OFN_HIDEREADONLY` in this scope
[INFO] [stderr]   --> src/open.rs:47:55
[INFO] [stderr]    |
[INFO] [stderr] 47 |             Flags: OFN_EXPLORER | OFN_FILEMUSTEXIST | OFN_HIDEREADONLY | OFN_PATHMUSTEXIST,
[INFO] [stderr]    |                                                       ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `OFN_PATHMUSTEXIST` in this scope
[INFO] [stderr]   --> src/open.rs:47:74
[INFO] [stderr]    |
[INFO] [stderr] 47 |             Flags: OFN_EXPLORER | OFN_FILEMUSTEXIST | OFN_HIDEREADONLY | OFN_PATHMUSTEXIST,
[INFO] [stderr]    |                                                                          ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetOpenFileNameW` in this scope
[INFO] [stderr]   --> src/open.rs:58:22
[INFO] [stderr]    |
[INFO] [stderr] 58 |         let result = GetOpenFileNameW(&mut openfilename);
[INFO] [stderr]    |                      ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `WS_HSCROLL` in this scope
[INFO] [stderr]   --> src/ui.rs:20:59
[INFO] [stderr]    |
[INFO] [stderr] 20 |         let image = main.new_child("panel","",0,0,500,500,WS_HSCROLL|WS_VSCROLL);
[INFO] [stderr]    |                                                           ^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `WS_VSCROLL` in this scope
[INFO] [stderr]   --> src/ui.rs:20:70
[INFO] [stderr]    |
[INFO] [stderr] 20 |         let image = main.new_child("panel","",0,0,500,500,WS_HSCROLL|WS_VSCROLL);
[INFO] [stderr]    |                                                                      ^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowPos` in this scope
[INFO] [stderr]   --> src/ui.rs:25:13
[INFO] [stderr]    |
[INFO] [stderr] 25 |             SetWindowPos(
[INFO] [stderr]    |             ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `SWP_NOZORDER` in this scope
[INFO] [stderr]   --> src/ui.rs:32:17
[INFO] [stderr]    |
[INFO] [stderr] 32 |                 SWP_NOZORDER);
[INFO] [stderr]    |                 ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleW` in this scope
[INFO] [stderr]   --> src/window.rs:21:25
[INFO] [stderr]    |
[INFO] [stderr] 21 |         let hinstance = GetModuleHandleW(null_mut());
[INFO] [stderr]    |                         ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `WNDCLASSW` in this scope
[INFO] [stderr]   --> src/window.rs:22:25
[INFO] [stderr]    |
[INFO] [stderr] 22 |         let wnd_class = WNDCLASSW {
[INFO] [stderr]    |                         ^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `CS_OWNDC` in this scope
[INFO] [stderr]   --> src/window.rs:23:21
[INFO] [stderr]    |
[INFO] [stderr] 23 |             style : CS_OWNDC | CS_HREDRAW | CS_VREDRAW,
[INFO] [stderr]    |                     ^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `CS_HREDRAW` in this scope
[INFO] [stderr]   --> src/window.rs:23:32
[INFO] [stderr]    |
[INFO] [stderr] 23 |             style : CS_OWNDC | CS_HREDRAW | CS_VREDRAW,
[INFO] [stderr]    |                                ^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `CS_VREDRAW` in this scope
[INFO] [stderr]   --> src/window.rs:23:45
[INFO] [stderr]    |
[INFO] [stderr] 23 |             style : CS_OWNDC | CS_HREDRAW | CS_VREDRAW,
[INFO] [stderr]    |                                             ^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `DefWindowProcW` in this scope
[INFO] [stderr]   --> src/window.rs:24:32
[INFO] [stderr]    |
[INFO] [stderr] 24 |             lpfnWndProc : Some(DefWindowProcW),
[INFO] [stderr]    |                                ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `RegisterClassW` in this scope
[INFO] [stderr]   --> src/window.rs:35:21
[INFO] [stderr]    |
[INFO] [stderr] 35 |         let _atom = RegisterClassW(&wnd_class);
[INFO] [stderr]    |                     ^^^^^^^^^^^^^^ help: a function with a similar name exists: `register_class`
[INFO] [stderr] ...
[INFO] [stderr] 39 | pub fn register_class(name: &str) {
[INFO] [stderr]    | --------------------------------- similarly named function `register_class` defined here
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleW` in this scope
[INFO] [stderr]   --> src/window.rs:43:25
[INFO] [stderr]    |
[INFO] [stderr] 43 |         let hinstance = GetModuleHandleW(null_mut());
[INFO] [stderr]    |                         ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `WNDCLASSW` in this scope
[INFO] [stderr]   --> src/window.rs:44:25
[INFO] [stderr]    |
[INFO] [stderr] 44 |         let wnd_class = WNDCLASSW {
[INFO] [stderr]    |                         ^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `CS_OWNDC` in this scope
[INFO] [stderr]   --> src/window.rs:45:21
[INFO] [stderr]    |
[INFO] [stderr] 45 |             style : CS_OWNDC | CS_HREDRAW | CS_VREDRAW,
[INFO] [stderr]    |                     ^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `CS_HREDRAW` in this scope
[INFO] [stderr]   --> src/window.rs:45:32
[INFO] [stderr]    |
[INFO] [stderr] 45 |             style : CS_OWNDC | CS_HREDRAW | CS_VREDRAW,
[INFO] [stderr]    |                                ^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `CS_VREDRAW` in this scope
[INFO] [stderr]   --> src/window.rs:45:45
[INFO] [stderr]    |
[INFO] [stderr] 45 |             style : CS_OWNDC | CS_HREDRAW | CS_VREDRAW,
[INFO] [stderr]    |                                             ^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `DefWindowProcW` in this scope
[INFO] [stderr]   --> src/window.rs:46:32
[INFO] [stderr]    |
[INFO] [stderr] 46 |             lpfnWndProc : Some(DefWindowProcW),
[INFO] [stderr]    |                                ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `RegisterClassW` in this scope
[INFO] [stderr]   --> src/window.rs:57:21
[INFO] [stderr]    |
[INFO] [stderr] 39 | pub fn register_class(name: &str) {
[INFO] [stderr]    | --------------------------------- similarly named function `register_class` defined here
[INFO] [stderr] ...
[INFO] [stderr] 57 |         let _atom = RegisterClassW(&wnd_class);
[INFO] [stderr]    |                     ^^^^^^^^^^^^^^ help: a function with a similar name exists: `register_class`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope
[INFO] [stderr]   --> src/window.rs:62:11
[INFO] [stderr]    |
[INFO] [stderr] 62 |     hwnd: HWND
[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/window.rs:71:20
[INFO] [stderr]    |
[INFO] [stderr] 71 |             hwnd = CreateWindowExW(
[INFO] [stderr]    |                    ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `WS_OVERLAPPEDWINDOW` in this scope
[INFO] [stderr]   --> src/window.rs:75:17
[INFO] [stderr]    |
[INFO] [stderr] 75 |                 WS_OVERLAPPEDWINDOW | WS_VISIBLE,
[INFO] [stderr]    |                 ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `WS_VISIBLE` in this scope
[INFO] [stderr]   --> src/window.rs:75:39
[INFO] [stderr]    |
[INFO] [stderr] 75 |                 WS_OVERLAPPEDWINDOW | WS_VISIBLE,
[INFO] [stderr]    |                                       ^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `CW_USEDEFAULT` in this scope
[INFO] [stderr]   --> src/window.rs:76:17
[INFO] [stderr]    |
[INFO] [stderr] 76 |                 CW_USEDEFAULT,
[INFO] [stderr]    |                 ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `CW_USEDEFAULT` in this scope
[INFO] [stderr]   --> src/window.rs:77:17
[INFO] [stderr]    |
[INFO] [stderr] 77 |                 CW_USEDEFAULT,
[INFO] [stderr]    |                 ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `CW_USEDEFAULT` in this scope
[INFO] [stderr]   --> src/window.rs:78:17
[INFO] [stderr]    |
[INFO] [stderr] 78 |                 CW_USEDEFAULT,
[INFO] [stderr]    |                 ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `CW_USEDEFAULT` in this scope
[INFO] [stderr]   --> src/window.rs:79:17
[INFO] [stderr]    |
[INFO] [stderr] 79 |                 CW_USEDEFAULT,
[INFO] [stderr]    |                 ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleW` in this scope
[INFO] [stderr]   --> src/window.rs:82:17
[INFO] [stderr]    |
[INFO] [stderr] 82 |                 GetModuleHandleW(null_mut()),
[INFO] [stderr]    |                 ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]   --> src/window.rs:87:103
[INFO] [stderr]    |
[INFO] [stderr] 87 |     pub fn new_child(&self, class: &str, title: &str, x: i32, y: i32, width: i32, height: i32, style: DWORD) -> Self {
[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/window.rs:92:20
[INFO] [stderr]    |
[INFO] [stderr] 92 |             hwnd = CreateWindowExW(
[INFO] [stderr]    |                    ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `WS_CHILD` in this scope
[INFO] [stderr]   --> src/window.rs:96:17
[INFO] [stderr]    |
[INFO] [stderr] 96 |                 WS_CHILD | WS_VISIBLE | style,
[INFO] [stderr]    |                 ^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `WS_VISIBLE` in this scope
[INFO] [stderr]   --> src/window.rs:96:28
[INFO] [stderr]    |
[INFO] [stderr] 96 |                 WS_CHILD | WS_VISIBLE | style,
[INFO] [stderr]    |                            ^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleW` in this scope
[INFO] [stderr]    --> src/window.rs:103:17
[INFO] [stderr]     |
[INFO] [stderr] 103 |                 GetModuleHandleW(null_mut()),
[INFO] [stderr]     |                 ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope
[INFO] [stderr]    --> src/window.rs:108:31
[INFO] [stderr]     |
[INFO] [stderr] 108 |     pub fn get_hwnd(&self) -> HWND {
[INFO] [stderr]     |                               ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope
[INFO] [stderr]   --> src/main.rs:37:39
[INFO] [stderr]    |
[INFO] [stderr] 37 | fn file_open(state: &mut State, hwnd: HWND) {
[INFO] [stderr]    |                                       ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `InvalidateRect` in this scope
[INFO] [stderr]   --> src/main.rs:44:17
[INFO] [stderr]    |
[INFO] [stderr] 44 |                 InvalidateRect(hwnd, null_mut(), FALSE);
[INFO] [stderr]    |                 ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope
[INFO] [stderr]   --> src/main.rs:44:50
[INFO] [stderr]    |
[INFO] [stderr] 44 |                 InvalidateRect(hwnd, null_mut(), FALSE);
[INFO] [stderr]    |                                                  ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] warning: use of deprecated item 'std::mem::uninitialized': use `mem::MaybeUninit` instead
[INFO] [stderr]  --> src/event.rs:1:5
[INFO] [stderr]   |
[INFO] [stderr] 1 | use std::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/event.rs:68:31
[INFO] [stderr]    |
[INFO] [stderr] 68 |         let mut message:MSG = uninitialized();
[INFO] [stderr]    |                               ^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope
[INFO] [stderr]   --> src/event.rs:22:11
[INFO] [stderr]    |
[INFO] [stderr] 22 |     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/event.rs:23:10
[INFO] [stderr]    |
[INFO] [stderr] 23 |     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/event.rs:24:13
[INFO] [stderr]    |
[INFO] [stderr] 24 |     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/event.rs:25:13
[INFO] [stderr]    |
[INFO] [stderr] 25 |     lparam: LPARAM
[INFO] [stderr]    |             ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `PostQuitMessage` in this scope
[INFO] [stderr]   --> src/event.rs:37:29
[INFO] [stderr]    |
[INFO] [stderr] 37 |                 SC_CLOSE => PostQuitMessage(0),
[INFO] [stderr]    |                             ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetDC` in this scope
[INFO] [stderr]   --> src/event.rs:43:26
[INFO] [stderr]    |
[INFO] [stderr] 43 |                 let dc = GetDC(hwnd);
[INFO] [stderr]    |                          ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `RECT` in this scope
[INFO] [stderr]   --> src/event.rs:44:32
[INFO] [stderr]    |
[INFO] [stderr] 44 |                 let mut rect = RECT{left:0, top:0, right: 0, bottom: 0};
[INFO] [stderr]    |                                ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetClientRect` in this scope
[INFO] [stderr]   --> src/event.rs:45:17
[INFO] [stderr]    |
[INFO] [stderr] 45 |                 GetClientRect(hwnd, &mut rect);
[INFO] [stderr]    |                 ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `FillRect` in this scope
[INFO] [stderr]   --> src/event.rs:46:17
[INFO] [stderr]    |
[INFO] [stderr] 46 |                 FillRect(dc, &rect, (COLOR_WINDOW+1) as HBRUSH);
[INFO] [stderr]    |                 ^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `COLOR_WINDOW` in this scope
[INFO] [stderr]   --> src/event.rs:46:38
[INFO] [stderr]    |
[INFO] [stderr] 46 |                 FillRect(dc, &rect, (COLOR_WINDOW+1) as HBRUSH);
[INFO] [stderr]    |                                      ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HBRUSH` in this scope
[INFO] [stderr]   --> src/event.rs:46:57
[INFO] [stderr]    |
[INFO] [stderr] 46 |                 FillRect(dc, &rect, (COLOR_WINDOW+1) as HBRUSH);
[INFO] [stderr]    |                                                         ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `MSG` in this scope
[INFO] [stderr]   --> src/event.rs:68:25
[INFO] [stderr]    |
[INFO] [stderr] 68 |         let mut message:MSG = 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/event.rs:70:16
[INFO] [stderr]    |
[INFO] [stderr] 70 |             if GetMessageW( &mut message as *mut MSG, null_mut(), 0, 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/event.rs:70:50
[INFO] [stderr]    |
[INFO] [stderr] 70 |             if GetMessageW( &mut message as *mut MSG, null_mut(), 0, 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/event.rs:71:17
[INFO] [stderr]    |
[INFO] [stderr] 71 |                 TranslateMessage( &message as *const MSG );
[INFO] [stderr]    |                 ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `MSG` in this scope
[INFO] [stderr]   --> src/event.rs:71:54
[INFO] [stderr]    |
[INFO] [stderr] 71 |                 TranslateMessage( &message as *const 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/event.rs:73:21
[INFO] [stderr]    |
[INFO] [stderr] 73 |                     DispatchMessageW( &message as *const MSG );
[INFO] [stderr]    |                     ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `MSG` in this scope
[INFO] [stderr]   --> src/event.rs:73:58
[INFO] [stderr]    |
[INFO] [stderr] 73 |                     DispatchMessageW( &message as *const MSG );
[INFO] [stderr]    |                                                          ^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HDC` in this scope
[INFO] [stderr]   --> src/image.rs:91:36
[INFO] [stderr]    |
[INFO] [stderr] 91 |     pub fn paint_to_dc(&self, hdc: HDC) {
[INFO] [stderr]    |                                    ^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `BITMAPINFO` in this scope
[INFO] [stderr]   --> src/image.rs:92:19
[INFO] [stderr]    |
[INFO] [stderr] 92 |         let bmi = BITMAPINFO {
[INFO] [stderr]    |                   ^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `BITMAPINFOHEADER` in this scope
[INFO] [stderr]   --> src/image.rs:93:24
[INFO] [stderr]    |
[INFO] [stderr] 93 |             bmiHeader: BITMAPINFOHEADER{
[INFO] [stderr]    |                        ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BITMAPINFOHEADER` in this scope
[INFO] [stderr]   --> src/image.rs:94:35
[INFO] [stderr]    |
[INFO] [stderr] 23 | impl Image {
[INFO] [stderr]    |     - help: you might be missing a type parameter: `<BITMAPINFOHEADER>`
[INFO] [stderr] ...
[INFO] [stderr] 94 |                 biSize: size_of::<BITMAPINFOHEADER>() 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/image.rs:94:58
[INFO] [stderr]    |
[INFO] [stderr] 94 |                 biSize: size_of::<BITMAPINFOHEADER>() as DWORD,
[INFO] [stderr]    |                                                          ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LONG` in this scope
[INFO] [stderr]   --> src/image.rs:95:45
[INFO] [stderr]    |
[INFO] [stderr] 95 |                 biWidth: (self.stride/3) as LONG,
[INFO] [stderr]    |                                             ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `LONG` in this scope
[INFO] [stderr]   --> src/image.rs:96:42
[INFO] [stderr]    |
[INFO] [stderr] 96 |                 biHeight: self.height as LONG,
[INFO] [stderr]    |                                          ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `BI_RGB` in this scope
[INFO] [stderr]   --> src/image.rs:99:32
[INFO] [stderr]    |
[INFO] [stderr] 99 |                 biCompression: BI_RGB,
[INFO] [stderr]    |                                ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/image.rs:100:49
[INFO] [stderr]     |
[INFO] [stderr] 100 |                 biSizeImage: self.data.len() as DWORD,
[INFO] [stderr]     |                                                 ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `RGBQUAD` in this scope
[INFO] [stderr]    --> src/image.rs:106:25
[INFO] [stderr]     |
[INFO] [stderr] 106 |             bmiColors: [RGBQUAD{
[INFO] [stderr]     |                         ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SetDIBitsToDevice` in this scope
[INFO] [stderr]    --> src/image.rs:114:13
[INFO] [stderr]     |
[INFO] [stderr] 114 |             SetDIBitsToDevice(
[INFO] [stderr]     |             ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]    --> src/image.rs:118:31
[INFO] [stderr]     |
[INFO] [stderr] 118 |                 self.width 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/image.rs:119:32
[INFO] [stderr]     |
[INFO] [stderr] 119 |                 self.height 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/image.rs:123:32
[INFO] [stderr]     |
[INFO] [stderr] 123 |                 self.height as DWORD,
[INFO] [stderr]     |                                ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `DIB_RGB_COLORS` in this scope
[INFO] [stderr]    --> src/image.rs:126:17
[INFO] [stderr]     |
[INFO] [stderr] 126 |                 DIB_RGB_COLORS);
[INFO] [stderr]     |                 ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope
[INFO] [stderr]   --> src/open.rs:29:37
[INFO] [stderr]    |
[INFO] [stderr] 29 | pub fn show_file_open_dialog(owner: HWND) -> Option<String> {
[INFO] [stderr]    |                                     ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `OPENFILENAMEW` in this scope
[INFO] [stderr]   --> src/open.rs:33:32
[INFO] [stderr]    |
[INFO] [stderr] 33 |         let mut openfilename = OPENFILENAMEW {
[INFO] [stderr]    |                                ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `OPENFILENAMEW` in this scope
[INFO] [stderr]   --> src/open.rs:34:36
[INFO] [stderr]    |
[INFO] [stderr] 29 | pub fn show_file_open_dialog(owner: HWND) -> Option<String> {
[INFO] [stderr]    |                             - help: you might be missing a type parameter: `<OPENFILENAMEW>`
[INFO] [stderr] ...
[INFO] [stderr] 34 |             lStructSize: size_of::<OPENFILENAMEW>() as u32,
[INFO] [stderr]    |                                    ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleW` in this scope
[INFO] [stderr]   --> src/open.rs:36:24
[INFO] [stderr]    |
[INFO] [stderr] 36 |             hInstance: GetModuleHandleW(null_mut()),
[INFO] [stderr]    |                        ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `OFN_EXPLORER` in this scope
[INFO] [stderr]   --> src/open.rs:47:20
[INFO] [stderr]    |
[INFO] [stderr] 47 |             Flags: OFN_EXPLORER | OFN_FILEMUSTEXIST | OFN_HIDEREADONLY | OFN_PATHMUSTEXIST,
[INFO] [stderr]    |                    ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `OFN_FILEMUSTEXIST` in this scope
[INFO] [stderr]   --> src/open.rs:47:35
[INFO] [stderr]    |
[INFO] [stderr] 47 |             Flags: OFN_EXPLORER | OFN_FILEMUSTEXIST | OFN_HIDEREADONLY | OFN_PATHMUSTEXIST,
[INFO] [stderr]    |                                   ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `OFN_HIDEREADONLY` in this scope
[INFO] [stderr]   --> src/open.rs:47:55
[INFO] [stderr]    |
[INFO] [stderr] 47 |             Flags: OFN_EXPLORER | OFN_FILEMUSTEXIST | OFN_HIDEREADONLY | OFN_PATHMUSTEXIST,
[INFO] [stderr]    |                                                       ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `OFN_PATHMUSTEXIST` in this scope
[INFO] [stderr]   --> src/open.rs:47:74
[INFO] [stderr]    |
[INFO] [stderr] 47 |             Flags: OFN_EXPLORER | OFN_FILEMUSTEXIST | OFN_HIDEREADONLY | OFN_PATHMUSTEXIST,
[INFO] [stderr]    |                                                                          ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetOpenFileNameW` in this scope
[INFO] [stderr]   --> src/open.rs:58:22
[INFO] [stderr]    |
[INFO] [stderr] 58 |         let result = GetOpenFileNameW(&mut openfilename);
[INFO] [stderr]    |                      ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `WS_HSCROLL` in this scope
[INFO] [stderr]   --> src/ui.rs:20:59
[INFO] [stderr]    |
[INFO] [stderr] 20 |         let image = main.new_child("panel","",0,0,500,500,WS_HSCROLL|WS_VSCROLL);
[INFO] [stderr]    |                                                           ^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `WS_VSCROLL` in this scope
[INFO] [stderr]   --> src/ui.rs:20:70
[INFO] [stderr]    |
[INFO] [stderr] 20 |         let image = main.new_child("panel","",0,0,500,500,WS_HSCROLL|WS_VSCROLL);
[INFO] [stderr]    |                                                                      ^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowPos` in this scope
[INFO] [stderr]   --> src/ui.rs:25:13
[INFO] [stderr]    |
[INFO] [stderr] 25 |             SetWindowPos(
[INFO] [stderr]    |             ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `SWP_NOZORDER` in this scope
[INFO] [stderr]   --> src/ui.rs:32:17
[INFO] [stderr]    |
[INFO] [stderr] 32 |                 SWP_NOZORDER);
[INFO] [stderr]    |                 ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleW` in this scope
[INFO] [stderr]   --> src/window.rs:21:25
[INFO] [stderr]    |
[INFO] [stderr] 21 |         let hinstance = GetModuleHandleW(null_mut());
[INFO] [stderr]    |                         ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `WNDCLASSW` in this scope
[INFO] [stderr]   --> src/window.rs:22:25
[INFO] [stderr]    |
[INFO] [stderr] 22 |         let wnd_class = WNDCLASSW {
[INFO] [stderr]    |                         ^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `CS_OWNDC` in this scope
[INFO] [stderr]   --> src/window.rs:23:21
[INFO] [stderr]    |
[INFO] [stderr] 23 |             style : CS_OWNDC | CS_HREDRAW | CS_VREDRAW,
[INFO] [stderr]    |                     ^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `CS_HREDRAW` in this scope
[INFO] [stderr]   --> src/window.rs:23:32
[INFO] [stderr]    |
[INFO] [stderr] 23 |             style : CS_OWNDC | CS_HREDRAW | CS_VREDRAW,
[INFO] [stderr]    |                                ^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `CS_VREDRAW` in this scope
[INFO] [stderr]   --> src/window.rs:23:45
[INFO] [stderr]    |
[INFO] [stderr] 23 |             style : CS_OWNDC | CS_HREDRAW | CS_VREDRAW,
[INFO] [stderr]    |                                             ^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `DefWindowProcW` in this scope
[INFO] [stderr]   --> src/window.rs:24:32
[INFO] [stderr]    |
[INFO] [stderr] 24 |             lpfnWndProc : Some(DefWindowProcW),
[INFO] [stderr]    |                                ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `RegisterClassW` in this scope
[INFO] [stderr]   --> src/window.rs:35:21
[INFO] [stderr]    |
[INFO] [stderr] 35 |         let _atom = RegisterClassW(&wnd_class);
[INFO] [stderr]    |                     ^^^^^^^^^^^^^^ help: a function with a similar name exists: `register_class`
[INFO] [stderr] ...
[INFO] [stderr] 39 | pub fn register_class(name: &str) {
[INFO] [stderr]    | --------------------------------- similarly named function `register_class` defined here
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleW` in this scope
[INFO] [stderr]   --> src/window.rs:43:25
[INFO] [stderr]    |
[INFO] [stderr] 43 |         let hinstance = GetModuleHandleW(null_mut());
[INFO] [stderr]    |                         ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `WNDCLASSW` in this scope
[INFO] [stderr]   --> src/window.rs:44:25
[INFO] [stderr]    |
[INFO] [stderr] 44 |         let wnd_class = WNDCLASSW {
[INFO] [stderr]    |                         ^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `CS_OWNDC` in this scope
[INFO] [stderr]   --> src/window.rs:45:21
[INFO] [stderr]    |
[INFO] [stderr] 45 |             style : CS_OWNDC | CS_HREDRAW | CS_VREDRAW,
[INFO] [stderr]    |                     ^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `CS_HREDRAW` in this scope
[INFO] [stderr]   --> src/window.rs:45:32
[INFO] [stderr]    |
[INFO] [stderr] 45 |             style : CS_OWNDC | CS_HREDRAW | CS_VREDRAW,
[INFO] [stderr]    |                                ^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `CS_VREDRAW` in this scope
[INFO] [stderr]   --> src/window.rs:45:45
[INFO] [stderr]    |
[INFO] [stderr] 45 |             style : CS_OWNDC | CS_HREDRAW | CS_VREDRAW,
[INFO] [stderr]    |                                             ^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `DefWindowProcW` in this scope
[INFO] [stderr]   --> src/window.rs:46:32
[INFO] [stderr]    |
[INFO] [stderr] 46 |             lpfnWndProc : Some(DefWindowProcW),
[INFO] [stderr]    |                                ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `RegisterClassW` in this scope
[INFO] [stderr]   --> src/window.rs:57:21
[INFO] [stderr]    |
[INFO] [stderr] 39 | pub fn register_class(name: &str) {
[INFO] [stderr]    | --------------------------------- similarly named function `register_class` defined here
[INFO] [stderr] ...
[INFO] [stderr] 57 |         let _atom = RegisterClassW(&wnd_class);
[INFO] [stderr]    |                     ^^^^^^^^^^^^^^ help: a function with a similar name exists: `register_class`
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope
[INFO] [stderr]   --> src/window.rs:62:11
[INFO] [stderr]    |
[INFO] [stderr] 62 |     hwnd: HWND
[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/window.rs:71:20
[INFO] [stderr]    |
[INFO] [stderr] 71 |             hwnd = CreateWindowExW(
[INFO] [stderr]    |                    ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `WS_OVERLAPPEDWINDOW` in this scope
[INFO] [stderr]   --> src/window.rs:75:17
[INFO] [stderr]    |
[INFO] [stderr] 75 |                 WS_OVERLAPPEDWINDOW | WS_VISIBLE,
[INFO] [stderr]    |                 ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `WS_VISIBLE` in this scope
[INFO] [stderr]   --> src/window.rs:75:39
[INFO] [stderr]    |
[INFO] [stderr] 75 |                 WS_OVERLAPPEDWINDOW | WS_VISIBLE,
[INFO] [stderr]    |                                       ^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `CW_USEDEFAULT` in this scope
[INFO] [stderr]   --> src/window.rs:76:17
[INFO] [stderr]    |
[INFO] [stderr] 76 |                 CW_USEDEFAULT,
[INFO] [stderr]    |                 ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `CW_USEDEFAULT` in this scope
[INFO] [stderr]   --> src/window.rs:77:17
[INFO] [stderr]    |
[INFO] [stderr] 77 |                 CW_USEDEFAULT,
[INFO] [stderr]    |                 ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `CW_USEDEFAULT` in this scope
[INFO] [stderr]   --> src/window.rs:78:17
[INFO] [stderr]    |
[INFO] [stderr] 78 |                 CW_USEDEFAULT,
[INFO] [stderr]    |                 ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `CW_USEDEFAULT` in this scope
[INFO] [stderr]   --> src/window.rs:79:17
[INFO] [stderr]    |
[INFO] [stderr] 79 |                 CW_USEDEFAULT,
[INFO] [stderr]    |                 ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleW` in this scope
[INFO] [stderr]   --> src/window.rs:82:17
[INFO] [stderr]    |
[INFO] [stderr] 82 |                 GetModuleHandleW(null_mut()),
[INFO] [stderr]    |                 ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stderr]   --> src/window.rs:87:103
[INFO] [stderr]    |
[INFO] [stderr] 87 |     pub fn new_child(&self, class: &str, title: &str, x: i32, y: i32, width: i32, height: i32, style: DWORD) -> Self {
[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/window.rs:92:20
[INFO] [stderr]    |
[INFO] [stderr] 92 |             hwnd = CreateWindowExW(
[INFO] [stderr]    |                    ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `WS_CHILD` in this scope
[INFO] [stderr]   --> src/window.rs:96:17
[INFO] [stderr]    |
[INFO] [stderr] 96 |                 WS_CHILD | WS_VISIBLE | style,
[INFO] [stderr]    |                 ^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `WS_VISIBLE` in this scope
[INFO] [stderr]   --> src/window.rs:96:28
[INFO] [stderr]    |
[INFO] [stderr] 96 |                 WS_CHILD | WS_VISIBLE | style,
[INFO] [stderr]    |                            ^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleW` in this scope
[INFO] [stderr]    --> src/window.rs:103:17
[INFO] [stderr]     |
[INFO] [stderr] 103 |                 GetModuleHandleW(null_mut()),
[INFO] [stderr]     |                 ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope
[INFO] [stderr]    --> src/window.rs:108:31
[INFO] [stderr]     |
[INFO] [stderr] 108 |     pub fn get_hwnd(&self) -> HWND {
[INFO] [stderr]     |                               ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope
[INFO] [stderr]   --> src/main.rs:37:39
[INFO] [stderr]    |
[INFO] [stderr] 37 | fn file_open(state: &mut State, hwnd: HWND) {
[INFO] [stderr]    |                                       ^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `InvalidateRect` in this scope
[INFO] [stderr]   --> src/main.rs:44:17
[INFO] [stderr]    |
[INFO] [stderr] 44 |                 InvalidateRect(hwnd, null_mut(), FALSE);
[INFO] [stderr]    |                 ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `FALSE` in this scope
[INFO] [stderr]   --> src/main.rs:44:50
[INFO] [stderr]    |
[INFO] [stderr] 44 |                 InvalidateRect(hwnd, null_mut(), FALSE);
[INFO] [stderr]    |                                                  ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] warning: use of deprecated item 'std::mem::uninitialized': use `mem::MaybeUninit` instead
[INFO] [stderr]  --> src/event.rs:1:5
[INFO] [stderr]   |
[INFO] [stderr] 1 | use std::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/event.rs:68:31
[INFO] [stderr]    |
[INFO] [stderr] 68 |         let mut message:MSG = uninitialized();
[INFO] [stderr]    |                               ^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] error: aborting due to 97 previous errors
[INFO] [stderr] 
[INFO] [stderr] Some errors have detailed explanations: E0412, E0422, E0425, E0432, E0433.
[INFO] [stderr] For more information about an error, try `rustc --explain E0412`.
[INFO] [stderr] error: could not compile `reduce`.
[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: aborting due to 97 previous errors
[INFO] [stderr] 
[INFO] [stderr] Some errors have detailed explanations: E0412, E0422, E0425, E0432, E0433.
[INFO] [stderr] For more information about an error, try `rustc --explain E0412`.
[INFO] [stderr] error: could not compile `reduce`.
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] running `"docker" "inspect" "90f311a000398a4df500ca99ab3957c6bdacc330291f8519be7f68f043cc79a6"`
[INFO] running `"docker" "rm" "-f" "90f311a000398a4df500ca99ab3957c6bdacc330291f8519be7f68f043cc79a6"`
[INFO] [stdout] 90f311a000398a4df500ca99ab3957c6bdacc330291f8519be7f68f043cc79a6
