[INFO] cloning repository https://github.com/13jon37/handmade_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/13jon37/handmade_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F13jon37%2Fhandmade_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F13jon37%2Fhandmade_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 09977c5e89a21753419bd9bf0350b51621a2119b [INFO] testing 13jon37/handmade_rust against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F13jon37%2Fhandmade_rust" "/workspace/builds/worker-28/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-28/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/13jon37/handmade_rust on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/13jon37/handmade_rust [INFO] finished tweaking git repo https://github.com/13jon37/handmade_rust [INFO] tweaked toml for git repo https://github.com/13jon37/handmade_rust written to /workspace/builds/worker-28/source/Cargo.toml [INFO] crate git repo https://github.com/13jon37/handmade_rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-28/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-28/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5b5d5ee5273b1aa51d68fdde37113a251cb51a4eed25d3581227d628a69d54f3 [INFO] running `Command { std: "docker" "start" "-a" "5b5d5ee5273b1aa51d68fdde37113a251cb51a4eed25d3581227d628a69d54f3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5b5d5ee5273b1aa51d68fdde37113a251cb51a4eed25d3581227d628a69d54f3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5b5d5ee5273b1aa51d68fdde37113a251cb51a4eed25d3581227d628a69d54f3", kill_on_drop: false }` [INFO] [stdout] 5b5d5ee5273b1aa51d68fdde37113a251cb51a4eed25d3581227d628a69d54f3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-28/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-28/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] eb2f0d099117db73b0221f7c2de9770a44e8e84cfdc48616934aa8e61559d1e2 [INFO] running `Command { std: "docker" "start" "-a" "eb2f0d099117db73b0221f7c2de9770a44e8e84cfdc48616934aa8e61559d1e2", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling winapi-build v0.1.1 [INFO] [stderr] Compiling winapi v0.3.9 [INFO] [stderr] Compiling libc v0.2.103 [INFO] [stderr] Compiling winapi v0.2.8 [INFO] [stderr] Compiling rusty-xinput v1.2.0 [INFO] [stderr] Compiling kernel32-sys v0.2.2 [INFO] [stderr] Compiling handmade_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/language_layer.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | use std::os::windows::ffi::OsStrExt; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/language_layer.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::shared::basetsd::LONG_PTR; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/language_layer.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::shared::minwindef::DWORD; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/language_layer.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use winapi::shared::ntdef::HANDLE; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/win32_engine.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use winapi::shared::minwindef::{HINSTANCE, LPARAM, LPDWORD, LPVOID, LRESULT, UINT, WORD, WPARAM}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/win32_engine.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::shared::ntdef::{LPCSTR, LPCWSTR}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/win32_engine.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use winapi::shared::windef::{HBRUSH, HDC, HICON, HMENU, HWND, RECT}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/win32_engine.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | use winapi::shared::winerror::ERROR_SUCCESS; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/win32_engine.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | use winapi::um::wingdi::{ [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/win32_engine.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | use winapi::um::winnt::{ [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/win32_engine.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | use winapi::um::winuser::*; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/win32_engine.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | use winapi::um::xinput::{ [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `ctypes` in `winapi` [INFO] [stdout] --> src/win32_engine.rs:91:32 [INFO] [stdout] | [INFO] [stdout] 91 | pub memory: *const winapi::ctypes::c_void, [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `ctypes` in `winapi` [INFO] [stdout] --> src/win32_engine.rs:126:47 [INFO] [stdout] | [INFO] [stdout] 126 | let mut _memory = 0 as *const winapi::ctypes::c_void; [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `ctypes` in `winapi` [INFO] [stdout] --> src/win32_engine.rs:138:33 [INFO] [stdout] | [INFO] [stdout] 138 | ) as *const winapi::ctypes::c_void; [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `ctypes` in `winapi` [INFO] [stdout] --> src/win32_engine.rs:174:39 [INFO] [stdout] | [INFO] [stdout] 174 | memory: 0 as *mut winapi::ctypes::c_void, [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `ctypes` in `winapi` [INFO] [stdout] --> src/win32_engine.rs:214:33 [INFO] [stdout] | [INFO] [stdout] 214 | ) as *const winapi::ctypes::c_void; [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `ctypes` in `winapi` [INFO] [stdout] --> src/win32_engine.rs:260:28 [INFO] [stdout] | [INFO] [stdout] 260 | contents: *mut winapi::ctypes::c_void, [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `ctypes` in `winapi` [INFO] [stdout] --> src/win32_engine.rs:266:37 [INFO] [stdout] | [INFO] [stdout] 266 | contents: 0 as *mut winapi::ctypes::c_void, [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `ctypes` in `winapi` [INFO] [stdout] --> src/win32_engine.rs:299:27 [INFO] [stdout] | [INFO] [stdout] 299 | ) as *mut winapi::ctypes::c_void; [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `ctypes` in `winapi` [INFO] [stdout] --> src/win32_engine.rs:437:33 [INFO] [stdout] | [INFO] [stdout] 437 | ) as *const winapi::ctypes::c_void; [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/language_layer.rs:8:40 [INFO] [stdout] | [INFO] [stdout] 8 | pub(crate) const INVALID_HANDLE_VALUE: HANDLE = (-1 as LONG_PTR) as HANDLE; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LONG_PTR` in this scope [INFO] [stdout] --> src/language_layer.rs:8:56 [INFO] [stdout] | [INFO] [stdout] 8 | pub(crate) const INVALID_HANDLE_VALUE: HANDLE = (-1 as LONG_PTR) as HANDLE; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/language_layer.rs:8:69 [INFO] [stdout] | [INFO] [stdout] 8 | pub(crate) const INVALID_HANDLE_VALUE: HANDLE = (-1 as LONG_PTR) as HANDLE; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/language_layer.rs:9:33 [INFO] [stdout] | [INFO] [stdout] 9 | pub(crate) const OPEN_EXISTING: DWORD = 3; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win32_engine.rs:53:33 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn get_client_data(window: &HWND) -> ClientData { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `RECT` in this scope [INFO] [stdout] --> src/win32_engine.rs:59:20 [INFO] [stdout] | [INFO] [stdout] 59 | let mut rect = RECT { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/math.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct Rect { [INFO] [stdout] | --------------- similarly named struct `Rect` defined here [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 59 | let mut rect = Rect { [INFO] [stdout] | ~~~~ [INFO] [stdout] help: consider importing this variant [INFO] [stdout] | [INFO] [stdout] 1 | use crate::entity::EntityType::RECT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetClientRect` in this scope [INFO] [stdout] --> src/win32_engine.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | GetClientRect(*window, &mut rect); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BITMAPINFO` in this scope [INFO] [stdout] --> src/win32_engine.rs:90:22 [INFO] [stdout] | [INFO] [stdout] 90 | pub bitmap_info: BITMAPINFO, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win32_engine.rs:96:25 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn new(window: &HWND) -> Self { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `RGBQUAD` in this scope [INFO] [stdout] --> src/win32_engine.rs:98:23 [INFO] [stdout] | [INFO] [stdout] 98 | let colors = [RGBQUAD { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BITMAPINFO` in this scope [INFO] [stdout] --> src/win32_engine.rs:105:21 [INFO] [stdout] | [INFO] [stdout] 105 | let buffer: BITMAPINFO = BITMAPINFO { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `BITMAPINFO` in this scope [INFO] [stdout] --> src/win32_engine.rs:105:34 [INFO] [stdout] | [INFO] [stdout] 105 | let buffer: BITMAPINFO = BITMAPINFO { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `BITMAPINFOHEADER` in this scope [INFO] [stdout] --> src/win32_engine.rs:106:24 [INFO] [stdout] | [INFO] [stdout] 106 | bmiHeader: BITMAPINFOHEADER { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BITMAPINFOHEADER` in this scope [INFO] [stdout] --> src/win32_engine.rs:107:40 [INFO] [stdout] | [INFO] [stdout] 94 | impl Win32GameBitmap { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 107 | biSize: mem::size_of::() as u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `BI_RGB` in this scope [INFO] [stdout] --> src/win32_engine.rs:112:32 [INFO] [stdout] | [INFO] [stdout] 112 | biCompression: BI_RGB, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualFree` in this scope [INFO] [stdout] --> src/win32_engine.rs:130:17 [INFO] [stdout] | [INFO] [stdout] 130 | VirtualFree(_memory as *mut std::ffi::c_void, 0, MEM_RELEASE); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_RELEASE` in this scope [INFO] [stdout] --> src/win32_engine.rs:130:66 [INFO] [stdout] | [INFO] [stdout] 130 | VirtualFree(_memory as *mut std::ffi::c_void, 0, MEM_RELEASE); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualAlloc` in this scope [INFO] [stdout] --> src/win32_engine.rs:133:23 [INFO] [stdout] | [INFO] [stdout] 133 | _memory = VirtualAlloc( [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_COMMIT` in this scope [INFO] [stdout] --> src/win32_engine.rs:136:17 [INFO] [stdout] | [INFO] [stdout] 136 | MEM_COMMIT | MEM_RESERVE, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_RESERVE` in this scope [INFO] [stdout] --> src/win32_engine.rs:136:30 [INFO] [stdout] | [INFO] [stdout] 136 | MEM_COMMIT | MEM_RESERVE, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PAGE_READWRITE` in this scope [INFO] [stdout] --> src/win32_engine.rs:137:17 [INFO] [stdout] | [INFO] [stdout] 137 | PAGE_READWRITE, [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `RGBQUAD` in this scope [INFO] [stdout] --> src/win32_engine.rs:148:23 [INFO] [stdout] | [INFO] [stdout] 148 | let colors = [RGBQUAD { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BITMAPINFO` in this scope [INFO] [stdout] --> src/win32_engine.rs:155:21 [INFO] [stdout] | [INFO] [stdout] 155 | let bitmap: BITMAPINFO = BITMAPINFO { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `BITMAPINFO` in this scope [INFO] [stdout] --> src/win32_engine.rs:155:34 [INFO] [stdout] | [INFO] [stdout] 155 | let bitmap: BITMAPINFO = BITMAPINFO { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `BITMAPINFOHEADER` in this scope [INFO] [stdout] --> src/win32_engine.rs:156:24 [INFO] [stdout] | [INFO] [stdout] 156 | bmiHeader: BITMAPINFOHEADER { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HeapAlloc` in this scope [INFO] [stdout] --> src/win32_engine.rs:210:29 [INFO] [stdout] | [INFO] [stdout] 210 | result.memory = HeapAlloc( [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcessHeap` in this scope [INFO] [stdout] --> src/win32_engine.rs:211:17 [INFO] [stdout] | [INFO] [stdout] 211 | GetProcessHeap(), [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HEAP_ZERO_MEMORY` in this scope [INFO] [stdout] --> src/win32_engine.rs:212:17 [INFO] [stdout] | [INFO] [stdout] 212 | HEAP_ZERO_MEMORY, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win32_engine.rs:246:12 [INFO] [stdout] | [INFO] [stdout] 246 | h_wnd: HWND, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `UINT` in this scope [INFO] [stdout] --> src/win32_engine.rs:247:10 [INFO] [stdout] | [INFO] [stdout] 247 | msg: UINT, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WPARAM` in this scope [INFO] [stdout] --> src/win32_engine.rs:248:14 [INFO] [stdout] | [INFO] [stdout] 248 | w_param: WPARAM, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPARAM` in this scope [INFO] [stdout] --> src/win32_engine.rs:249:14 [INFO] [stdout] | [INFO] [stdout] 249 | l_param: LPARAM, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LRESULT` in this scope [INFO] [stdout] --> src/win32_engine.rs:250:6 [INFO] [stdout] | [INFO] [stdout] 250 | ) -> LRESULT { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WM_CLOSE` in this scope [INFO] [stdout] --> src/win32_engine.rs:251:15 [INFO] [stdout] | [INFO] [stdout] 251 | if msg == WM_CLOSE { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostQuitMessage` in this scope [INFO] [stdout] --> src/win32_engine.rs:253:9 [INFO] [stdout] | [INFO] [stdout] 253 | PostQuitMessage(0); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DefWindowProcW` in this scope [INFO] [stdout] --> src/win32_engine.rs:256:5 [INFO] [stdout] | [INFO] [stdout] 256 | DefWindowProcW(h_wnd, msg, w_param, l_param) [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateFileA` in this scope [INFO] [stdout] --> src/win32_engine.rs:274:27 [INFO] [stdout] | [INFO] [stdout] 274 | let file_handle = CreateFileA( [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCSTR` in this scope [INFO] [stdout] --> src/win32_engine.rs:275:45 [INFO] [stdout] | [INFO] [stdout] 275 | file_path_converted.as_ptr() as LPCSTR, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GENERIC_READ` in this scope [INFO] [stdout] --> src/win32_engine.rs:276:13 [INFO] [stdout] | [INFO] [stdout] 276 | GENERIC_READ, [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FILE_SHARE_READ` in this scope [INFO] [stdout] --> src/win32_engine.rs:277:13 [INFO] [stdout] | [INFO] [stdout] 277 | FILE_SHARE_READ, [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FILE_ATTRIBUTE_NORMAL` in this scope [INFO] [stdout] --> src/win32_engine.rs:280:13 [INFO] [stdout] | [INFO] [stdout] 280 | FILE_ATTRIBUTE_NORMAL, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetFileSize` in this scope [INFO] [stdout] --> src/win32_engine.rs:291:25 [INFO] [stdout] | [INFO] [stdout] 291 | let file_size = GetFileSize(file_handle as *mut std::ffi::c_void, std::ptr::null_mut()); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualAlloc` in this scope [INFO] [stdout] --> src/win32_engine.rs:294:27 [INFO] [stdout] | [INFO] [stdout] 294 | result.contents = VirtualAlloc( [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_COMMIT` in this scope [INFO] [stdout] --> src/win32_engine.rs:297:13 [INFO] [stdout] | [INFO] [stdout] 297 | MEM_COMMIT | MEM_RESERVE, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_RESERVE` in this scope [INFO] [stdout] --> src/win32_engine.rs:297:26 [INFO] [stdout] | [INFO] [stdout] 297 | MEM_COMMIT | MEM_RESERVE, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PAGE_READWRITE` in this scope [INFO] [stdout] --> src/win32_engine.rs:298:13 [INFO] [stdout] | [INFO] [stdout] 298 | PAGE_READWRITE, [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ReadFile` in this scope [INFO] [stdout] --> src/win32_engine.rs:303:20 [INFO] [stdout] | [INFO] [stdout] 303 | let read = ReadFile( [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseHandle` in this scope [INFO] [stdout] --> src/win32_engine.rs:319:9 [INFO] [stdout] | [INFO] [stdout] 319 | CloseHandle(file_handle); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win32_engine.rs:327:11 [INFO] [stdout] | [INFO] [stdout] 327 | hwnd: HWND, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HDC` in this scope [INFO] [stdout] --> src/win32_engine.rs:329:21 [INFO] [stdout] | [INFO] [stdout] 329 | device_context: HDC, [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `WNDCLASSW` in this scope [INFO] [stdout] --> src/win32_engine.rs:335:32 [INFO] [stdout] | [INFO] [stdout] 335 | let window_class = WNDCLASSW { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stdout] --> src/win32_engine.rs:340:33 [INFO] [stdout] | [INFO] [stdout] 340 | hInstance: 0 as HINSTANCE, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HICON` in this scope [INFO] [stdout] --> src/win32_engine.rs:341:29 [INFO] [stdout] | [INFO] [stdout] 341 | hIcon: 0 as HICON, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HICON` in this scope [INFO] [stdout] --> src/win32_engine.rs:342:31 [INFO] [stdout] | [INFO] [stdout] 342 | hCursor: 0 as HICON, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HBRUSH` in this scope [INFO] [stdout] --> src/win32_engine.rs:343:38 [INFO] [stdout] | [INFO] [stdout] 343 | hbrBackground: 16 as HBRUSH, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCWSTR` in this scope [INFO] [stdout] --> src/win32_engine.rs:344:36 [INFO] [stdout] | [INFO] [stdout] 344 | lpszMenuName: 0 as LPCWSTR, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegisterClassW` in this scope [INFO] [stdout] --> src/win32_engine.rs:348:30 [INFO] [stdout] | [INFO] [stdout] 348 | let error_code = RegisterClassW(&window_class); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateWindowExW` in this scope [INFO] [stdout] --> src/win32_engine.rs:352:26 [INFO] [stdout] | [INFO] [stdout] 352 | let window = CreateWindowExW( [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WS_OVERLAPPEDWINDOW` in this scope [INFO] [stdout] --> src/win32_engine.rs:356:17 [INFO] [stdout] | [INFO] [stdout] 356 | WS_OVERLAPPEDWINDOW | WS_VISIBLE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WS_VISIBLE` in this scope [INFO] [stdout] --> src/win32_engine.rs:356:39 [INFO] [stdout] | [INFO] [stdout] 356 | WS_OVERLAPPEDWINDOW | WS_VISIBLE, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CW_USEDEFAULT` in this scope [INFO] [stdout] --> src/win32_engine.rs:357:17 [INFO] [stdout] | [INFO] [stdout] 357 | CW_USEDEFAULT, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CW_USEDEFAULT` in this scope [INFO] [stdout] --> src/win32_engine.rs:358:17 [INFO] [stdout] | [INFO] [stdout] 358 | CW_USEDEFAULT, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CW_USEDEFAULT` in this scope [INFO] [stdout] --> src/win32_engine.rs:359:17 [INFO] [stdout] | [INFO] [stdout] 359 | CW_USEDEFAULT, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CW_USEDEFAULT` in this scope [INFO] [stdout] --> src/win32_engine.rs:360:17 [INFO] [stdout] | [INFO] [stdout] 360 | CW_USEDEFAULT, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win32_engine.rs:361:22 [INFO] [stdout] | [INFO] [stdout] 361 | 0 as HWND, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HMENU` in this scope [INFO] [stdout] --> src/win32_engine.rs:362:22 [INFO] [stdout] | [INFO] [stdout] 362 | 0 as HMENU, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stdout] --> src/win32_engine.rs:363:22 [INFO] [stdout] | [INFO] [stdout] 363 | 0 as HINSTANCE, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win32_engine.rs:367:37 [INFO] [stdout] | [INFO] [stdout] 367 | assert!(window != (0 as HWND), "failed to open the window"); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ShowWindow` in this scope [INFO] [stdout] --> src/win32_engine.rs:369:13 [INFO] [stdout] | [INFO] [stdout] 369 | ShowWindow(window, SW_SHOW); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SW_SHOW` in this scope [INFO] [stdout] --> src/win32_engine.rs:369:32 [INFO] [stdout] | [INFO] [stdout] 369 | ShowWindow(window, SW_SHOW); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `UpdateWindow` in this scope [INFO] [stdout] --> src/win32_engine.rs:370:13 [INFO] [stdout] | [INFO] [stdout] 370 | UpdateWindow(window); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetDC` in this scope [INFO] [stdout] --> src/win32_engine.rs:376:33 [INFO] [stdout] | [INFO] [stdout] 376 | device_context: GetDC(window), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MSG` in this scope [INFO] [stdout] --> src/win32_engine.rs:383:26 [INFO] [stdout] | [INFO] [stdout] 383 | let mut msg: MSG = std::mem::zeroed(); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PeekMessageA` in this scope [INFO] [stdout] --> src/win32_engine.rs:386:19 [INFO] [stdout] | [INFO] [stdout] 386 | while PeekMessageA(&mut msg, self.hwnd, 0, 0, PM_REMOVE) > 0 { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PM_REMOVE` in this scope [INFO] [stdout] --> src/win32_engine.rs:386:59 [INFO] [stdout] | [INFO] [stdout] 386 | while PeekMessageA(&mut msg, self.hwnd, 0, 0, PM_REMOVE) > 0 { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `TranslateMessage` in this scope [INFO] [stdout] --> src/win32_engine.rs:387:17 [INFO] [stdout] | [INFO] [stdout] 387 | TranslateMessage(&msg); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DispatchMessageA` in this scope [INFO] [stdout] --> src/win32_engine.rs:388:17 [INFO] [stdout] | [INFO] [stdout] 388 | DispatchMessageA(&msg); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualFree` in this scope [INFO] [stdout] --> src/win32_engine.rs:404:17 [INFO] [stdout] | [INFO] [stdout] 404 | VirtualFree(buffer.memory as *mut std::ffi::c_void, 0, MEM_RELEASE); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_RELEASE` in this scope [INFO] [stdout] --> src/win32_engine.rs:404:72 [INFO] [stdout] | [INFO] [stdout] 404 | VirtualFree(buffer.memory as *mut std::ffi::c_void, 0, MEM_RELEASE); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `RGBQUAD` in this scope [INFO] [stdout] --> src/win32_engine.rs:407:27 [INFO] [stdout] | [INFO] [stdout] 407 | let colors = [RGBQUAD { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `BITMAPINFO` in this scope [INFO] [stdout] --> src/win32_engine.rs:415:34 [INFO] [stdout] | [INFO] [stdout] 415 | buffer.bitmap_info = BITMAPINFO { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `BITMAPINFOHEADER` in this scope [INFO] [stdout] --> src/win32_engine.rs:416:28 [INFO] [stdout] | [INFO] [stdout] 416 | bmiHeader: BITMAPINFOHEADER { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BITMAPINFOHEADER` in this scope [INFO] [stdout] --> src/win32_engine.rs:417:44 [INFO] [stdout] | [INFO] [stdout] 332 | impl Win32Engine { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 417 | biSize: mem::size_of::() as u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `BI_RGB` in this scope [INFO] [stdout] --> src/win32_engine.rs:422:36 [INFO] [stdout] | [INFO] [stdout] 422 | biCompression: BI_RGB, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualAlloc` in this scope [INFO] [stdout] --> src/win32_engine.rs:432:29 [INFO] [stdout] | [INFO] [stdout] 432 | buffer.memory = VirtualAlloc( [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_COMMIT` in this scope [INFO] [stdout] --> src/win32_engine.rs:435:17 [INFO] [stdout] | [INFO] [stdout] 435 | MEM_COMMIT | MEM_RESERVE, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_RESERVE` in this scope [INFO] [stdout] --> src/win32_engine.rs:435:30 [INFO] [stdout] | [INFO] [stdout] 435 | MEM_COMMIT | MEM_RESERVE, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PAGE_READWRITE` in this scope [INFO] [stdout] --> src/win32_engine.rs:436:17 [INFO] [stdout] | [INFO] [stdout] 436 | PAGE_READWRITE, [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `StretchDIBits` in this scope [INFO] [stdout] --> src/win32_engine.rs:477:13 [INFO] [stdout] | [INFO] [stdout] 477 | StretchDIBits( [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DIB_RGB_COLORS` in this scope [INFO] [stdout] --> src/win32_engine.rs:489:17 [INFO] [stdout] | [INFO] [stdout] 489 | DIB_RGB_COLORS, [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SRCCOPY` in this scope [INFO] [stdout] --> src/win32_engine.rs:490:17 [INFO] [stdout] | [INFO] [stdout] 490 | SRCCOPY, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win32_engine.rs:509:34 [INFO] [stdout] | [INFO] [stdout] 509 | pub fn get_window(&self) -> &HWND { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetFocus` in this scope [INFO] [stdout] --> src/win32_engine.rs:524:24 [INFO] [stdout] | [INFO] [stdout] 524 | let wind = GetFocus(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ReleaseDC` in this scope [INFO] [stdout] --> src/win32_engine.rs:535:13 [INFO] [stdout] | [INFO] [stdout] 535 | ReleaseDC(self.hwnd, self.device_context); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `XINPUT_STATE` in this scope [INFO] [stdout] --> src/win32_engine.rs:569:21 [INFO] [stdout] | [INFO] [stdout] 569 | game_pad_state: XINPUT_STATE, [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `XINPUT_GAMEPAD` in this scope [INFO] [stdout] --> src/win32_engine.rs:576:30 [INFO] [stdout] | [INFO] [stdout] 576 | let gamepad_struct = XINPUT_GAMEPAD { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `XINPUT_STATE` in this scope [INFO] [stdout] --> src/win32_engine.rs:586:21 [INFO] [stdout] | [INFO] [stdout] 586 | let state = XINPUT_STATE { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `XUSER_MAX_COUNT` in this scope [INFO] [stdout] --> src/win32_engine.rs:599:25 [INFO] [stdout] | [INFO] [stdout] 599 | for i in 0..XUSER_MAX_COUNT { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `XINPUT_GAMEPAD` in this scope [INFO] [stdout] --> src/win32_engine.rs:600:44 [INFO] [stdout] | [INFO] [stdout] 600 | let empty_gamepad_struct = XINPUT_GAMEPAD { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `XINPUT_STATE` in this scope [INFO] [stdout] --> src/win32_engine.rs:610:33 [INFO] [stdout] | [INFO] [stdout] 610 | let mut state = XINPUT_STATE { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `XInputGetState` in this scope [INFO] [stdout] --> src/win32_engine.rs:616:24 [INFO] [stdout] | [INFO] [stdout] 616 | if XInputGetState(i, &mut state) == ERROR_SUCCESS { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ERROR_SUCCESS` in this scope [INFO] [stdout] --> src/win32_engine.rs:616:57 [INFO] [stdout] | [INFO] [stdout] 616 | if XInputGetState(i, &mut state) == ERROR_SUCCESS { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetAsyncKeyState` in this scope [INFO] [stdout] --> src/win32_engine.rs:627:16 [INFO] [stdout] | [INFO] [stdout] 627 | if GetAsyncKeyState(0x41) != 0 || GetAsyncKeyState(VK_LEFT) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetAsyncKeyState` in this scope [INFO] [stdout] --> src/win32_engine.rs:627:47 [INFO] [stdout] | [INFO] [stdout] 627 | if GetAsyncKeyState(0x41) != 0 || GetAsyncKeyState(VK_LEFT) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `VK_LEFT` in this scope [INFO] [stdout] --> src/win32_engine.rs:627:64 [INFO] [stdout] | [INFO] [stdout] 627 | if GetAsyncKeyState(0x41) != 0 || GetAsyncKeyState(VK_LEFT) != 0 { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `XInputGetState` in this scope [INFO] [stdout] --> src/win32_engine.rs:631:16 [INFO] [stdout] | [INFO] [stdout] 631 | if XInputGetState(self.game_pad_id as u32, &mut self.game_pad_state) == ERROR_SUCCESS { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ERROR_SUCCESS` in this scope [INFO] [stdout] --> src/win32_engine.rs:631:85 [INFO] [stdout] | [INFO] [stdout] 631 | if XInputGetState(self.game_pad_id as u32, &mut self.game_pad_state) == ERROR_SUCCESS { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `XINPUT_GAMEPAD_DPAD_LEFT` in this scope [INFO] [stdout] --> src/win32_engine.rs:632:59 [INFO] [stdout] | [INFO] [stdout] 632 | if self.game_pad_state.Gamepad.wButtons & XINPUT_GAMEPAD_DPAD_LEFT != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetAsyncKeyState` in this scope [INFO] [stdout] --> src/win32_engine.rs:643:16 [INFO] [stdout] | [INFO] [stdout] 643 | if GetAsyncKeyState(0x44) != 0 || GetAsyncKeyState(VK_RIGHT) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetAsyncKeyState` in this scope [INFO] [stdout] --> src/win32_engine.rs:643:47 [INFO] [stdout] | [INFO] [stdout] 643 | if GetAsyncKeyState(0x44) != 0 || GetAsyncKeyState(VK_RIGHT) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `VK_RIGHT` in this scope [INFO] [stdout] --> src/win32_engine.rs:643:64 [INFO] [stdout] | [INFO] [stdout] 643 | if GetAsyncKeyState(0x44) != 0 || GetAsyncKeyState(VK_RIGHT) != 0 { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `XINPUT_GAMEPAD_DPAD_RIGHT` in this scope [INFO] [stdout] --> src/win32_engine.rs:647:55 [INFO] [stdout] | [INFO] [stdout] 647 | if self.game_pad_state.Gamepad.wButtons & XINPUT_GAMEPAD_DPAD_RIGHT != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetAsyncKeyState` in this scope [INFO] [stdout] --> src/win32_engine.rs:656:16 [INFO] [stdout] | [INFO] [stdout] 656 | if GetAsyncKeyState(0x57) != 0 || GetAsyncKeyState(VK_UP) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetAsyncKeyState` in this scope [INFO] [stdout] --> src/win32_engine.rs:656:47 [INFO] [stdout] | [INFO] [stdout] 656 | if GetAsyncKeyState(0x57) != 0 || GetAsyncKeyState(VK_UP) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `VK_UP` in this scope [INFO] [stdout] --> src/win32_engine.rs:656:64 [INFO] [stdout] | [INFO] [stdout] 656 | if GetAsyncKeyState(0x57) != 0 || GetAsyncKeyState(VK_UP) != 0 { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `XINPUT_GAMEPAD_DPAD_UP` in this scope [INFO] [stdout] --> src/win32_engine.rs:660:55 [INFO] [stdout] | [INFO] [stdout] 660 | if self.game_pad_state.Gamepad.wButtons & XINPUT_GAMEPAD_DPAD_UP != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetAsyncKeyState` in this scope [INFO] [stdout] --> src/win32_engine.rs:669:16 [INFO] [stdout] | [INFO] [stdout] 669 | if GetAsyncKeyState(0x53) != 0 || GetAsyncKeyState(VK_DOWN) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetAsyncKeyState` in this scope [INFO] [stdout] --> src/win32_engine.rs:669:47 [INFO] [stdout] | [INFO] [stdout] 669 | if GetAsyncKeyState(0x53) != 0 || GetAsyncKeyState(VK_DOWN) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `VK_DOWN` in this scope [INFO] [stdout] --> src/win32_engine.rs:669:64 [INFO] [stdout] | [INFO] [stdout] 669 | if GetAsyncKeyState(0x53) != 0 || GetAsyncKeyState(VK_DOWN) != 0 { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `XINPUT_GAMEPAD_DPAD_DOWN` in this scope [INFO] [stdout] --> src/win32_engine.rs:672:55 [INFO] [stdout] | [INFO] [stdout] 672 | if self.game_pad_state.Gamepad.wButtons & XINPUT_GAMEPAD_DPAD_DOWN != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `kernel32::*` [INFO] [stdout] --> src/win32_engine.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use kernel32::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Color`, `Point` [INFO] [stdout] --> src/main.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | use math::{Color, Point, Rect}; [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Win32Drawable` [INFO] [stdout] --> src/main.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 11 | use win32_engine::{Win32Drawable, Win32Engine, Win32GameBitmap, Win32Input}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode_wide` found for reference `&OsStr` in the current scope [INFO] [stdout] --> src/language_layer.rs:13:51 [INFO] [stdout] | [INFO] [stdout] 13 | let mut result: Vec = OsStr::new(string).encode_wide().collect(); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&OsStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 142 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0425, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `handmade_rust` due to 143 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "eb2f0d099117db73b0221f7c2de9770a44e8e84cfdc48616934aa8e61559d1e2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eb2f0d099117db73b0221f7c2de9770a44e8e84cfdc48616934aa8e61559d1e2", kill_on_drop: false }` [INFO] [stdout] eb2f0d099117db73b0221f7c2de9770a44e8e84cfdc48616934aa8e61559d1e2