[INFO] cloning repository https://github.com/jestarray/handmadehero-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jestarray/handmadehero-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjestarray%2Fhandmadehero-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjestarray%2Fhandmadehero-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 82d62c17859f7c960ca204e2b407980568e8a9d0 [INFO] checking jestarray/handmadehero-rust against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjestarray%2Fhandmadehero-rust" "/workspace/builds/worker-10/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-10/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jestarray/handmadehero-rust on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jestarray/handmadehero-rust [INFO] finished tweaking git repo https://github.com/jestarray/handmadehero-rust [INFO] tweaked toml for git repo https://github.com/jestarray/handmadehero-rust written to /workspace/builds/worker-10/source/Cargo.toml [INFO] crate git repo https://github.com/jestarray/handmadehero-rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: lib.src [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 712da5d113edb53c12746615a8fe9b370e725abea03fb9bdf4fdfc21b13b070d [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "712da5d113edb53c12746615a8fe9b370e725abea03fb9bdf4fdfc21b13b070d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "712da5d113edb53c12746615a8fe9b370e725abea03fb9bdf4fdfc21b13b070d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "712da5d113edb53c12746615a8fe9b370e725abea03fb9bdf4fdfc21b13b070d", kill_on_drop: false }` [INFO] [stdout] 712da5d113edb53c12746615a8fe9b370e725abea03fb9bdf4fdfc21b13b070d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 448d9e668dcca1df0a9b1290f224de690494dcbfa485d24349956f5d7f1a7ac7 [INFO] running `Command { std: "docker" "start" "-a" "448d9e668dcca1df0a9b1290f224de690494dcbfa485d24349956f5d7f1a7ac7", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: lib.src [INFO] [stderr] Checking handmadehero-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unknown lint: `allow_bad_style` [INFO] [stdout] --> src/handmade_world.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | #![allow(allow_bad_style)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unknown_lints)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `allow_bad_style` [INFO] [stdout] --> src/handmade_world.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | #![allow(allow_bad_style)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unknown_lints)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `return` value [INFO] [stdout] --> src/handmade_math.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 97 | return (result); [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `return` value [INFO] [stdout] --> src/handmade_math.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 102 | return (result); [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `return` value [INFO] [stdout] --> src/handmade_math.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | return (result); [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/handmade_world.rs:53:38 [INFO] [stdout] | [INFO] [stdout] 53 | static TILE_CHUNK_SAFE_MARGIN: i32 = (std::i32::MAX / 64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/handmade.rs:959:32 [INFO] [stdout] | [INFO] [stdout] 959 | ... if ((*Low).HighEntityIndex == 0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/handmade.rs:961:36 [INFO] [stdout] | [INFO] [stdout] 961 | ... if (IsInRectangle(CameraBounds, CameraSpaceP)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `return` value [INFO] [stdout] --> src/handmade_math.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 97 | return (result); [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `return` value [INFO] [stdout] --> src/handmade_math.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 102 | return (result); [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `return` value [INFO] [stdout] --> src/handmade_math.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | return (result); [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/handmade_world.rs:53:38 [INFO] [stdout] | [INFO] [stdout] 53 | static TILE_CHUNK_SAFE_MARGIN: i32 = (std::i32::MAX / 64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/handmade.rs:959:32 [INFO] [stdout] | [INFO] [stdout] 959 | ... if ((*Low).HighEntityIndex == 0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/handmade.rs:961:36 [INFO] [stdout] | [INFO] [stdout] 961 | ... if (IsInRectangle(CameraBounds, CameraSpaceP)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Y` [INFO] [stdout] --> src/handmade.rs:363:13 [INFO] [stdout] | [INFO] [stdout] 363 | for Y in MinY..MaxY [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_Y` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `X` [INFO] [stdout] --> src/handmade.rs:370:17 [INFO] [stdout] | [INFO] [stdout] 370 | for X in MinX..MaxX [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_X` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Y` [INFO] [stdout] --> src/handmade.rs:450:13 [INFO] [stdout] | [INFO] [stdout] 450 | for Y in 0..Header.Height [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_Y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `X` [INFO] [stdout] --> src/handmade.rs:455:17 [INFO] [stdout] | [INFO] [stdout] 455 | for X in 0..Header.Width [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_X` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `EntityHigh` is never read [INFO] [stdout] --> src/handmade.rs:535:9 [INFO] [stdout] | [INFO] [stdout] 535 | let mut EntityHigh: Option<&mut high_entity> = None; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `HighEntityIndex` is never read [INFO] [stdout] --> src/handmade.rs:537:9 [INFO] [stdout] | [INFO] [stdout] 537 | let mut HighEntityIndex = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `World` [INFO] [stdout] --> src/handmade.rs:723:9 [INFO] [stdout] | [INFO] [stdout] 723 | let mut World = GameState.world.as_mut().unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_World` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `LowIndex` [INFO] [stdout] --> src/handmade.rs:751:13 [INFO] [stdout] | [INFO] [stdout] 751 | LowIndex, [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `LowIndex: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `NewPlayerP` [INFO] [stdout] --> src/handmade.rs:759:17 [INFO] [stdout] | [INFO] [stdout] 759 | let NewPlayerP = OldPlayerP + PlayerDelta; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_NewPlayerP` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `HitLow` [INFO] [stdout] --> src/handmade.rs:868:25 [INFO] [stdout] | [INFO] [stdout] 868 | let HitLow = &GameState.LowEntities[HitHigh.LowEntityIndex as usize]; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_HitLow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `PlayerWidth` [INFO] [stdout] --> src/handmade.rs:994:13 [INFO] [stdout] | [INFO] [stdout] 994 | let PlayerWidth: f32 = 0.75 * PlayerHeight; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_PlayerWidth` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ScreenIndex` [INFO] [stdout] --> src/handmade.rs:1128:17 [INFO] [stdout] | [INFO] [stdout] 1128 | for ScreenIndex in 0..2000 [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ScreenIndex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `NewCameraP` is never read [INFO] [stdout] --> src/handmade.rs:1239:17 [INFO] [stdout] | [INFO] [stdout] 1239 | let mut NewCameraP = world_position::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `LowerLeftX` [INFO] [stdout] --> src/handmade.rs:1259:13 [INFO] [stdout] | [INFO] [stdout] 1259 | let LowerLeftX = -(TileSideInPixels / 2) as f32; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_LowerLeftX` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `LowerLeftY` [INFO] [stdout] --> src/handmade.rs:1260:13 [INFO] [stdout] | [INFO] [stdout] 1260 | let LowerLeftY = buffer.height as f32; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_LowerLeftY` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `High` [INFO] [stdout] --> src/handmade.rs:1321:32 [INFO] [stdout] | [INFO] [stdout] 1321 | High: Some(High), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_High` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `PlayerR` [INFO] [stdout] --> src/handmade.rs:1437:17 [INFO] [stdout] | [INFO] [stdout] 1437 | let PlayerR = 1.0; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_PlayerR` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `PlayerG` [INFO] [stdout] --> src/handmade.rs:1438:17 [INFO] [stdout] | [INFO] [stdout] 1438 | let PlayerG = 1.0; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_PlayerG` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `PlayerB` [INFO] [stdout] --> src/handmade.rs:1439:17 [INFO] [stdout] | [INFO] [stdout] 1439 | let PlayerB = 0.0; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_PlayerB` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `PlayerLeftTop` [INFO] [stdout] --> src/handmade.rs:1443:17 [INFO] [stdout] | [INFO] [stdout] 1443 | let PlayerLeftTop = v2 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_PlayerLeftTop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `EntityWidthHeight` [INFO] [stdout] --> src/handmade.rs:1447:17 [INFO] [stdout] | [INFO] [stdout] 1447 | let EntityWidthHeight = v2 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_EntityWidthHeight` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `game_state` [INFO] [stdout] --> src/handmade.rs:1577:5 [INFO] [stdout] | [INFO] [stdout] 1577 | game_state: *mut GameState, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_game_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buffer` [INFO] [stdout] --> src/handmade.rs:1578:5 [INFO] [stdout] | [INFO] [stdout] 1578 | buffer: &mut game_sound_output_buffer, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tone_hz` [INFO] [stdout] --> src/handmade.rs:1579:5 [INFO] [stdout] | [INFO] [stdout] 1579 | tone_hz: u32, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tone_hz` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `thread` [INFO] [stdout] --> src/handmade.rs:1602:5 [INFO] [stdout] | [INFO] [stdout] 1602 | thread: &thread_context, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_thread` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `World` [INFO] [stdout] --> src/handmade_world.rs:72:23 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn AreInSameChunk(World: &world, A: &world_position, B: &world_position) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_World` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `OldBlock` is never read [INFO] [stdout] --> src/handmade_world.rs:297:21 [INFO] [stdout] | [INFO] [stdout] 297 | OldBlock = Some(PushStruct::(Arena)); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/handmade.rs:532:5 [INFO] [stdout] | [INFO] [stdout] 532 | mut GameState: &'a mut GameState, [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/handmade.rs:587:21 [INFO] [stdout] | [INFO] [stdout] 587 | let mut DelEntity = [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/handmade.rs:723:9 [INFO] [stdout] | [INFO] [stdout] 723 | let mut World = GameState.world.as_mut().unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/handmade_world.rs:108:17 [INFO] [stdout] | [INFO] [stdout] 94 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 108 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `GetCenter` [INFO] [stdout] --> src/handmade_math.rs:105:8 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn GetCenter(Rect: rectangle2) -> v2 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `RectMinMax` [INFO] [stdout] --> src/handmade_math.rs:116:8 [INFO] [stdout] | [INFO] [stdout] 116 | pub fn RectMinMax(Min: v2, Max: v2) -> rectangle2 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `RectMinDim` [INFO] [stdout] --> src/handmade_math.rs:125:4 [INFO] [stdout] | [INFO] [stdout] 125 | fn RectMinDim(Min: v2, Dim: v2) -> rectangle2 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `TILE_CHUNK_SAFE_MARGIN` [INFO] [stdout] --> src/handmade_world.rs:53:1 [INFO] [stdout] | [INFO] [stdout] 53 | static TILE_CHUNK_SAFE_MARGIN: i32 = (std::i32::MAX / 64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `IsCanonical` [INFO] [stdout] --> src/handmade_world.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn IsCanonical(World: &world, TileRel: f32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `IsCanonical_v2` [INFO] [stdout] --> src/handmade_world.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn IsCanonical_v2(World: &world, Offset: v2) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `CenteredChunkPoint` [INFO] [stdout] --> src/handmade_world.rs:208:8 [INFO] [stdout] | [INFO] [stdout] 208 | pub fn CenteredChunkPoint(ChunkX: u32, ChunkY: u32, ChunkZ: u32) -> world_position { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `ChunkZ` [INFO] [stdout] --> src/handmade.rs:163:5 [INFO] [stdout] | [INFO] [stdout] 163 | ChunkZ: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `dAbsTileZ` [INFO] [stdout] --> src/handmade.rs:187:5 [INFO] [stdout] | [INFO] [stdout] 187 | dAbsTileZ: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `Backdrop` [INFO] [stdout] --> src/handmade.rs:214:5 [INFO] [stdout] | [INFO] [stdout] 214 | Backdrop: loaded_bitmap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `PushArray` [INFO] [stdout] --> src/handmade.rs:254:4 [INFO] [stdout] | [INFO] [stdout] 254 | fn PushArray(arena: &mut memory_arena, count: u32) -> &mut T { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Y` [INFO] [stdout] --> src/handmade.rs:363:13 [INFO] [stdout] | [INFO] [stdout] 363 | for Y in MinY..MaxY [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_Y` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `X` [INFO] [stdout] --> src/handmade.rs:370:17 [INFO] [stdout] | [INFO] [stdout] 370 | for X in MinX..MaxX [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_X` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Y` [INFO] [stdout] --> src/handmade.rs:450:13 [INFO] [stdout] | [INFO] [stdout] 450 | for Y in 0..Header.Height [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_Y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `X` [INFO] [stdout] --> src/handmade.rs:455:17 [INFO] [stdout] | [INFO] [stdout] 455 | for X in 0..Header.Width [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_X` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `EntityHigh` is never read [INFO] [stdout] --> src/handmade.rs:535:9 [INFO] [stdout] | [INFO] [stdout] 535 | let mut EntityHigh: Option<&mut high_entity> = None; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `HighEntityIndex` is never read [INFO] [stdout] --> src/handmade.rs:537:9 [INFO] [stdout] | [INFO] [stdout] 537 | let mut HighEntityIndex = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `World` [INFO] [stdout] --> src/handmade.rs:723:9 [INFO] [stdout] | [INFO] [stdout] 723 | let mut World = GameState.world.as_mut().unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_World` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `LowIndex` [INFO] [stdout] --> src/handmade.rs:751:13 [INFO] [stdout] | [INFO] [stdout] 751 | LowIndex, [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `LowIndex: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `NewPlayerP` [INFO] [stdout] --> src/handmade.rs:759:17 [INFO] [stdout] | [INFO] [stdout] 759 | let NewPlayerP = OldPlayerP + PlayerDelta; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_NewPlayerP` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `HitLow` [INFO] [stdout] --> src/handmade.rs:868:25 [INFO] [stdout] | [INFO] [stdout] 868 | let HitLow = &GameState.LowEntities[HitHigh.LowEntityIndex as usize]; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_HitLow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `PlayerWidth` [INFO] [stdout] --> src/handmade.rs:994:13 [INFO] [stdout] | [INFO] [stdout] 994 | let PlayerWidth: f32 = 0.75 * PlayerHeight; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_PlayerWidth` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ScreenIndex` [INFO] [stdout] --> src/handmade.rs:1128:17 [INFO] [stdout] | [INFO] [stdout] 1128 | for ScreenIndex in 0..2000 [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ScreenIndex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `NewCameraP` is never read [INFO] [stdout] --> src/handmade.rs:1239:17 [INFO] [stdout] | [INFO] [stdout] 1239 | let mut NewCameraP = world_position::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `LowerLeftX` [INFO] [stdout] --> src/handmade.rs:1259:13 [INFO] [stdout] | [INFO] [stdout] 1259 | let LowerLeftX = -(TileSideInPixels / 2) as f32; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_LowerLeftX` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `LowerLeftY` [INFO] [stdout] --> src/handmade.rs:1260:13 [INFO] [stdout] | [INFO] [stdout] 1260 | let LowerLeftY = buffer.height as f32; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_LowerLeftY` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `High` [INFO] [stdout] --> src/handmade.rs:1321:32 [INFO] [stdout] | [INFO] [stdout] 1321 | High: Some(High), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_High` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `PlayerR` [INFO] [stdout] --> src/handmade.rs:1437:17 [INFO] [stdout] | [INFO] [stdout] 1437 | let PlayerR = 1.0; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_PlayerR` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `PlayerG` [INFO] [stdout] --> src/handmade.rs:1438:17 [INFO] [stdout] | [INFO] [stdout] 1438 | let PlayerG = 1.0; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_PlayerG` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `PlayerB` [INFO] [stdout] --> src/handmade.rs:1439:17 [INFO] [stdout] | [INFO] [stdout] 1439 | let PlayerB = 0.0; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_PlayerB` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `PlayerLeftTop` [INFO] [stdout] --> src/handmade.rs:1443:17 [INFO] [stdout] | [INFO] [stdout] 1443 | let PlayerLeftTop = v2 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_PlayerLeftTop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `EntityWidthHeight` [INFO] [stdout] --> src/handmade.rs:1447:17 [INFO] [stdout] | [INFO] [stdout] 1447 | let EntityWidthHeight = v2 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_EntityWidthHeight` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `game_state` [INFO] [stdout] --> src/handmade.rs:1577:5 [INFO] [stdout] | [INFO] [stdout] 1577 | game_state: *mut GameState, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_game_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buffer` [INFO] [stdout] --> src/handmade.rs:1578:5 [INFO] [stdout] | [INFO] [stdout] 1578 | buffer: &mut game_sound_output_buffer, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tone_hz` [INFO] [stdout] --> src/handmade.rs:1579:5 [INFO] [stdout] | [INFO] [stdout] 1579 | tone_hz: u32, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tone_hz` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `thread` [INFO] [stdout] --> src/handmade.rs:1602:5 [INFO] [stdout] | [INFO] [stdout] 1602 | thread: &thread_context, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_thread` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `World` [INFO] [stdout] --> src/handmade_world.rs:72:23 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn AreInSameChunk(World: &world, A: &world_position, B: &world_position) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_World` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `OldBlock` is never read [INFO] [stdout] --> src/handmade_world.rs:297:21 [INFO] [stdout] | [INFO] [stdout] 297 | OldBlock = Some(PushStruct::(Arena)); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 49 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/handmade.rs:532:5 [INFO] [stdout] | [INFO] [stdout] 532 | mut GameState: &'a mut GameState, [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/handmade.rs:587:21 [INFO] [stdout] | [INFO] [stdout] 587 | let mut DelEntity = [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/handmade.rs:723:9 [INFO] [stdout] | [INFO] [stdout] 723 | let mut World = GameState.world.as_mut().unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/handmade_world.rs:108:17 [INFO] [stdout] | [INFO] [stdout] 94 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 108 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `GetCenter` [INFO] [stdout] --> src/handmade_math.rs:105:8 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn GetCenter(Rect: rectangle2) -> v2 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `RectMinMax` [INFO] [stdout] --> src/handmade_math.rs:116:8 [INFO] [stdout] | [INFO] [stdout] 116 | pub fn RectMinMax(Min: v2, Max: v2) -> rectangle2 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `RectMinDim` [INFO] [stdout] --> src/handmade_math.rs:125:4 [INFO] [stdout] | [INFO] [stdout] 125 | fn RectMinDim(Min: v2, Dim: v2) -> rectangle2 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `TILE_CHUNK_SAFE_MARGIN` [INFO] [stdout] --> src/handmade_world.rs:53:1 [INFO] [stdout] | [INFO] [stdout] 53 | static TILE_CHUNK_SAFE_MARGIN: i32 = (std::i32::MAX / 64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `IsCanonical` [INFO] [stdout] --> src/handmade_world.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn IsCanonical(World: &world, TileRel: f32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `IsCanonical_v2` [INFO] [stdout] --> src/handmade_world.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn IsCanonical_v2(World: &world, Offset: v2) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `CenteredChunkPoint` [INFO] [stdout] --> src/handmade_world.rs:208:8 [INFO] [stdout] | [INFO] [stdout] 208 | pub fn CenteredChunkPoint(ChunkX: u32, ChunkY: u32, ChunkZ: u32) -> world_position { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `ChunkZ` [INFO] [stdout] --> src/handmade.rs:163:5 [INFO] [stdout] | [INFO] [stdout] 163 | ChunkZ: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `dAbsTileZ` [INFO] [stdout] --> src/handmade.rs:187:5 [INFO] [stdout] | [INFO] [stdout] 187 | dAbsTileZ: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `Backdrop` [INFO] [stdout] --> src/handmade.rs:214:5 [INFO] [stdout] | [INFO] [stdout] 214 | Backdrop: loaded_bitmap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `PushArray` [INFO] [stdout] --> src/handmade.rs:254:4 [INFO] [stdout] | [INFO] [stdout] 254 | fn PushArray(arena: &mut memory_arena, count: u32) -> &mut T { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 49 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/win32_handmade.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | os::windows::ffi::OsStrExt, [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use winapi::um::minwinbase::GetFileExInfoStandard; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use winapi::um::winuser::GetMonitorInfoA; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use winapi::um::winuser::GetWindowLongA; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use winapi::um::winuser::GetWindowPlacement; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use winapi::um::winuser::MonitorFromWindow; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use winapi::um::winuser::SetCursor; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use winapi::um::winuser::SetWindowLongA; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use winapi::um::winuser::SetWindowPlacement; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use winapi::um::winuser::GWL_STYLE; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use winapi::um::winuser::HWND_TOP; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use winapi::um::winuser::MONITOR_DEFAULTTOPRIMARY; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | use winapi::um::winuser::WM_SETCURSOR; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | use winapi::{ [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | use winapi::um::winuser::SetWindowPos; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | use winapi::um::{ [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | use winapi::um::fileapi::WIN32_FILE_ATTRIBUTE_DATA; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | use winapi::um::winuser::LoadCursorW; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | use winapi::um::winuser::IDC_ARROW; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | use winapi::um::winuser::MONITORINFO; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 63 | use winapi::um::winuser::SWP_FRAMECHANGED; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | use winapi::um::winuser::SWP_NOMOVE; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | use winapi::um::winuser::SWP_NOOWNERZORDER; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 66 | use winapi::um::winuser::SWP_NOSIZE; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | use winapi::um::winuser::SWP_NOZORDER; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 68 | use winapi::um::winuser::WINDOWPLACEMENT; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 69 | use winapi::um::{ [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 79 | use winapi::um::{ [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | use winapi::{ [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/win32_handmade.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | os::windows::ffi::OsStrExt, [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use winapi::um::minwinbase::GetFileExInfoStandard; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use winapi::um::winuser::GetMonitorInfoA; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use winapi::um::winuser::GetWindowLongA; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use winapi::um::winuser::GetWindowPlacement; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use winapi::um::winuser::MonitorFromWindow; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use winapi::um::winuser::SetCursor; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use winapi::um::winuser::SetWindowLongA; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use winapi::um::winuser::SetWindowPlacement; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use winapi::um::winuser::GWL_STYLE; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use winapi::um::winuser::HWND_TOP; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use winapi::um::winuser::MONITOR_DEFAULTTOPRIMARY; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | use winapi::um::winuser::WM_SETCURSOR; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | use winapi::{ [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | use winapi::um::winuser::SetWindowPos; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | use winapi::um::{ [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | use winapi::um::fileapi::WIN32_FILE_ATTRIBUTE_DATA; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | use winapi::um::winuser::LoadCursorW; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | use winapi::um::winuser::IDC_ARROW; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | use winapi::um::winuser::MONITORINFO; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 63 | use winapi::um::winuser::SWP_FRAMECHANGED; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | use winapi::um::winuser::SWP_NOMOVE; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | use winapi::um::winuser::SWP_NOOWNERZORDER; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 66 | use winapi::um::winuser::SWP_NOSIZE; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | use winapi::um::winuser::SWP_NOZORDER; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 68 | use winapi::um::winuser::WINDOWPLACEMENT; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 69 | use winapi::um::{ [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 79 | use winapi::um::{ [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | use winapi::{ [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:181:19 [INFO] [stdout] | [INFO] [stdout] 181 | 0 as *mut winapi::um::minwinbase::SECURITY_ATTRIBUTES, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:181:19 [INFO] [stdout] | [INFO] [stdout] 181 | 0 as *mut winapi::um::minwinbase::SECURITY_ATTRIBUTES, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:200:45 [INFO] [stdout] | [INFO] [stdout] 200 | result.contents as *mut winapi::ctypes::c_void, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:200:45 [INFO] [stdout] | [INFO] [stdout] 200 | result.contents as *mut winapi::ctypes::c_void, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:225:36 [INFO] [stdout] | [INFO] [stdout] 225 | VirtualFree(memory as *mut winapi::ctypes::c_void, 0, MEM_RELEASE); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:225:36 [INFO] [stdout] | [INFO] [stdout] 225 | VirtualFree(memory as *mut winapi::ctypes::c_void, 0, MEM_RELEASE); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:240:19 [INFO] [stdout] | [INFO] [stdout] 240 | 0 as *mut winapi::um::minwinbase::SECURITY_ATTRIBUTES, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:250:30 [INFO] [stdout] | [INFO] [stdout] 250 | memory as *const winapi::ctypes::c_void, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:240:19 [INFO] [stdout] | [INFO] [stdout] 240 | 0 as *mut winapi::um::minwinbase::SECURITY_ATTRIBUTES, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:250:30 [INFO] [stdout] | [INFO] [stdout] 250 | memory as *const winapi::ctypes::c_void, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:1067:23 [INFO] [stdout] | [INFO] [stdout] 1067 | 0 as *mut winapi::shared::windef::HWND__, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:1067:23 [INFO] [stdout] | [INFO] [stdout] 1067 | 0 as *mut winapi::shared::windef::HWND__, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0408]: variable `WM_KEYDOWN` is not bound in all patterns [INFO] [stdout] --> src/win32_handmade.rs:1088:13 [INFO] [stdout] | [INFO] [stdout] 1088 | WM_SYSKEYDOWN | WM_SYSKEYUP | WM_KEYDOWN | WM_KEYUP => { [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^ ---------- ^^^^^^^^ pattern doesn't bind `WM_KEYDOWN` [INFO] [stdout] | | | | [INFO] [stdout] | | | variable not in all patterns [INFO] [stdout] | | pattern doesn't bind `WM_KEYDOWN` [INFO] [stdout] | pattern doesn't bind `WM_KEYDOWN` [INFO] [stdout] | [INFO] [stdout] help: if you meant to match on a variant or a `const` item, consider making the path in the pattern qualified: `?::WM_KEYDOWN` [INFO] [stdout] --> src/win32_handmade.rs:1088:43 [INFO] [stdout] | [INFO] [stdout] 1088 | WM_SYSKEYDOWN | WM_SYSKEYUP | WM_KEYDOWN | WM_KEYUP => { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0408]: variable `WM_KEYUP` is not bound in all patterns [INFO] [stdout] --> src/win32_handmade.rs:1088:13 [INFO] [stdout] | [INFO] [stdout] 1088 | WM_SYSKEYDOWN | WM_SYSKEYUP | WM_KEYDOWN | WM_KEYUP => { [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^ -------- variable not in all patterns [INFO] [stdout] | | | | [INFO] [stdout] | | | pattern doesn't bind `WM_KEYUP` [INFO] [stdout] | | pattern doesn't bind `WM_KEYUP` [INFO] [stdout] | pattern doesn't bind `WM_KEYUP` [INFO] [stdout] | [INFO] [stdout] help: if you meant to match on a variant or a `const` item, consider making the path in the pattern qualified: `?::WM_KEYUP` [INFO] [stdout] --> src/win32_handmade.rs:1088:56 [INFO] [stdout] | [INFO] [stdout] 1088 | WM_SYSKEYDOWN | WM_SYSKEYUP | WM_KEYDOWN | WM_KEYUP => { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0408]: variable `WM_SYSKEYDOWN` is not bound in all patterns [INFO] [stdout] --> src/win32_handmade.rs:1088:29 [INFO] [stdout] | [INFO] [stdout] 1088 | WM_SYSKEYDOWN | WM_SYSKEYUP | WM_KEYDOWN | WM_KEYUP => { [INFO] [stdout] | ------------- ^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^ pattern doesn't bind `WM_SYSKEYDOWN` [INFO] [stdout] | | | | [INFO] [stdout] | | | pattern doesn't bind `WM_SYSKEYDOWN` [INFO] [stdout] | | pattern doesn't bind `WM_SYSKEYDOWN` [INFO] [stdout] | variable not in all patterns [INFO] [stdout] | [INFO] [stdout] help: if you meant to match on a variant or a `const` item, consider making the path in the pattern qualified: `?::WM_SYSKEYDOWN` [INFO] [stdout] --> src/win32_handmade.rs:1088:13 [INFO] [stdout] | [INFO] [stdout] 1088 | WM_SYSKEYDOWN | WM_SYSKEYUP | WM_KEYDOWN | WM_KEYUP => { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0408]: variable `WM_SYSKEYUP` is not bound in all patterns [INFO] [stdout] --> src/win32_handmade.rs:1088:13 [INFO] [stdout] | [INFO] [stdout] 1088 | WM_SYSKEYDOWN | WM_SYSKEYUP | WM_KEYDOWN | WM_KEYUP => { [INFO] [stdout] | ^^^^^^^^^^^^^ ----------- ^^^^^^^^^^ ^^^^^^^^ pattern doesn't bind `WM_SYSKEYUP` [INFO] [stdout] | | | | [INFO] [stdout] | | | pattern doesn't bind `WM_SYSKEYUP` [INFO] [stdout] | | variable not in all patterns [INFO] [stdout] | pattern doesn't bind `WM_SYSKEYUP` [INFO] [stdout] | [INFO] [stdout] help: if you meant to match on a variant or a `const` item, consider making the path in the pattern qualified: `?::WM_SYSKEYUP` [INFO] [stdout] --> src/win32_handmade.rs:1088:29 [INFO] [stdout] | [INFO] [stdout] 1088 | WM_SYSKEYDOWN | WM_SYSKEYUP | WM_KEYDOWN | WM_KEYUP => { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0408]: variable `WM_KEYDOWN` is not bound in all patterns [INFO] [stdout] --> src/win32_handmade.rs:1088:13 [INFO] [stdout] | [INFO] [stdout] 1088 | WM_SYSKEYDOWN | WM_SYSKEYUP | WM_KEYDOWN | WM_KEYUP => { [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^ ---------- ^^^^^^^^ pattern doesn't bind `WM_KEYDOWN` [INFO] [stdout] | | | | [INFO] [stdout] | | | variable not in all patterns [INFO] [stdout] | | pattern doesn't bind `WM_KEYDOWN` [INFO] [stdout] | pattern doesn't bind `WM_KEYDOWN` [INFO] [stdout] | [INFO] [stdout] help: if you meant to match on a variant or a `const` item, consider making the path in the pattern qualified: `?::WM_KEYDOWN` [INFO] [stdout] --> src/win32_handmade.rs:1088:43 [INFO] [stdout] | [INFO] [stdout] 1088 | WM_SYSKEYDOWN | WM_SYSKEYUP | WM_KEYDOWN | WM_KEYUP => { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0408]: variable `WM_KEYUP` is not bound in all patterns [INFO] [stdout] --> src/win32_handmade.rs:1088:13 [INFO] [stdout] | [INFO] [stdout] 1088 | WM_SYSKEYDOWN | WM_SYSKEYUP | WM_KEYDOWN | WM_KEYUP => { [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^ -------- variable not in all patterns [INFO] [stdout] | | | | [INFO] [stdout] | | | pattern doesn't bind `WM_KEYUP` [INFO] [stdout] | | pattern doesn't bind `WM_KEYUP` [INFO] [stdout] | pattern doesn't bind `WM_KEYUP` [INFO] [stdout] | [INFO] [stdout] help: if you meant to match on a variant or a `const` item, consider making the path in the pattern qualified: `?::WM_KEYUP` [INFO] [stdout] --> src/win32_handmade.rs:1088:56 [INFO] [stdout] | [INFO] [stdout] 1088 | WM_SYSKEYDOWN | WM_SYSKEYUP | WM_KEYDOWN | WM_KEYUP => { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0408]: variable `WM_SYSKEYDOWN` is not bound in all patterns [INFO] [stdout] --> src/win32_handmade.rs:1088:29 [INFO] [stdout] | [INFO] [stdout] 1088 | WM_SYSKEYDOWN | WM_SYSKEYUP | WM_KEYDOWN | WM_KEYUP => { [INFO] [stdout] | ------------- ^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^ pattern doesn't bind `WM_SYSKEYDOWN` [INFO] [stdout] | | | | [INFO] [stdout] | | | pattern doesn't bind `WM_SYSKEYDOWN` [INFO] [stdout] | | pattern doesn't bind `WM_SYSKEYDOWN` [INFO] [stdout] | variable not in all patterns [INFO] [stdout] | [INFO] [stdout] help: if you meant to match on a variant or a `const` item, consider making the path in the pattern qualified: `?::WM_SYSKEYDOWN` [INFO] [stdout] --> src/win32_handmade.rs:1088:13 [INFO] [stdout] | [INFO] [stdout] 1088 | WM_SYSKEYDOWN | WM_SYSKEYUP | WM_KEYDOWN | WM_KEYUP => { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0408]: variable `WM_SYSKEYUP` is not bound in all patterns [INFO] [stdout] --> src/win32_handmade.rs:1088:13 [INFO] [stdout] | [INFO] [stdout] 1088 | WM_SYSKEYDOWN | WM_SYSKEYUP | WM_KEYDOWN | WM_KEYUP => { [INFO] [stdout] | ^^^^^^^^^^^^^ ----------- ^^^^^^^^^^ ^^^^^^^^ pattern doesn't bind `WM_SYSKEYUP` [INFO] [stdout] | | | | [INFO] [stdout] | | | pattern doesn't bind `WM_SYSKEYUP` [INFO] [stdout] | | variable not in all patterns [INFO] [stdout] | pattern doesn't bind `WM_SYSKEYUP` [INFO] [stdout] | [INFO] [stdout] help: if you meant to match on a variant or a `const` item, consider making the path in the pattern qualified: `?::WM_SYSKEYUP` [INFO] [stdout] --> src/win32_handmade.rs:1088:29 [INFO] [stdout] | [INFO] [stdout] 1088 | WM_SYSKEYDOWN | WM_SYSKEYUP | WM_KEYDOWN | WM_KEYUP => { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:1237:37 [INFO] [stdout] | [INFO] [stdout] 1237 | SetCursor(0 as *mut winapi::shared::windef::HICON__); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:1237:37 [INFO] [stdout] | [INFO] [stdout] 1237 | SetCursor(0 as *mut winapi::shared::windef::HICON__); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:1694:59 [INFO] [stdout] | [INFO] [stdout] 1694 | ... let mut controller_state: winapi::um::xinput::XINPUT_STATE = [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:1697:40 [INFO] [stdout] | [INFO] [stdout] 1697 | ... == winapi::shared::winerror::ERROR_SUCCESS [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:1705:56 [INFO] [stdout] | [INFO] [stdout] 1705 | ... pad.wButtons & winapi::um::xinput::XINPUT_GAMEPAD_DPAD_UP; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:1707:56 [INFO] [stdout] | [INFO] [stdout] 1707 | ... pad.wButtons & winapi::um::xinput::XINPUT_GAMEPAD_DPAD_DOWN; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:1709:56 [INFO] [stdout] | [INFO] [stdout] 1709 | ... pad.wButtons & winapi::um::xinput::XINPUT_GAMEPAD_DPAD_LEFT; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:1711:43 [INFO] [stdout] | [INFO] [stdout] 1711 | ... & winapi::um::xinput::XINPUT_GAMEPAD_DPAD_RIGHT; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:1797:41 [INFO] [stdout] | [INFO] [stdout] 1797 | ... winapi::um::xinput::XINPUT_GAMEPAD_A.into(), [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:1803:41 [INFO] [stdout] | [INFO] [stdout] 1803 | ... winapi::um::xinput::XINPUT_GAMEPAD_B.into(), [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:1810:41 [INFO] [stdout] | [INFO] [stdout] 1810 | ... winapi::um::xinput::XINPUT_GAMEPAD_X.into(), [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:1817:41 [INFO] [stdout] | [INFO] [stdout] 1817 | ... winapi::um::xinput::XINPUT_GAMEPAD_Y.into(), [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:1824:41 [INFO] [stdout] | [INFO] [stdout] 1824 | ... winapi::um::xinput::XINPUT_GAMEPAD_LEFT_SHOULDER.into(), [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:1831:41 [INFO] [stdout] | [INFO] [stdout] 1831 | ... winapi::um::xinput::XINPUT_GAMEPAD_RIGHT_SHOULDER.into(), [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:1838:41 [INFO] [stdout] | [INFO] [stdout] 1838 | ... winapi::um::xinput::XINPUT_GAMEPAD_START.into(), [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:1845:41 [INFO] [stdout] | [INFO] [stdout] 1845 | ... winapi::um::xinput::XINPUT_GAMEPAD_BACK.into(), [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:1694:59 [INFO] [stdout] | [INFO] [stdout] 1694 | ... let mut controller_state: winapi::um::xinput::XINPUT_STATE = [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:1697:40 [INFO] [stdout] | [INFO] [stdout] 1697 | ... == winapi::shared::winerror::ERROR_SUCCESS [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:1705:56 [INFO] [stdout] | [INFO] [stdout] 1705 | ... pad.wButtons & winapi::um::xinput::XINPUT_GAMEPAD_DPAD_UP; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:1707:56 [INFO] [stdout] | [INFO] [stdout] 1707 | ... pad.wButtons & winapi::um::xinput::XINPUT_GAMEPAD_DPAD_DOWN; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:1709:56 [INFO] [stdout] | [INFO] [stdout] 1709 | ... pad.wButtons & winapi::um::xinput::XINPUT_GAMEPAD_DPAD_LEFT; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:1711:43 [INFO] [stdout] | [INFO] [stdout] 1711 | ... & winapi::um::xinput::XINPUT_GAMEPAD_DPAD_RIGHT; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope [INFO] [stdout] --> src/win32_handmade.rs:123:23 [INFO] [stdout] | [INFO] [stdout] 123 | memory: 0 as *mut c_void, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::raw::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:1797:41 [INFO] [stdout] | [INFO] [stdout] 1797 | ... winapi::um::xinput::XINPUT_GAMEPAD_A.into(), [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:1803:41 [INFO] [stdout] | [INFO] [stdout] 1803 | ... winapi::um::xinput::XINPUT_GAMEPAD_B.into(), [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:1810:41 [INFO] [stdout] | [INFO] [stdout] 1810 | ... winapi::um::xinput::XINPUT_GAMEPAD_X.into(), [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:1817:41 [INFO] [stdout] | [INFO] [stdout] 1817 | ... winapi::um::xinput::XINPUT_GAMEPAD_Y.into(), [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:1824:41 [INFO] [stdout] | [INFO] [stdout] 1824 | ... winapi::um::xinput::XINPUT_GAMEPAD_LEFT_SHOULDER.into(), [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:1831:41 [INFO] [stdout] | [INFO] [stdout] 1831 | ... winapi::um::xinput::XINPUT_GAMEPAD_RIGHT_SHOULDER.into(), [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:1838:41 [INFO] [stdout] | [INFO] [stdout] 1838 | ... winapi::um::xinput::XINPUT_GAMEPAD_START.into(), [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/win32_handmade.rs:1845:41 [INFO] [stdout] | [INFO] [stdout] 1845 | ... winapi::um::xinput::XINPUT_GAMEPAD_BACK.into(), [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope [INFO] [stdout] --> src/win32_handmade.rs:123:23 [INFO] [stdout] | [INFO] [stdout] 123 | memory: 0 as *mut c_void, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::raw::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `BITMAPINFO` in this scope [INFO] [stdout] --> src/win32_handmade.rs:128:11 [INFO] [stdout] | [INFO] [stdout] 128 | 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_handmade.rs:129:20 [INFO] [stdout] | [INFO] [stdout] 129 | bmiHeader: BITMAPINFOHEADER { [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_handmade.rs:135:28 [INFO] [stdout] | [INFO] [stdout] 135 | biCompression: BI_RGB, [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_handmade.rs:128:11 [INFO] [stdout] | [INFO] [stdout] 128 | 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_handmade.rs:129:20 [INFO] [stdout] | [INFO] [stdout] 129 | bmiHeader: BITMAPINFOHEADER { [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_handmade.rs:142:21 [INFO] [stdout] | [INFO] [stdout] 142 | bmiColors: [RGBQUAD { [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_handmade.rs:135:28 [INFO] [stdout] | [INFO] [stdout] 135 | biCompression: BI_RGB, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPDIRECTSOUNDBUFFER` in this scope [INFO] [stdout] --> src/win32_handmade.rs:150:37 [INFO] [stdout] | [INFO] [stdout] 150 | static mut GLOBAL_SECONDARY_BUFFER: LPDIRECTSOUNDBUFFER = null_mut(); [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_handmade.rs:142:21 [INFO] [stdout] | [INFO] [stdout] 142 | bmiColors: [RGBQUAD { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPDIRECTSOUNDBUFFER` in this scope [INFO] [stdout] --> src/win32_handmade.rs:150:37 [INFO] [stdout] | [INFO] [stdout] 150 | static mut GLOBAL_SECONDARY_BUFFER: LPDIRECTSOUNDBUFFER = null_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WINDOWPLACEMENT` in this scope [INFO] [stdout] --> src/win32_handmade.rs:154:34 [INFO] [stdout] | [INFO] [stdout] 154 | static mut GlobalWindowPosition: WINDOWPLACEMENT = WINDOWPLACEMENT { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `WINDOWPLACEMENT` in this scope [INFO] [stdout] --> src/win32_handmade.rs:154:52 [INFO] [stdout] | [INFO] [stdout] 154 | static mut GlobalWindowPosition: WINDOWPLACEMENT = WINDOWPLACEMENT { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `POINT` in this scope [INFO] [stdout] --> src/win32_handmade.rs:158:20 [INFO] [stdout] | [INFO] [stdout] 158 | ptMinPosition: POINT { x: 0, y: 0 }, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `POINT` in this scope [INFO] [stdout] --> src/win32_handmade.rs:159:20 [INFO] [stdout] | [INFO] [stdout] 159 | ptMaxPosition: POINT { x: 0, y: 0 }, [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_handmade.rs:160:23 [INFO] [stdout] | [INFO] [stdout] 160 | rcNormalPosition: RECT { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WINDOWPLACEMENT` in this scope [INFO] [stdout] --> src/win32_handmade.rs:154:34 [INFO] [stdout] | [INFO] [stdout] 154 | static mut GlobalWindowPosition: WINDOWPLACEMENT = WINDOWPLACEMENT { [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_handmade.rs:177:23 [INFO] [stdout] | [INFO] [stdout] 177 | let file_handle = CreateFileA( [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `WINDOWPLACEMENT` in this scope [INFO] [stdout] --> src/win32_handmade.rs:154:52 [INFO] [stdout] | [INFO] [stdout] 154 | static mut GlobalWindowPosition: WINDOWPLACEMENT = WINDOWPLACEMENT { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `POINT` in this scope [INFO] [stdout] --> src/win32_handmade.rs:158:20 [INFO] [stdout] | [INFO] [stdout] 158 | ptMinPosition: POINT { x: 0, y: 0 }, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `POINT` in this scope [INFO] [stdout] --> src/win32_handmade.rs:159:20 [INFO] [stdout] | [INFO] [stdout] 159 | ptMaxPosition: POINT { x: 0, y: 0 }, [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_handmade.rs:179:9 [INFO] [stdout] | [INFO] [stdout] 179 | 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_handmade.rs:180:9 [INFO] [stdout] | [INFO] [stdout] 180 | FILE_SHARE_READ, [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `OPEN_EXISTING` in this scope [INFO] [stdout] --> src/win32_handmade.rs:182:9 [INFO] [stdout] | [INFO] [stdout] 182 | OPEN_EXISTING, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope [INFO] [stdout] --> src/win32_handmade.rs:187:23 [INFO] [stdout] | [INFO] [stdout] 187 | if file_handle != INVALID_HANDLE_VALUE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LARGE_INTEGER` in this scope [INFO] [stdout] --> src/win32_handmade.rs:188:38 [INFO] [stdout] | [INFO] [stdout] 168 | pub unsafe fn debug_platform_read_entire_file( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 188 | let mut file_size = zeroed::(); [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_handmade.rs:160:23 [INFO] [stdout] | [INFO] [stdout] 160 | rcNormalPosition: RECT { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetFileSizeEx` in this scope [INFO] [stdout] --> src/win32_handmade.rs:189:12 [INFO] [stdout] | [INFO] [stdout] 189 | if GetFileSizeEx(file_handle, &mut file_size) != 0 { [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_handmade.rs:190:31 [INFO] [stdout] | [INFO] [stdout] 190 | result.contents = VirtualAlloc( [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_handmade.rs:177:23 [INFO] [stdout] | [INFO] [stdout] 177 | let file_handle = CreateFileA( [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_handmade.rs:193:17 [INFO] [stdout] | [INFO] [stdout] 193 | MEM_RESERVE | MEM_COMMIT, [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_handmade.rs:179:9 [INFO] [stdout] | [INFO] [stdout] 179 | 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_handmade.rs:180:9 [INFO] [stdout] | [INFO] [stdout] 180 | FILE_SHARE_READ, [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_handmade.rs:193:31 [INFO] [stdout] | [INFO] [stdout] 193 | MEM_RESERVE | MEM_COMMIT, [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_handmade.rs:194:17 [INFO] [stdout] | [INFO] [stdout] 194 | PAGE_READWRITE, [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/win32_handmade.rs:197:47 [INFO] [stdout] | [INFO] [stdout] 168 | pub unsafe fn debug_platform_read_entire_file( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 197 | let mut bytes_read = zeroed::(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `OPEN_EXISTING` in this scope [INFO] [stdout] --> src/win32_handmade.rs:182:9 [INFO] [stdout] | [INFO] [stdout] 182 | OPEN_EXISTING, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope [INFO] [stdout] --> src/win32_handmade.rs:187:23 [INFO] [stdout] | [INFO] [stdout] 187 | if file_handle != INVALID_HANDLE_VALUE { [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_handmade.rs:198:20 [INFO] [stdout] | [INFO] [stdout] 198 | if 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_handmade.rs:216:9 [INFO] [stdout] | [INFO] [stdout] 216 | CloseHandle(file_handle); [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_handmade.rs:225:9 [INFO] [stdout] | [INFO] [stdout] 225 | VirtualFree(memory as *mut winapi::ctypes::c_void, 0, MEM_RELEASE); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LARGE_INTEGER` in this scope [INFO] [stdout] --> src/win32_handmade.rs:188:38 [INFO] [stdout] | [INFO] [stdout] 168 | pub unsafe fn debug_platform_read_entire_file( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 188 | let mut file_size = zeroed::(); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetFileSizeEx` in this scope [INFO] [stdout] --> src/win32_handmade.rs:189:12 [INFO] [stdout] | [INFO] [stdout] 189 | if GetFileSizeEx(file_handle, &mut file_size) != 0 { [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_handmade.rs:225:63 [INFO] [stdout] | [INFO] [stdout] 225 | VirtualFree(memory as *mut winapi::ctypes::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 `CreateFileA` in this scope [INFO] [stdout] --> src/win32_handmade.rs:236:23 [INFO] [stdout] | [INFO] [stdout] 236 | let file_handle = CreateFileA( [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GENERIC_WRITE` in this scope [INFO] [stdout] --> src/win32_handmade.rs:238:9 [INFO] [stdout] | [INFO] [stdout] 238 | GENERIC_WRITE, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CREATE_ALWAYS` in this scope [INFO] [stdout] --> src/win32_handmade.rs:241:9 [INFO] [stdout] | [INFO] [stdout] 241 | CREATE_ALWAYS, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope [INFO] [stdout] --> src/win32_handmade.rs:246:23 [INFO] [stdout] | [INFO] [stdout] 246 | if file_handle != INVALID_HANDLE_VALUE { [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/win32_handmade.rs:247:42 [INFO] [stdout] | [INFO] [stdout] 228 | pub unsafe fn debug_platform_write_entire_file( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 247 | let mut bytes_written = zeroed::(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WriteFile` in this scope [INFO] [stdout] --> src/win32_handmade.rs:248:12 [INFO] [stdout] | [INFO] [stdout] 248 | if WriteFile( [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_handmade.rs:190:31 [INFO] [stdout] | [INFO] [stdout] 190 | result.contents = VirtualAlloc( [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_handmade.rs:262:9 [INFO] [stdout] | [INFO] [stdout] 262 | CloseHandle(file_handle); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope [INFO] [stdout] --> src/win32_handmade.rs:269:18 [INFO] [stdout] | [INFO] [stdout] 269 | memory: *mut c_void, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::raw::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_RESERVE` in this scope [INFO] [stdout] --> src/win32_handmade.rs:193:17 [INFO] [stdout] | [INFO] [stdout] 193 | MEM_RESERVE | MEM_COMMIT, [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_handmade.rs:193:31 [INFO] [stdout] | [INFO] [stdout] 193 | MEM_RESERVE | MEM_COMMIT, [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_handmade.rs:274:11 [INFO] [stdout] | [INFO] [stdout] 274 | info: BITMAPINFO, [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/win32_handmade.rs:287:23 [INFO] [stdout] | [INFO] [stdout] 287 | OutputPlayCursor: DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/win32_handmade.rs:288:24 [INFO] [stdout] | [INFO] [stdout] 288 | OutputWriteCursor: DWORD, [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_handmade.rs:194:17 [INFO] [stdout] | [INFO] [stdout] 194 | PAGE_READWRITE, [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/win32_handmade.rs:289:21 [INFO] [stdout] | [INFO] [stdout] 289 | OutputLocation: DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/win32_handmade.rs:290:22 [INFO] [stdout] | [INFO] [stdout] 290 | OutputByteCount: DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/win32_handmade.rs:291:29 [INFO] [stdout] | [INFO] [stdout] 291 | ExpectedFlipPlayCursor: DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/win32_handmade.rs:197:47 [INFO] [stdout] | [INFO] [stdout] 168 | pub unsafe fn debug_platform_read_entire_file( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 197 | let mut bytes_read = zeroed::(); [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_handmade.rs:198:20 [INFO] [stdout] | [INFO] [stdout] 198 | if ReadFile( [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/win32_handmade.rs:293:21 [INFO] [stdout] | [INFO] [stdout] 293 | FlipPlayCursor: DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/win32_handmade.rs:294:22 [INFO] [stdout] | [INFO] [stdout] 294 | FlipWriteCursor: DWORD, [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_handmade.rs:216:9 [INFO] [stdout] | [INFO] [stdout] 216 | CloseHandle(file_handle); [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_handmade.rs:225:9 [INFO] [stdout] | [INFO] [stdout] 225 | VirtualFree(memory as *mut winapi::ctypes::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_handmade.rs:225:63 [INFO] [stdout] | [INFO] [stdout] 225 | VirtualFree(memory as *mut winapi::ctypes::c_void, 0, MEM_RELEASE); [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/win32_handmade.rs:301:17 [INFO] [stdout] | [INFO] [stdout] 301 | FileHandle: 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/win32_handmade.rs:302:16 [INFO] [stdout] | [INFO] [stdout] 302 | MemoryMap: HANDLE, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stdout] --> src/win32_handmade.rs:303:20 [INFO] [stdout] | [INFO] [stdout] 303 | FileName: [u8; MAX_PATH], [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope [INFO] [stdout] --> src/win32_handmade.rs:304:23 [INFO] [stdout] | [INFO] [stdout] 304 | MemoryBlock: *mut c_void, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::raw::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stdout] --> src/win32_handmade.rs:312:36 [INFO] [stdout] | [INFO] [stdout] 312 | FileName: ['\0' as u8; MAX_PATH], [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope [INFO] [stdout] --> src/win32_handmade.rs:320:27 [INFO] [stdout] | [INFO] [stdout] 320 | GameMemoryBlock: *mut c_void, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::raw::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/win32_handmade.rs:323:22 [INFO] [stdout] | [INFO] [stdout] 323 | RecordingHandle: 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/win32_handmade.rs:326:21 [INFO] [stdout] | [INFO] [stdout] 326 | PlaybackHandle: HANDLE, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stdout] --> src/win32_handmade.rs:329:29 [INFO] [stdout] | [INFO] [stdout] 329 | exe_file_name: &'a [u8; MAX_PATH], [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_handmade.rs:333:39 [INFO] [stdout] | [INFO] [stdout] 333 | fn win32_get_window_dimension(window: HWND) -> Win32WindowDimension { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RECT` in this scope [INFO] [stdout] --> src/win32_handmade.rs:335:40 [INFO] [stdout] | [INFO] [stdout] 333 | fn win32_get_window_dimension(window: HWND) -> Win32WindowDimension { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 334 | unsafe { [INFO] [stdout] 335 | let mut client_rect = zeroed::(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetClientRect` in this scope [INFO] [stdout] --> src/win32_handmade.rs:336:9 [INFO] [stdout] | [INFO] [stdout] 336 | GetClientRect(window, &mut client_rect); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HMODULE` in this scope [INFO] [stdout] --> src/win32_handmade.rs:529:20 [INFO] [stdout] | [INFO] [stdout] 529 | game_code_dll: HMODULE, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `FILETIME` in this scope [INFO] [stdout] --> src/win32_handmade.rs:533:26 [INFO] [stdout] | [INFO] [stdout] 533 | dll_last_write_time: FILETIME, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `FILETIME` in this scope [INFO] [stdout] --> src/win32_handmade.rs:536:57 [INFO] [stdout] | [INFO] [stdout] 536 | unsafe fn win32_get_last_write_time(file_name: &str) -> FILETIME { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `FILETIME` in this scope [INFO] [stdout] --> src/win32_handmade.rs:537:40 [INFO] [stdout] | [INFO] [stdout] 536 | unsafe fn win32_get_last_write_time(file_name: &str) -> FILETIME { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 537 | let mut last_write_time = zeroed::(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WIN32_FIND_DATAA` in this scope [INFO] [stdout] --> src/win32_handmade.rs:539:34 [INFO] [stdout] | [INFO] [stdout] 536 | unsafe fn win32_get_last_write_time(file_name: &str) -> FILETIME { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 539 | let mut find_data = zeroed::(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `FindFirstFileA` in this scope [INFO] [stdout] --> src/win32_handmade.rs:540:23 [INFO] [stdout] | [INFO] [stdout] 540 | let find_handle = FindFirstFileA(name.as_ptr(), &mut find_data); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope [INFO] [stdout] --> src/win32_handmade.rs:541:23 [INFO] [stdout] | [INFO] [stdout] 541 | if find_handle != INVALID_HANDLE_VALUE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `FindClose` in this scope [INFO] [stdout] --> src/win32_handmade.rs:543:9 [INFO] [stdout] | [INFO] [stdout] 543 | FindClose(find_handle); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WIN32_FILE_ATTRIBUTE_DATA` in this scope [INFO] [stdout] --> src/win32_handmade.rs:566:32 [INFO] [stdout] | [INFO] [stdout] 558 | unsafe fn win32_load_game_code( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 566 | let mut Ignored = zeroed::(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HMODULE` in this scope [INFO] [stdout] --> src/win32_handmade.rs:569:29 [INFO] [stdout] | [INFO] [stdout] 569 | game_code_dll: 0 as HMODULE, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetFileAttributesExA` in this scope [INFO] [stdout] --> src/win32_handmade.rs:575:10 [INFO] [stdout] | [INFO] [stdout] 575 | if !(GetFileAttributesExA( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GetFileExInfoStandard` in this scope [INFO] [stdout] --> src/win32_handmade.rs:577:9 [INFO] [stdout] | [INFO] [stdout] 577 | GetFileExInfoStandard, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WIN32_FILE_ATTRIBUTE_DATA` in this scope [INFO] [stdout] --> src/win32_handmade.rs:578:30 [INFO] [stdout] | [INFO] [stdout] 578 | &mut Ignored as *mut WIN32_FILE_ATTRIBUTE_DATA as *mut c_void, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope [INFO] [stdout] --> src/win32_handmade.rs:578:64 [INFO] [stdout] | [INFO] [stdout] 578 | &mut Ignored as *mut WIN32_FILE_ATTRIBUTE_DATA as *mut c_void, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::raw::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CopyFileA` in this scope [INFO] [stdout] --> src/win32_handmade.rs:581:12 [INFO] [stdout] | [INFO] [stdout] 581 | if CopyFileA(source_name.as_ptr(), temp_name.as_ptr(), FALSE) != 0 { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/win32_handmade.rs:581:64 [INFO] [stdout] | [INFO] [stdout] 581 | if CopyFileA(source_name.as_ptr(), temp_name.as_ptr(), FALSE) != 0 { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LoadLibraryA` in this scope [INFO] [stdout] --> src/win32_handmade.rs:590:32 [INFO] [stdout] | [INFO] [stdout] 590 | result.game_code_dll = LoadLibraryA(temp_name.as_ptr()); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcAddress` in this scope [INFO] [stdout] --> src/win32_handmade.rs:594:36 [INFO] [stdout] | [INFO] [stdout] 594 | let update = transmute(GetProcAddress( [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcAddress` in this scope [INFO] [stdout] --> src/win32_handmade.rs:601:47 [INFO] [stdout] | [INFO] [stdout] 601 | let get_sound_samples = transmute(GetProcAddress( [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `FreeLibrary` in this scope [INFO] [stdout] --> src/win32_handmade.rs:617:9 [INFO] [stdout] | [INFO] [stdout] 617 | FreeLibrary(game_code.game_code_dll); [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/win32_handmade.rs:624:44 [INFO] [stdout] | [INFO] [stdout] 624 | type XInputGetStateFn = extern "system" fn(DWORD, *mut XINPUT_STATE) -> DWORD; [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_handmade.rs:624:56 [INFO] [stdout] | [INFO] [stdout] 624 | type XInputGetStateFn = extern "system" fn(DWORD, *mut XINPUT_STATE) -> DWORD; [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/win32_handmade.rs:624:73 [INFO] [stdout] | [INFO] [stdout] 624 | type XInputGetStateFn = extern "system" fn(DWORD, *mut XINPUT_STATE) -> DWORD; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/win32_handmade.rs:625:45 [INFO] [stdout] | [INFO] [stdout] 625 | extern "system" fn xinput_get_state_stub(_: DWORD, _: *mut XINPUT_STATE) -> DWORD { [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_handmade.rs:625:60 [INFO] [stdout] | [INFO] [stdout] 625 | extern "system" fn xinput_get_state_stub(_: DWORD, _: *mut XINPUT_STATE) -> DWORD { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/win32_handmade.rs:625:77 [INFO] [stdout] | [INFO] [stdout] 625 | extern "system" fn xinput_get_state_stub(_: DWORD, _: *mut XINPUT_STATE) -> DWORD { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ERROR_DEVICE_NOT_CONNECTED` in this scope [INFO] [stdout] --> src/win32_handmade.rs:626:12 [INFO] [stdout] | [INFO] [stdout] 626 | return ERROR_DEVICE_NOT_CONNECTED; [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/win32_handmade.rs:630:44 [INFO] [stdout] | [INFO] [stdout] 630 | type XInputSetStateFn = extern "system" fn(DWORD, *mut XINPUT_VIBRATION) -> DWORD; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `XINPUT_VIBRATION` in this scope [INFO] [stdout] --> src/win32_handmade.rs:630:56 [INFO] [stdout] | [INFO] [stdout] 630 | type XInputSetStateFn = extern "system" fn(DWORD, *mut XINPUT_VIBRATION) -> DWORD; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/win32_handmade.rs:630:77 [INFO] [stdout] | [INFO] [stdout] 630 | type XInputSetStateFn = extern "system" fn(DWORD, *mut XINPUT_VIBRATION) -> DWORD; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/win32_handmade.rs:631:45 [INFO] [stdout] | [INFO] [stdout] 631 | extern "system" fn xinput_set_state_stub(_: DWORD, _: *mut XINPUT_VIBRATION) -> DWORD { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `XINPUT_VIBRATION` in this scope [INFO] [stdout] --> src/win32_handmade.rs:631:60 [INFO] [stdout] | [INFO] [stdout] 631 | extern "system" fn xinput_set_state_stub(_: DWORD, _: *mut XINPUT_VIBRATION) -> DWORD { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/win32_handmade.rs:631:81 [INFO] [stdout] | [INFO] [stdout] 631 | extern "system" fn xinput_set_state_stub(_: DWORD, _: *mut XINPUT_VIBRATION) -> DWORD { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ERROR_DEVICE_NOT_CONNECTED` in this scope [INFO] [stdout] --> src/win32_handmade.rs:632:12 [INFO] [stdout] | [INFO] [stdout] 632 | return ERROR_DEVICE_NOT_CONNECTED; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LoadLibraryA` in this scope [INFO] [stdout] --> src/win32_handmade.rs:638:23 [INFO] [stdout] | [INFO] [stdout] 638 | let mut library = LoadLibraryA(xinput1_4.as_ptr()); [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_handmade.rs:639:24 [INFO] [stdout] | [INFO] [stdout] 639 | if library == 0 as HINSTANCE { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LoadLibraryA` in this scope [INFO] [stdout] --> src/win32_handmade.rs:641:19 [INFO] [stdout] | [INFO] [stdout] 641 | library = LoadLibraryA(xinput9_1_0.as_ptr()); [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_handmade.rs:643:24 [INFO] [stdout] | [INFO] [stdout] 643 | if library == 0 as HINSTANCE { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LoadLibraryA` in this scope [INFO] [stdout] --> src/win32_handmade.rs:645:19 [INFO] [stdout] | [INFO] [stdout] 645 | library = LoadLibraryA(xinput1_3.as_ptr()); [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_handmade.rs:236:23 [INFO] [stdout] | [INFO] [stdout] 236 | let file_handle = CreateFileA( [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GENERIC_WRITE` in this scope [INFO] [stdout] --> src/win32_handmade.rs:238:9 [INFO] [stdout] | [INFO] [stdout] 238 | GENERIC_WRITE, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CREATE_ALWAYS` in this scope [INFO] [stdout] --> src/win32_handmade.rs:241:9 [INFO] [stdout] | [INFO] [stdout] 241 | CREATE_ALWAYS, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope [INFO] [stdout] --> src/win32_handmade.rs:246:23 [INFO] [stdout] | [INFO] [stdout] 246 | if file_handle != INVALID_HANDLE_VALUE { [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/win32_handmade.rs:247:42 [INFO] [stdout] | [INFO] [stdout] 228 | pub unsafe fn debug_platform_write_entire_file( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 247 | let mut bytes_written = zeroed::(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WriteFile` in this scope [INFO] [stdout] --> src/win32_handmade.rs:248:12 [INFO] [stdout] | [INFO] [stdout] 248 | if WriteFile( [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_handmade.rs:262:9 [INFO] [stdout] | [INFO] [stdout] 262 | CloseHandle(file_handle); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope [INFO] [stdout] --> src/win32_handmade.rs:269:18 [INFO] [stdout] | [INFO] [stdout] 269 | memory: *mut c_void, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::raw::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BITMAPINFO` in this scope [INFO] [stdout] --> src/win32_handmade.rs:274:11 [INFO] [stdout] | [INFO] [stdout] 274 | info: BITMAPINFO, [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/win32_handmade.rs:287:23 [INFO] [stdout] | [INFO] [stdout] 287 | OutputPlayCursor: DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/win32_handmade.rs:288:24 [INFO] [stdout] | [INFO] [stdout] 288 | OutputWriteCursor: DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/win32_handmade.rs:289:21 [INFO] [stdout] | [INFO] [stdout] 289 | OutputLocation: DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/win32_handmade.rs:290:22 [INFO] [stdout] | [INFO] [stdout] 290 | OutputByteCount: DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/win32_handmade.rs:291:29 [INFO] [stdout] | [INFO] [stdout] 291 | ExpectedFlipPlayCursor: DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/win32_handmade.rs:293:21 [INFO] [stdout] | [INFO] [stdout] 293 | FlipPlayCursor: DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/win32_handmade.rs:294:22 [INFO] [stdout] | [INFO] [stdout] 294 | FlipWriteCursor: DWORD, [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/win32_handmade.rs:301:17 [INFO] [stdout] | [INFO] [stdout] 301 | FileHandle: 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/win32_handmade.rs:302:16 [INFO] [stdout] | [INFO] [stdout] 302 | MemoryMap: HANDLE, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stdout] --> src/win32_handmade.rs:303:20 [INFO] [stdout] | [INFO] [stdout] 303 | FileName: [u8; MAX_PATH], [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope [INFO] [stdout] --> src/win32_handmade.rs:304:23 [INFO] [stdout] | [INFO] [stdout] 304 | MemoryBlock: *mut c_void, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::raw::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stdout] --> src/win32_handmade.rs:312:36 [INFO] [stdout] | [INFO] [stdout] 312 | FileName: ['\0' as u8; MAX_PATH], [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope [INFO] [stdout] --> src/win32_handmade.rs:320:27 [INFO] [stdout] | [INFO] [stdout] 320 | GameMemoryBlock: *mut c_void, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::raw::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/win32_handmade.rs:323:22 [INFO] [stdout] | [INFO] [stdout] 323 | RecordingHandle: 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/win32_handmade.rs:326:21 [INFO] [stdout] | [INFO] [stdout] 326 | PlaybackHandle: HANDLE, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stdout] --> src/win32_handmade.rs:329:29 [INFO] [stdout] | [INFO] [stdout] 329 | exe_file_name: &'a [u8; MAX_PATH], [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_handmade.rs:333:39 [INFO] [stdout] | [INFO] [stdout] 333 | fn win32_get_window_dimension(window: HWND) -> Win32WindowDimension { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RECT` in this scope [INFO] [stdout] --> src/win32_handmade.rs:335:40 [INFO] [stdout] | [INFO] [stdout] 333 | fn win32_get_window_dimension(window: HWND) -> Win32WindowDimension { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 334 | unsafe { [INFO] [stdout] 335 | let mut client_rect = zeroed::(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetClientRect` in this scope [INFO] [stdout] --> src/win32_handmade.rs:336:9 [INFO] [stdout] | [INFO] [stdout] 336 | GetClientRect(window, &mut client_rect); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HMODULE` in this scope [INFO] [stdout] --> src/win32_handmade.rs:529:20 [INFO] [stdout] | [INFO] [stdout] 529 | game_code_dll: HMODULE, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `FILETIME` in this scope [INFO] [stdout] --> src/win32_handmade.rs:533:26 [INFO] [stdout] | [INFO] [stdout] 533 | dll_last_write_time: FILETIME, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `FILETIME` in this scope [INFO] [stdout] --> src/win32_handmade.rs:536:57 [INFO] [stdout] | [INFO] [stdout] 536 | unsafe fn win32_get_last_write_time(file_name: &str) -> FILETIME { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `FILETIME` in this scope [INFO] [stdout] --> src/win32_handmade.rs:537:40 [INFO] [stdout] | [INFO] [stdout] 536 | unsafe fn win32_get_last_write_time(file_name: &str) -> FILETIME { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 537 | let mut last_write_time = zeroed::(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WIN32_FIND_DATAA` in this scope [INFO] [stdout] --> src/win32_handmade.rs:539:34 [INFO] [stdout] | [INFO] [stdout] 536 | unsafe fn win32_get_last_write_time(file_name: &str) -> FILETIME { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 539 | let mut find_data = zeroed::(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `FindFirstFileA` in this scope [INFO] [stdout] --> src/win32_handmade.rs:540:23 [INFO] [stdout] | [INFO] [stdout] 540 | let find_handle = FindFirstFileA(name.as_ptr(), &mut find_data); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope [INFO] [stdout] --> src/win32_handmade.rs:541:23 [INFO] [stdout] | [INFO] [stdout] 541 | if find_handle != INVALID_HANDLE_VALUE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `FindClose` in this scope [INFO] [stdout] --> src/win32_handmade.rs:543:9 [INFO] [stdout] | [INFO] [stdout] 543 | FindClose(find_handle); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WIN32_FILE_ATTRIBUTE_DATA` in this scope [INFO] [stdout] --> src/win32_handmade.rs:566:32 [INFO] [stdout] | [INFO] [stdout] 558 | unsafe fn win32_load_game_code( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 566 | let mut Ignored = zeroed::(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HMODULE` in this scope [INFO] [stdout] --> src/win32_handmade.rs:569:29 [INFO] [stdout] | [INFO] [stdout] 569 | game_code_dll: 0 as HMODULE, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetFileAttributesExA` in this scope [INFO] [stdout] --> src/win32_handmade.rs:575:10 [INFO] [stdout] | [INFO] [stdout] 575 | if !(GetFileAttributesExA( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GetFileExInfoStandard` in this scope [INFO] [stdout] --> src/win32_handmade.rs:577:9 [INFO] [stdout] | [INFO] [stdout] 577 | GetFileExInfoStandard, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WIN32_FILE_ATTRIBUTE_DATA` in this scope [INFO] [stdout] --> src/win32_handmade.rs:578:30 [INFO] [stdout] | [INFO] [stdout] 578 | &mut Ignored as *mut WIN32_FILE_ATTRIBUTE_DATA as *mut c_void, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope [INFO] [stdout] --> src/win32_handmade.rs:578:64 [INFO] [stdout] | [INFO] [stdout] 578 | &mut Ignored as *mut WIN32_FILE_ATTRIBUTE_DATA as *mut c_void, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::raw::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CopyFileA` in this scope [INFO] [stdout] --> src/win32_handmade.rs:581:12 [INFO] [stdout] | [INFO] [stdout] 581 | if CopyFileA(source_name.as_ptr(), temp_name.as_ptr(), FALSE) != 0 { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FALSE` in this scope [INFO] [stdout] --> src/win32_handmade.rs:581:64 [INFO] [stdout] | [INFO] [stdout] 581 | if CopyFileA(source_name.as_ptr(), temp_name.as_ptr(), FALSE) != 0 { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LoadLibraryA` in this scope [INFO] [stdout] --> src/win32_handmade.rs:590:32 [INFO] [stdout] | [INFO] [stdout] 590 | result.game_code_dll = LoadLibraryA(temp_name.as_ptr()); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcAddress` in this scope [INFO] [stdout] --> src/win32_handmade.rs:594:36 [INFO] [stdout] | [INFO] [stdout] 594 | let update = transmute(GetProcAddress( [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcAddress` in this scope [INFO] [stdout] --> src/win32_handmade.rs:601:47 [INFO] [stdout] | [INFO] [stdout] 601 | let get_sound_samples = transmute(GetProcAddress( [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `FreeLibrary` in this scope [INFO] [stdout] --> src/win32_handmade.rs:617:9 [INFO] [stdout] | [INFO] [stdout] 617 | FreeLibrary(game_code.game_code_dll); [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/win32_handmade.rs:624:44 [INFO] [stdout] | [INFO] [stdout] 624 | type XInputGetStateFn = extern "system" fn(DWORD, *mut XINPUT_STATE) -> DWORD; [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_handmade.rs:624:56 [INFO] [stdout] | [INFO] [stdout] 624 | type XInputGetStateFn = extern "system" fn(DWORD, *mut XINPUT_STATE) -> DWORD; [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/win32_handmade.rs:624:73 [INFO] [stdout] | [INFO] [stdout] 624 | type XInputGetStateFn = extern "system" fn(DWORD, *mut XINPUT_STATE) -> DWORD; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/win32_handmade.rs:625:45 [INFO] [stdout] | [INFO] [stdout] 625 | extern "system" fn xinput_get_state_stub(_: DWORD, _: *mut XINPUT_STATE) -> DWORD { [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_handmade.rs:625:60 [INFO] [stdout] | [INFO] [stdout] 625 | extern "system" fn xinput_get_state_stub(_: DWORD, _: *mut XINPUT_STATE) -> DWORD { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/win32_handmade.rs:625:77 [INFO] [stdout] | [INFO] [stdout] 625 | extern "system" fn xinput_get_state_stub(_: DWORD, _: *mut XINPUT_STATE) -> DWORD { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ERROR_DEVICE_NOT_CONNECTED` in this scope [INFO] [stdout] --> src/win32_handmade.rs:626:12 [INFO] [stdout] | [INFO] [stdout] 626 | return ERROR_DEVICE_NOT_CONNECTED; [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/win32_handmade.rs:630:44 [INFO] [stdout] | [INFO] [stdout] 630 | type XInputSetStateFn = extern "system" fn(DWORD, *mut XINPUT_VIBRATION) -> DWORD; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `XINPUT_VIBRATION` in this scope [INFO] [stdout] --> src/win32_handmade.rs:630:56 [INFO] [stdout] | [INFO] [stdout] 630 | type XInputSetStateFn = extern "system" fn(DWORD, *mut XINPUT_VIBRATION) -> DWORD; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/win32_handmade.rs:630:77 [INFO] [stdout] | [INFO] [stdout] 630 | type XInputSetStateFn = extern "system" fn(DWORD, *mut XINPUT_VIBRATION) -> DWORD; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/win32_handmade.rs:631:45 [INFO] [stdout] | [INFO] [stdout] 631 | extern "system" fn xinput_set_state_stub(_: DWORD, _: *mut XINPUT_VIBRATION) -> DWORD { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `XINPUT_VIBRATION` in this scope [INFO] [stdout] --> src/win32_handmade.rs:631:60 [INFO] [stdout] | [INFO] [stdout] 631 | extern "system" fn xinput_set_state_stub(_: DWORD, _: *mut XINPUT_VIBRATION) -> DWORD { [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_handmade.rs:648:24 [INFO] [stdout] | [INFO] [stdout] 648 | if library != 0 as HINSTANCE { [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/win32_handmade.rs:631:81 [INFO] [stdout] | [INFO] [stdout] 631 | extern "system" fn xinput_set_state_stub(_: DWORD, _: *mut XINPUT_VIBRATION) -> DWORD { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ERROR_DEVICE_NOT_CONNECTED` in this scope [INFO] [stdout] --> src/win32_handmade.rs:632:12 [INFO] [stdout] | [INFO] [stdout] 632 | return ERROR_DEVICE_NOT_CONNECTED; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcAddress` in this scope [INFO] [stdout] --> src/win32_handmade.rs:650:36 [INFO] [stdout] | [INFO] [stdout] 650 | XInputGetState = transmute(GetProcAddress(library, xinput_get_state_str.as_ptr())); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcAddress` in this scope [INFO] [stdout] --> src/win32_handmade.rs:652:38 [INFO] [stdout] | [INFO] [stdout] 652 | XINPUT_SET_STATE = transmute(GetProcAddress(library, xinput_set_state_str.as_ptr())); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LoadLibraryA` in this scope [INFO] [stdout] --> src/win32_handmade.rs:638:23 [INFO] [stdout] | [INFO] [stdout] 638 | let mut library = LoadLibraryA(xinput1_4.as_ptr()); [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_handmade.rs:639:24 [INFO] [stdout] | [INFO] [stdout] 639 | if library == 0 as HINSTANCE { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LoadLibraryA` in this scope [INFO] [stdout] --> src/win32_handmade.rs:641:19 [INFO] [stdout] | [INFO] [stdout] 641 | library = LoadLibraryA(xinput9_1_0.as_ptr()); [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_handmade.rs:643:24 [INFO] [stdout] | [INFO] [stdout] 643 | if library == 0 as HINSTANCE { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LoadLibraryA` in this scope [INFO] [stdout] --> src/win32_handmade.rs:645:19 [INFO] [stdout] | [INFO] [stdout] 645 | library = LoadLibraryA(xinput1_3.as_ptr()); [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_handmade.rs:648:24 [INFO] [stdout] | [INFO] [stdout] 648 | if library != 0 as HINSTANCE { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcAddress` in this scope [INFO] [stdout] --> src/win32_handmade.rs:650:36 [INFO] [stdout] | [INFO] [stdout] 650 | XInputGetState = transmute(GetProcAddress(library, xinput_get_state_str.as_ptr())); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcAddress` in this scope [INFO] [stdout] --> src/win32_handmade.rs:652:38 [INFO] [stdout] | [INFO] [stdout] 652 | XINPUT_SET_STATE = transmute(GetProcAddress(library, xinput_set_state_str.as_ptr())); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCGUID` in this scope [INFO] [stdout] --> src/win32_handmade.rs:656:31 [INFO] [stdout] | [INFO] [stdout] 656 | type DirectSoundCreateFn = fn(LPCGUID, *mut LPDIRECTSOUND, LPUNKNOWN) -> HRESULT; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPDIRECTSOUND` in this scope [INFO] [stdout] --> src/win32_handmade.rs:656:45 [INFO] [stdout] | [INFO] [stdout] 656 | type DirectSoundCreateFn = fn(LPCGUID, *mut LPDIRECTSOUND, LPUNKNOWN) -> HRESULT; [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPUNKNOWN` in this scope [INFO] [stdout] --> src/win32_handmade.rs:656:60 [INFO] [stdout] | [INFO] [stdout] 656 | type DirectSoundCreateFn = fn(LPCGUID, *mut LPDIRECTSOUND, LPUNKNOWN) -> HRESULT; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HRESULT` in this scope [INFO] [stdout] --> src/win32_handmade.rs:656:74 [INFO] [stdout] | [INFO] [stdout] 656 | type DirectSoundCreateFn = fn(LPCGUID, *mut LPDIRECTSOUND, LPUNKNOWN) -> HRESULT; [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_handmade.rs:657:37 [INFO] [stdout] | [INFO] [stdout] 657 | unsafe fn win32_init_dsound(window: HWND, samples_per_sec: u32, buffersize: i32) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LoadLibraryA` in this scope [INFO] [stdout] --> src/win32_handmade.rs:659:27 [INFO] [stdout] | [INFO] [stdout] 659 | let d_sound_library = LoadLibraryA(dsound_str.as_ptr()); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPDIRECTSOUND` in this scope [INFO] [stdout] --> src/win32_handmade.rs:661:37 [INFO] [stdout] | [INFO] [stdout] 657 | unsafe fn win32_init_dsound(window: HWND, samples_per_sec: u32, buffersize: i32) { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 661 | let mut direct_sound = zeroed::(); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCGUID` in this scope [INFO] [stdout] --> src/win32_handmade.rs:656:31 [INFO] [stdout] | [INFO] [stdout] 656 | type DirectSoundCreateFn = fn(LPCGUID, *mut LPDIRECTSOUND, LPUNKNOWN) -> HRESULT; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcAddress` in this scope [INFO] [stdout] --> src/win32_handmade.rs:665:39 [INFO] [stdout] | [INFO] [stdout] 665 | let direct_sound_create_ptr = GetProcAddress(d_sound_library, dsoundcrate_str.as_ptr()); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPDIRECTSOUND` in this scope [INFO] [stdout] --> src/win32_handmade.rs:656:45 [INFO] [stdout] | [INFO] [stdout] 656 | type DirectSoundCreateFn = fn(LPCGUID, *mut LPDIRECTSOUND, LPUNKNOWN) -> HRESULT; [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SUCCEEDED` in this scope [INFO] [stdout] --> src/win32_handmade.rs:669:16 [INFO] [stdout] | [INFO] [stdout] 669 | && SUCCEEDED(DirectSoundCreate(zeroed(), &mut direct_sound, zeroed())) [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPUNKNOWN` in this scope [INFO] [stdout] --> src/win32_handmade.rs:656:60 [INFO] [stdout] | [INFO] [stdout] 656 | type DirectSoundCreateFn = fn(LPCGUID, *mut LPDIRECTSOUND, LPUNKNOWN) -> HRESULT; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WAVEFORMATEX` in this scope [INFO] [stdout] --> src/win32_handmade.rs:671:44 [INFO] [stdout] | [INFO] [stdout] 657 | unsafe fn win32_init_dsound(window: HWND, samples_per_sec: u32, buffersize: i32) { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 671 | let mut wave_format = zeroed::(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WAVE_FORMAT_PCM` in this scope [INFO] [stdout] --> src/win32_handmade.rs:672:38 [INFO] [stdout] | [INFO] [stdout] 672 | wave_format.wFormatTag = WAVE_FORMAT_PCM; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HRESULT` in this scope [INFO] [stdout] --> src/win32_handmade.rs:656:74 [INFO] [stdout] | [INFO] [stdout] 656 | type DirectSoundCreateFn = fn(LPCGUID, *mut LPDIRECTSOUND, LPUNKNOWN) -> HRESULT; [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/win32_handmade.rs:678:73 [INFO] [stdout] | [INFO] [stdout] 678 | wave_format.nSamplesPerSec * wave_format.nBlockAlign as DWORD; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SUCCEEDED` in this scope [INFO] [stdout] --> src/win32_handmade.rs:680:16 [INFO] [stdout] | [INFO] [stdout] 680 | if SUCCEEDED((*direct_sound).SetCooperativeLevel(window, DSSCL_PRIORITY)) { [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_handmade.rs:657:37 [INFO] [stdout] | [INFO] [stdout] 657 | unsafe fn win32_init_dsound(window: HWND, samples_per_sec: u32, buffersize: i32) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DSSCL_PRIORITY` in this scope [INFO] [stdout] --> src/win32_handmade.rs:680:70 [INFO] [stdout] | [INFO] [stdout] 680 | if SUCCEEDED((*direct_sound).SetCooperativeLevel(window, DSSCL_PRIORITY)) { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LoadLibraryA` in this scope [INFO] [stdout] --> src/win32_handmade.rs:659:27 [INFO] [stdout] | [INFO] [stdout] 659 | let d_sound_library = LoadLibraryA(dsound_str.as_ptr()); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DSBUFFERDESC` in this scope [INFO] [stdout] --> src/win32_handmade.rs:683:55 [INFO] [stdout] | [INFO] [stdout] 657 | unsafe fn win32_init_dsound(window: HWND, samples_per_sec: u32, buffersize: i32) { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 683 | let mut buffer_description = zeroed::(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DSBUFFERDESC` in this scope [INFO] [stdout] --> src/win32_handmade.rs:684:55 [INFO] [stdout] | [INFO] [stdout] 657 | unsafe fn win32_init_dsound(window: HWND, samples_per_sec: u32, buffersize: i32) { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 684 | buffer_description.dwSize = size_of::().try_into().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPDIRECTSOUND` in this scope [INFO] [stdout] --> src/win32_handmade.rs:661:37 [INFO] [stdout] | [INFO] [stdout] 657 | unsafe fn win32_init_dsound(window: HWND, samples_per_sec: u32, buffersize: i32) { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 661 | let mut direct_sound = zeroed::(); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DSBCAPS_PRIMARYBUFFER` in this scope [INFO] [stdout] --> src/win32_handmade.rs:685:46 [INFO] [stdout] | [INFO] [stdout] 685 | buffer_description.dwFlags = DSBCAPS_PRIMARYBUFFER; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcAddress` in this scope [INFO] [stdout] --> src/win32_handmade.rs:665:39 [INFO] [stdout] | [INFO] [stdout] 665 | let direct_sound_create_ptr = GetProcAddress(d_sound_library, dsoundcrate_str.as_ptr()); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPDIRECTSOUNDBUFFER` in this scope [INFO] [stdout] --> src/win32_handmade.rs:686:51 [INFO] [stdout] | [INFO] [stdout] 657 | unsafe fn win32_init_dsound(window: HWND, samples_per_sec: u32, buffersize: i32) { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 686 | let mut primary_buffer = zeroed::(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SUCCEEDED` in this scope [INFO] [stdout] --> src/win32_handmade.rs:688:20 [INFO] [stdout] | [INFO] [stdout] 688 | if SUCCEEDED((*direct_sound).CreateSoundBuffer( [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SUCCEEDED` in this scope [INFO] [stdout] --> src/win32_handmade.rs:669:16 [INFO] [stdout] | [INFO] [stdout] 669 | && SUCCEEDED(DirectSoundCreate(zeroed(), &mut direct_sound, zeroed())) [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WAVEFORMATEX` in this scope [INFO] [stdout] --> src/win32_handmade.rs:671:44 [INFO] [stdout] | [INFO] [stdout] 657 | unsafe fn win32_init_dsound(window: HWND, samples_per_sec: u32, buffersize: i32) { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 671 | let mut wave_format = zeroed::(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SUCCEEDED` in this scope [INFO] [stdout] --> src/win32_handmade.rs:693:24 [INFO] [stdout] | [INFO] [stdout] 693 | if SUCCEEDED((*primary_buffer).SetFormat(&wave_format)) { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DSBUFFERDESC` in this scope [INFO] [stdout] --> src/win32_handmade.rs:704:44 [INFO] [stdout] | [INFO] [stdout] 657 | unsafe fn win32_init_dsound(window: HWND, samples_per_sec: u32, buffersize: i32) { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 704 | let mut buffer_desc = zeroed::(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DSBUFFERDESC` in this scope [INFO] [stdout] --> src/win32_handmade.rs:705:44 [INFO] [stdout] | [INFO] [stdout] 657 | unsafe fn win32_init_dsound(window: HWND, samples_per_sec: u32, buffersize: i32) { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 705 | buffer_desc.dwSize = size_of::().try_into().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SUCCEEDED` in this scope [INFO] [stdout] --> src/win32_handmade.rs:709:16 [INFO] [stdout] | [INFO] [stdout] 709 | if SUCCEEDED((*direct_sound).CreateSoundBuffer( [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/win32_handmade.rs:726:18 [INFO] [stdout] | [INFO] [stdout] 726 | BytesToLock: DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/win32_handmade.rs:727:19 [INFO] [stdout] | [INFO] [stdout] 727 | BytesToWrite: DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/win32_handmade.rs:731:26 [INFO] [stdout] | [INFO] [stdout] 731 | let mut Region1Size: DWORD = 0; [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/win32_handmade.rs:733:26 [INFO] [stdout] | [INFO] [stdout] 733 | let mut Region2Size: DWORD = 0; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SUCCEEDED` in this scope [INFO] [stdout] --> src/win32_handmade.rs:735:8 [INFO] [stdout] | [INFO] [stdout] 735 | if SUCCEEDED((*GLOBAL_SECONDARY_BUFFER).Lock( [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/win32_handmade.rs:777:26 [INFO] [stdout] | [INFO] [stdout] 777 | let mut Region1Size: DWORD = 0; [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/win32_handmade.rs:779:26 [INFO] [stdout] | [INFO] [stdout] 779 | let mut Region2Size: DWORD = 0; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SUCCEEDED` in this scope [INFO] [stdout] --> src/win32_handmade.rs:781:8 [INFO] [stdout] | [INFO] [stdout] 781 | if SUCCEEDED((*GLOBAL_SECONDARY_BUFFER).Lock( [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_handmade.rs:812:13 [INFO] [stdout] | [INFO] [stdout] 812 | VirtualFree(buffer.memory, 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_handmade.rs:812:43 [INFO] [stdout] | [INFO] [stdout] 812 | VirtualFree(buffer.memory, 0, MEM_RELEASE); [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_handmade.rs:819:46 [INFO] [stdout] | [INFO] [stdout] 809 | fn win32_resize_dibsection(buffer: &mut Win32OffScreenBuffer, width: i32, height: i32) { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 819 | buffer.info.bmiHeader.biSize = size_of::() as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WAVE_FORMAT_PCM` in this scope [INFO] [stdout] --> src/win32_handmade.rs:672:38 [INFO] [stdout] | [INFO] [stdout] 672 | wave_format.wFormatTag = WAVE_FORMAT_PCM; [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/win32_handmade.rs:678:73 [INFO] [stdout] | [INFO] [stdout] 678 | wave_format.nSamplesPerSec * wave_format.nBlockAlign as DWORD; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SUCCEEDED` in this scope [INFO] [stdout] --> src/win32_handmade.rs:680:16 [INFO] [stdout] | [INFO] [stdout] 680 | if SUCCEEDED((*direct_sound).SetCooperativeLevel(window, DSSCL_PRIORITY)) { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DSSCL_PRIORITY` in this scope [INFO] [stdout] --> src/win32_handmade.rs:680:70 [INFO] [stdout] | [INFO] [stdout] 680 | if SUCCEEDED((*direct_sound).SetCooperativeLevel(window, DSSCL_PRIORITY)) { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DSBUFFERDESC` in this scope [INFO] [stdout] --> src/win32_handmade.rs:683:55 [INFO] [stdout] | [INFO] [stdout] 657 | unsafe fn win32_init_dsound(window: HWND, samples_per_sec: u32, buffersize: i32) { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 683 | let mut buffer_description = zeroed::(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DSBUFFERDESC` in this scope [INFO] [stdout] --> src/win32_handmade.rs:684:55 [INFO] [stdout] | [INFO] [stdout] 657 | unsafe fn win32_init_dsound(window: HWND, samples_per_sec: u32, buffersize: i32) { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 684 | buffer_description.dwSize = size_of::().try_into().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DSBCAPS_PRIMARYBUFFER` in this scope [INFO] [stdout] --> src/win32_handmade.rs:685:46 [INFO] [stdout] | [INFO] [stdout] 685 | buffer_description.dwFlags = DSBCAPS_PRIMARYBUFFER; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPDIRECTSOUNDBUFFER` in this scope [INFO] [stdout] --> src/win32_handmade.rs:686:51 [INFO] [stdout] | [INFO] [stdout] 657 | unsafe fn win32_init_dsound(window: HWND, samples_per_sec: u32, buffersize: i32) { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 686 | let mut primary_buffer = zeroed::(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SUCCEEDED` in this scope [INFO] [stdout] --> src/win32_handmade.rs:688:20 [INFO] [stdout] | [INFO] [stdout] 688 | if SUCCEEDED((*direct_sound).CreateSoundBuffer( [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SUCCEEDED` in this scope [INFO] [stdout] --> src/win32_handmade.rs:693:24 [INFO] [stdout] | [INFO] [stdout] 693 | if SUCCEEDED((*primary_buffer).SetFormat(&wave_format)) { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DSBUFFERDESC` in this scope [INFO] [stdout] --> src/win32_handmade.rs:704:44 [INFO] [stdout] | [INFO] [stdout] 657 | unsafe fn win32_init_dsound(window: HWND, samples_per_sec: u32, buffersize: i32) { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 704 | let mut buffer_desc = zeroed::(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DSBUFFERDESC` in this scope [INFO] [stdout] --> src/win32_handmade.rs:705:44 [INFO] [stdout] | [INFO] [stdout] 657 | unsafe fn win32_init_dsound(window: HWND, samples_per_sec: u32, buffersize: i32) { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 705 | buffer_desc.dwSize = size_of::().try_into().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SUCCEEDED` in this scope [INFO] [stdout] --> src/win32_handmade.rs:709:16 [INFO] [stdout] | [INFO] [stdout] 709 | if SUCCEEDED((*direct_sound).CreateSoundBuffer( [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/win32_handmade.rs:726:18 [INFO] [stdout] | [INFO] [stdout] 726 | BytesToLock: DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/win32_handmade.rs:727:19 [INFO] [stdout] | [INFO] [stdout] 727 | BytesToWrite: DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/win32_handmade.rs:731:26 [INFO] [stdout] | [INFO] [stdout] 731 | let mut Region1Size: DWORD = 0; [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/win32_handmade.rs:733:26 [INFO] [stdout] | [INFO] [stdout] 733 | let mut Region2Size: DWORD = 0; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SUCCEEDED` in this scope [INFO] [stdout] --> src/win32_handmade.rs:735:8 [INFO] [stdout] | [INFO] [stdout] 735 | if SUCCEEDED((*GLOBAL_SECONDARY_BUFFER).Lock( [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/win32_handmade.rs:777:26 [INFO] [stdout] | [INFO] [stdout] 777 | let mut Region1Size: DWORD = 0; [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/win32_handmade.rs:779:26 [INFO] [stdout] | [INFO] [stdout] 779 | let mut Region2Size: DWORD = 0; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SUCCEEDED` in this scope [INFO] [stdout] --> src/win32_handmade.rs:781:8 [INFO] [stdout] | [INFO] [stdout] 781 | if SUCCEEDED((*GLOBAL_SECONDARY_BUFFER).Lock( [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_handmade.rs:812:13 [INFO] [stdout] | [INFO] [stdout] 812 | VirtualFree(buffer.memory, 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_handmade.rs:812:43 [INFO] [stdout] | [INFO] [stdout] 812 | VirtualFree(buffer.memory, 0, MEM_RELEASE); [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_handmade.rs:819:46 [INFO] [stdout] | [INFO] [stdout] 809 | fn win32_resize_dibsection(buffer: &mut Win32OffScreenBuffer, width: i32, height: i32) { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 819 | buffer.info.bmiHeader.biSize = 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_handmade.rs:824:43 [INFO] [stdout] | [INFO] [stdout] 824 | buffer.info.bmiHeader.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_handmade.rs:828:9 [INFO] [stdout] | [INFO] [stdout] 828 | 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_handmade.rs:831:13 [INFO] [stdout] | [INFO] [stdout] 831 | MEM_COMMIT, [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_handmade.rs:832:13 [INFO] [stdout] | [INFO] [stdout] 832 | PAGE_READWRITE, [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_handmade.rs:838:21 [INFO] [stdout] | [INFO] [stdout] 838 | device_context: HDC, [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_handmade.rs:844:9 [INFO] [stdout] | [INFO] [stdout] 844 | 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_handmade.rs:856:13 [INFO] [stdout] | [INFO] [stdout] 856 | 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_handmade.rs:857:13 [INFO] [stdout] | [INFO] [stdout] 857 | SRCCOPY, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PatBlt` in this scope [INFO] [stdout] --> src/win32_handmade.rs:863:9 [INFO] [stdout] | [INFO] [stdout] 863 | PatBlt(device_context, 0, 0, window_width, OffsetY, BLACKNESS); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `BLACKNESS` in this scope [INFO] [stdout] --> src/win32_handmade.rs:863:61 [INFO] [stdout] | [INFO] [stdout] 863 | PatBlt(device_context, 0, 0, window_width, OffsetY, BLACKNESS); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PatBlt` in this scope [INFO] [stdout] --> src/win32_handmade.rs:864:9 [INFO] [stdout] | [INFO] [stdout] 864 | PatBlt( [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `BLACKNESS` in this scope [INFO] [stdout] --> src/win32_handmade.rs:870:13 [INFO] [stdout] | [INFO] [stdout] 870 | BLACKNESS, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PatBlt` in this scope [INFO] [stdout] --> src/win32_handmade.rs:872:9 [INFO] [stdout] | [INFO] [stdout] 872 | PatBlt(device_context, 0, 0, OffsetX, window_height, BLACKNESS); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `BLACKNESS` in this scope [INFO] [stdout] --> src/win32_handmade.rs:872:62 [INFO] [stdout] | [INFO] [stdout] 872 | PatBlt(device_context, 0, 0, OffsetX, window_height, BLACKNESS); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PatBlt` in this scope [INFO] [stdout] --> src/win32_handmade.rs:873:9 [INFO] [stdout] | [INFO] [stdout] 873 | PatBlt( [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `BLACKNESS` in this scope [INFO] [stdout] --> src/win32_handmade.rs:879:13 [INFO] [stdout] | [INFO] [stdout] 879 | BLACKNESS, [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_handmade.rs:882:9 [INFO] [stdout] | [INFO] [stdout] 882 | 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_handmade.rs:894:13 [INFO] [stdout] | [INFO] [stdout] 894 | 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_handmade.rs:895:13 [INFO] [stdout] | [INFO] [stdout] 895 | SRCCOPY, [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_handmade.rs:824:43 [INFO] [stdout] | [INFO] [stdout] 824 | buffer.info.bmiHeader.biCompression = BI_RGB; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `wsprintfA` in this scope [INFO] [stdout] --> src/win32_handmade.rs:908:5 [INFO] [stdout] | [INFO] [stdout] 908 | wsprintfA( [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stdout] --> src/win32_handmade.rs:927:42 [INFO] [stdout] | [INFO] [stdout] 927 | let mut file_name = ['\0' as u8; MAX_PATH]; [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_handmade.rs:934:33 [INFO] [stdout] | [INFO] [stdout] 934 | State.RecordingHandle = CreateFileA( [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GENERIC_WRITE` in this scope [INFO] [stdout] --> src/win32_handmade.rs:936:13 [INFO] [stdout] | [INFO] [stdout] 936 | GENERIC_WRITE, [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_handmade.rs:828:9 [INFO] [stdout] | [INFO] [stdout] 828 | VirtualAlloc( [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CREATE_ALWAYS` in this scope [INFO] [stdout] --> src/win32_handmade.rs:939:13 [INFO] [stdout] | [INFO] [stdout] 939 | CREATE_ALWAYS, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RtlCopyMemory` in this scope [INFO] [stdout] --> src/win32_handmade.rs:953:9 [INFO] [stdout] | [INFO] [stdout] 953 | RtlCopyMemory( [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_handmade.rs:831:13 [INFO] [stdout] | [INFO] [stdout] 831 | MEM_COMMIT, [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_handmade.rs:962:5 [INFO] [stdout] | [INFO] [stdout] 962 | CloseHandle(State.RecordingHandle); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stdout] --> src/win32_handmade.rs:970:41 [INFO] [stdout] | [INFO] [stdout] 970 | let mut FileName = ['\0' as u8; MAX_PATH]; [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_handmade.rs:977:32 [INFO] [stdout] | [INFO] [stdout] 977 | State.PlaybackHandle = CreateFileA( [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_handmade.rs:979:13 [INFO] [stdout] | [INFO] [stdout] 979 | GENERIC_READ, [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_handmade.rs:832:13 [INFO] [stdout] | [INFO] [stdout] 832 | PAGE_READWRITE, [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `OPEN_EXISTING` in this scope [INFO] [stdout] --> src/win32_handmade.rs:982:13 [INFO] [stdout] | [INFO] [stdout] 982 | OPEN_EXISTING, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RtlCopyMemory` in this scope [INFO] [stdout] --> src/win32_handmade.rs:987:9 [INFO] [stdout] | [INFO] [stdout] 987 | RtlCopyMemory( [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_handmade.rs:838:21 [INFO] [stdout] | [INFO] [stdout] 838 | device_context: HDC, [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_handmade.rs:996:5 [INFO] [stdout] | [INFO] [stdout] 996 | CloseHandle(State.PlaybackHandle); [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_handmade.rs:844:9 [INFO] [stdout] | [INFO] [stdout] 844 | 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_handmade.rs:856:13 [INFO] [stdout] | [INFO] [stdout] 856 | 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_handmade.rs:857:13 [INFO] [stdout] | [INFO] [stdout] 857 | SRCCOPY, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PatBlt` in this scope [INFO] [stdout] --> src/win32_handmade.rs:863:9 [INFO] [stdout] | [INFO] [stdout] 863 | PatBlt(device_context, 0, 0, window_width, OffsetY, BLACKNESS); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `BLACKNESS` in this scope [INFO] [stdout] --> src/win32_handmade.rs:863:61 [INFO] [stdout] | [INFO] [stdout] 863 | PatBlt(device_context, 0, 0, window_width, OffsetY, BLACKNESS); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PatBlt` in this scope [INFO] [stdout] --> src/win32_handmade.rs:864:9 [INFO] [stdout] | [INFO] [stdout] 864 | PatBlt( [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `BLACKNESS` in this scope [INFO] [stdout] --> src/win32_handmade.rs:870:13 [INFO] [stdout] | [INFO] [stdout] 870 | BLACKNESS, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PatBlt` in this scope [INFO] [stdout] --> src/win32_handmade.rs:872:9 [INFO] [stdout] | [INFO] [stdout] 872 | PatBlt(device_context, 0, 0, OffsetX, window_height, BLACKNESS); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `BLACKNESS` in this scope [INFO] [stdout] --> src/win32_handmade.rs:872:62 [INFO] [stdout] | [INFO] [stdout] 872 | PatBlt(device_context, 0, 0, OffsetX, window_height, BLACKNESS); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WriteFile` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1002:5 [INFO] [stdout] | [INFO] [stdout] 1002 | WriteFile( [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PatBlt` in this scope [INFO] [stdout] --> src/win32_handmade.rs:873:9 [INFO] [stdout] | [INFO] [stdout] 873 | PatBlt( [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1004:44 [INFO] [stdout] | [INFO] [stdout] 1004 | NewInput as *mut GameInput as *mut c_void, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::raw::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ReadFile` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1013:8 [INFO] [stdout] | [INFO] [stdout] 1013 | if ReadFile( [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `BLACKNESS` in this scope [INFO] [stdout] --> src/win32_handmade.rs:879:13 [INFO] [stdout] | [INFO] [stdout] 879 | BLACKNESS, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1015:44 [INFO] [stdout] | [INFO] [stdout] 1015 | NewInput as *mut GameInput as *mut c_void, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::raw::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ReadFile` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1026:13 [INFO] [stdout] | [INFO] [stdout] 1026 | ReadFile( [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_handmade.rs:882:9 [INFO] [stdout] | [INFO] [stdout] 882 | StretchDIBits( [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1028:52 [INFO] [stdout] | [INFO] [stdout] 1028 | NewInput as *mut GameInput as *mut c_void, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::raw::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DIB_RGB_COLORS` in this scope [INFO] [stdout] --> src/win32_handmade.rs:894:13 [INFO] [stdout] | [INFO] [stdout] 894 | DIB_RGB_COLORS, [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_handmade.rs:1037:36 [INFO] [stdout] | [INFO] [stdout] 1037 | unsafe fn ToggleFullscreen(Window: HWND) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetWindowLongA` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1041:17 [INFO] [stdout] | [INFO] [stdout] 1041 | let Style = GetWindowLongA(Window, GWL_STYLE); [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_handmade.rs:895:13 [INFO] [stdout] | [INFO] [stdout] 895 | SRCCOPY, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GWL_STYLE` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1041:40 [INFO] [stdout] | [INFO] [stdout] 1041 | let Style = GetWindowLongA(Window, GWL_STYLE); [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_handmade.rs:1042:17 [INFO] [stdout] | [INFO] [stdout] 1042 | if (Style & WS_OVERLAPPEDWINDOW as i32) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `wsprintfA` in this scope [INFO] [stdout] --> src/win32_handmade.rs:908:5 [INFO] [stdout] | [INFO] [stdout] 908 | wsprintfA( [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MONITORINFO` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1043:40 [INFO] [stdout] | [INFO] [stdout] 1037 | unsafe fn ToggleFullscreen(Window: HWND) { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 1043 | let mut MonitorInfo = zeroed::(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stdout] --> src/win32_handmade.rs:927:42 [INFO] [stdout] | [INFO] [stdout] 927 | let mut file_name = ['\0' as u8; MAX_PATH]; [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_handmade.rs:934:33 [INFO] [stdout] | [INFO] [stdout] 934 | State.RecordingHandle = CreateFileA( [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GENERIC_WRITE` in this scope [INFO] [stdout] --> src/win32_handmade.rs:936:13 [INFO] [stdout] | [INFO] [stdout] 936 | GENERIC_WRITE, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CREATE_ALWAYS` in this scope [INFO] [stdout] --> src/win32_handmade.rs:939:13 [INFO] [stdout] | [INFO] [stdout] 939 | CREATE_ALWAYS, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RtlCopyMemory` in this scope [INFO] [stdout] --> src/win32_handmade.rs:953:9 [INFO] [stdout] | [INFO] [stdout] 953 | RtlCopyMemory( [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_handmade.rs:962:5 [INFO] [stdout] | [INFO] [stdout] 962 | CloseHandle(State.RecordingHandle); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stdout] --> src/win32_handmade.rs:970:41 [INFO] [stdout] | [INFO] [stdout] 970 | let mut FileName = ['\0' as u8; MAX_PATH]; [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_handmade.rs:977:32 [INFO] [stdout] | [INFO] [stdout] 977 | State.PlaybackHandle = CreateFileA( [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_handmade.rs:979:13 [INFO] [stdout] | [INFO] [stdout] 979 | GENERIC_READ, [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `OPEN_EXISTING` in this scope [INFO] [stdout] --> src/win32_handmade.rs:982:13 [INFO] [stdout] | [INFO] [stdout] 982 | OPEN_EXISTING, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RtlCopyMemory` in this scope [INFO] [stdout] --> src/win32_handmade.rs:987:9 [INFO] [stdout] | [INFO] [stdout] 987 | RtlCopyMemory( [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_handmade.rs:996:5 [INFO] [stdout] | [INFO] [stdout] 996 | CloseHandle(State.PlaybackHandle); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WriteFile` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1002:5 [INFO] [stdout] | [INFO] [stdout] 1002 | WriteFile( [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1004:44 [INFO] [stdout] | [INFO] [stdout] 1004 | NewInput as *mut GameInput as *mut c_void, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::raw::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ReadFile` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1013:8 [INFO] [stdout] | [INFO] [stdout] 1013 | if ReadFile( [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1015:44 [INFO] [stdout] | [INFO] [stdout] 1015 | NewInput as *mut GameInput as *mut c_void, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::raw::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ReadFile` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1026:13 [INFO] [stdout] | [INFO] [stdout] 1026 | ReadFile( [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1028:52 [INFO] [stdout] | [INFO] [stdout] 1028 | NewInput as *mut GameInput as *mut c_void, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::raw::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1037:36 [INFO] [stdout] | [INFO] [stdout] 1037 | unsafe fn ToggleFullscreen(Window: HWND) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetWindowLongA` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1041:17 [INFO] [stdout] | [INFO] [stdout] 1041 | let Style = GetWindowLongA(Window, GWL_STYLE); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GWL_STYLE` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1041:40 [INFO] [stdout] | [INFO] [stdout] 1041 | let Style = GetWindowLongA(Window, GWL_STYLE); [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_handmade.rs:1042:17 [INFO] [stdout] | [INFO] [stdout] 1042 | if (Style & WS_OVERLAPPEDWINDOW as i32) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MONITORINFO` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1043:40 [INFO] [stdout] | [INFO] [stdout] 1037 | unsafe fn ToggleFullscreen(Window: HWND) { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 1043 | let mut MonitorInfo = zeroed::(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetWindowPlacement` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1044:12 [INFO] [stdout] | [INFO] [stdout] 1044 | if GetWindowPlacement(Window, &mut GlobalWindowPosition) != 0 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetMonitorInfoA` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1045:16 [INFO] [stdout] | [INFO] [stdout] 1045 | && GetMonitorInfoA( [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `MonitorInfo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `MonitorFromWindow` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1047:17 [INFO] [stdout] | [INFO] [stdout] 1047 | MonitorFromWindow(Window, MONITOR_DEFAULTTOPRIMARY), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MONITOR_DEFAULTTOPRIMARY` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1047:43 [INFO] [stdout] | [INFO] [stdout] 1047 | MonitorFromWindow(Window, MONITOR_DEFAULTTOPRIMARY), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowLongA` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1051:13 [INFO] [stdout] | [INFO] [stdout] 1051 | SetWindowLongA(Window, GWL_STYLE, Style & !(WS_OVERLAPPEDWINDOW as i32)); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GWL_STYLE` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1051:36 [INFO] [stdout] | [INFO] [stdout] 1051 | SetWindowLongA(Window, GWL_STYLE, Style & !(WS_OVERLAPPEDWINDOW as i32)); [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_handmade.rs:1051:57 [INFO] [stdout] | [INFO] [stdout] 1051 | SetWindowLongA(Window, GWL_STYLE, Style & !(WS_OVERLAPPEDWINDOW as i32)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowPos` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1052:13 [INFO] [stdout] | [INFO] [stdout] 1052 | SetWindowPos( [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetWindowPlacement` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1044:12 [INFO] [stdout] | [INFO] [stdout] 1044 | if GetWindowPlacement(Window, &mut GlobalWindowPosition) != 0 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HWND_TOP` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1054:17 [INFO] [stdout] | [INFO] [stdout] 1054 | HWND_TOP, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetMonitorInfoA` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1045:16 [INFO] [stdout] | [INFO] [stdout] 1045 | && GetMonitorInfoA( [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `MonitorInfo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `MonitorFromWindow` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1047:17 [INFO] [stdout] | [INFO] [stdout] 1047 | MonitorFromWindow(Window, MONITOR_DEFAULTTOPRIMARY), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SWP_NOOWNERZORDER` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1059:17 [INFO] [stdout] | [INFO] [stdout] 1059 | SWP_NOOWNERZORDER | SWP_FRAMECHANGED, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MONITOR_DEFAULTTOPRIMARY` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1047:43 [INFO] [stdout] | [INFO] [stdout] 1047 | MonitorFromWindow(Window, MONITOR_DEFAULTTOPRIMARY), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SWP_FRAMECHANGED` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1059:37 [INFO] [stdout] | [INFO] [stdout] 1059 | SWP_NOOWNERZORDER | SWP_FRAMECHANGED, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowLongA` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1051:13 [INFO] [stdout] | [INFO] [stdout] 1051 | SetWindowLongA(Window, GWL_STYLE, Style & !(WS_OVERLAPPEDWINDOW as i32)); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowLongA` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1063:9 [INFO] [stdout] | [INFO] [stdout] 1063 | SetWindowLongA(Window, GWL_STYLE, Style | WS_OVERLAPPEDWINDOW as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GWL_STYLE` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1051:36 [INFO] [stdout] | [INFO] [stdout] 1051 | SetWindowLongA(Window, GWL_STYLE, Style & !(WS_OVERLAPPEDWINDOW as i32)); [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_handmade.rs:1051:57 [INFO] [stdout] | [INFO] [stdout] 1051 | SetWindowLongA(Window, GWL_STYLE, Style & !(WS_OVERLAPPEDWINDOW as i32)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowPos` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1052:13 [INFO] [stdout] | [INFO] [stdout] 1052 | SetWindowPos( [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HWND_TOP` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1054:17 [INFO] [stdout] | [INFO] [stdout] 1054 | HWND_TOP, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SWP_NOOWNERZORDER` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1059:17 [INFO] [stdout] | [INFO] [stdout] 1059 | SWP_NOOWNERZORDER | SWP_FRAMECHANGED, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SWP_FRAMECHANGED` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1059:37 [INFO] [stdout] | [INFO] [stdout] 1059 | SWP_NOOWNERZORDER | SWP_FRAMECHANGED, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowLongA` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1063:9 [INFO] [stdout] | [INFO] [stdout] 1063 | SetWindowLongA(Window, GWL_STYLE, Style | WS_OVERLAPPEDWINDOW as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GWL_STYLE` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1063:32 [INFO] [stdout] | [INFO] [stdout] 1063 | SetWindowLongA(Window, GWL_STYLE, Style | WS_OVERLAPPEDWINDOW as i32); [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_handmade.rs:1063:51 [INFO] [stdout] | [INFO] [stdout] 1063 | SetWindowLongA(Window, GWL_STYLE, Style | WS_OVERLAPPEDWINDOW as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowPlacement` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1064:9 [INFO] [stdout] | [INFO] [stdout] 1064 | SetWindowPlacement(Window, &GlobalWindowPosition); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowPos` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1065:9 [INFO] [stdout] | [INFO] [stdout] 1065 | SetWindowPos( [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SWP_NOMOVE` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1072:13 [INFO] [stdout] | [INFO] [stdout] 1072 | SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_NOOWNERZORDER | SWP_FRAMECHANGED, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SWP_NOSIZE` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1072:26 [INFO] [stdout] | [INFO] [stdout] 1072 | SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_NOOWNERZORDER | SWP_FRAMECHANGED, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SWP_NOZORDER` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1072:39 [INFO] [stdout] | [INFO] [stdout] 1072 | SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_NOOWNERZORDER | SWP_FRAMECHANGED, [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SWP_NOOWNERZORDER` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1072:54 [INFO] [stdout] | [INFO] [stdout] 1072 | SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_NOOWNERZORDER | SWP_FRAMECHANGED, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SWP_FRAMECHANGED` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1072:74 [INFO] [stdout] | [INFO] [stdout] 1072 | SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_NOOWNERZORDER | SWP_FRAMECHANGED, [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_handmade.rs:1081:32 [INFO] [stdout] | [INFO] [stdout] 1077 | unsafe fn win32_process_pending_messages( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 1081 | let mut message = zeroed::(); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PeekMessageW` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1082:11 [INFO] [stdout] | [INFO] [stdout] 1082 | while PeekMessageW(&mut message, zeroed(), 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_handmade.rs:1082:54 [INFO] [stdout] | [INFO] [stdout] 1082 | while PeekMessageW(&mut message, zeroed(), 0, 0, PM_REMOVE) != 0 { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WM_QUIT` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1083:31 [INFO] [stdout] | [INFO] [stdout] 1083 | if message.message == WM_QUIT { [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_handmade.rs:1213:17 [INFO] [stdout] | [INFO] [stdout] 1213 | TranslateMessage(&message); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DispatchMessageW` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1214:17 [INFO] [stdout] | [INFO] [stdout] 1214 | DispatchMessageW(&message); [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_handmade.rs:1221:13 [INFO] [stdout] | [INFO] [stdout] 1221 | window: 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_handmade.rs:1222:14 [INFO] [stdout] | [INFO] [stdout] 1222 | message: 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_handmade.rs:1223:13 [INFO] [stdout] | [INFO] [stdout] 1223 | wparam: 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_handmade.rs:1224:13 [INFO] [stdout] | [INFO] [stdout] 1224 | lparam: LPARAM, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GWL_STYLE` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1063:32 [INFO] [stdout] | [INFO] [stdout] 1063 | SetWindowLongA(Window, GWL_STYLE, Style | WS_OVERLAPPEDWINDOW as i32); [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_handmade.rs:1063:51 [INFO] [stdout] | [INFO] [stdout] 1063 | SetWindowLongA(Window, GWL_STYLE, Style | WS_OVERLAPPEDWINDOW as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowPlacement` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1064:9 [INFO] [stdout] | [INFO] [stdout] 1064 | SetWindowPlacement(Window, &GlobalWindowPosition); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowPos` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1065:9 [INFO] [stdout] | [INFO] [stdout] 1065 | SetWindowPos( [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SWP_NOMOVE` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1072:13 [INFO] [stdout] | [INFO] [stdout] 1072 | SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_NOOWNERZORDER | SWP_FRAMECHANGED, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SWP_NOSIZE` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1072:26 [INFO] [stdout] | [INFO] [stdout] 1072 | SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_NOOWNERZORDER | SWP_FRAMECHANGED, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SWP_NOZORDER` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1072:39 [INFO] [stdout] | [INFO] [stdout] 1072 | SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_NOOWNERZORDER | SWP_FRAMECHANGED, [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SWP_NOOWNERZORDER` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1072:54 [INFO] [stdout] | [INFO] [stdout] 1072 | SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_NOOWNERZORDER | SWP_FRAMECHANGED, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SWP_FRAMECHANGED` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1072:74 [INFO] [stdout] | [INFO] [stdout] 1072 | SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_NOOWNERZORDER | SWP_FRAMECHANGED, [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_handmade.rs:1081:32 [INFO] [stdout] | [INFO] [stdout] 1077 | unsafe fn win32_process_pending_messages( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 1081 | let mut message = zeroed::(); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PeekMessageW` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1082:11 [INFO] [stdout] | [INFO] [stdout] 1082 | while PeekMessageW(&mut message, zeroed(), 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_handmade.rs:1082:54 [INFO] [stdout] | [INFO] [stdout] 1082 | while PeekMessageW(&mut message, zeroed(), 0, 0, PM_REMOVE) != 0 { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WM_QUIT` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1083:31 [INFO] [stdout] | [INFO] [stdout] 1083 | if message.message == WM_QUIT { [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_handmade.rs:1213:17 [INFO] [stdout] | [INFO] [stdout] 1213 | TranslateMessage(&message); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DispatchMessageW` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1214:17 [INFO] [stdout] | [INFO] [stdout] 1214 | DispatchMessageW(&message); [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_handmade.rs:1221:13 [INFO] [stdout] | [INFO] [stdout] 1221 | window: 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_handmade.rs:1222:14 [INFO] [stdout] | [INFO] [stdout] 1222 | message: 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_handmade.rs:1223:13 [INFO] [stdout] | [INFO] [stdout] 1223 | wparam: 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_handmade.rs:1224:13 [INFO] [stdout] | [INFO] [stdout] 1224 | lparam: 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_handmade.rs:1225:6 [INFO] [stdout] | [INFO] [stdout] 1225 | ) -> LRESULT { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DefWindowProcW` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1235:26 [INFO] [stdout] | [INFO] [stdout] 1235 | result = DefWindowProcW(window, message, wparam, lparam); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetCursor` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1237:17 [INFO] [stdout] | [INFO] [stdout] 1237 | SetCursor(0 as *mut winapi::shared::windef::HICON__); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PAINTSTRUCT` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1256:28 [INFO] [stdout] | [INFO] [stdout] 1256 | let mut paint: PAINTSTRUCT = zeroed::(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PAINTSTRUCT` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1256:51 [INFO] [stdout] | [INFO] [stdout] 1220 | unsafe extern "system" fn win32_main_window_callback( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 1256 | let mut paint: PAINTSTRUCT = zeroed::(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `BeginPaint` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1257:34 [INFO] [stdout] | [INFO] [stdout] 1257 | let device_context = BeginPaint(window, &mut paint); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `EndPaint` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1267:13 [INFO] [stdout] | [INFO] [stdout] 1267 | EndPaint(window, &paint); [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_handmade.rs:1270:14 [INFO] [stdout] | [INFO] [stdout] 1270 | _ => DefWindowProcW(window, message, wparam, lparam), [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/win32_handmade.rs:1286:26 [INFO] [stdout] | [INFO] [stdout] 1286 | xinput_button_state: DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1288:17 [INFO] [stdout] | [INFO] [stdout] 1288 | button_bit: DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SHORT` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1299:43 [INFO] [stdout] | [INFO] [stdout] 1299 | fn win32_process_xinput_stickvalue(value: SHORT, dead_zone_threshold: SHORT) -> f32 { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SHORT` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1299:71 [INFO] [stdout] | [INFO] [stdout] 1299 | fn win32_process_xinput_stickvalue(value: SHORT, dead_zone_threshold: SHORT) -> f32 { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LARGE_INTEGER` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1309:37 [INFO] [stdout] | [INFO] [stdout] 1309 | unsafe fn win32_get_wall_clock() -> LARGE_INTEGER { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LARGE_INTEGER` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1310:31 [INFO] [stdout] | [INFO] [stdout] 1309 | unsafe fn win32_get_wall_clock() -> LARGE_INTEGER { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 1310 | let mut result = zeroed::(); [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_handmade.rs:1225:6 [INFO] [stdout] | [INFO] [stdout] 1225 | ) -> LRESULT { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DefWindowProcW` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1235:26 [INFO] [stdout] | [INFO] [stdout] 1235 | result = DefWindowProcW(window, message, wparam, lparam); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetCursor` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1237:17 [INFO] [stdout] | [INFO] [stdout] 1237 | SetCursor(0 as *mut winapi::shared::windef::HICON__); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PAINTSTRUCT` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1256:28 [INFO] [stdout] | [INFO] [stdout] 1256 | let mut paint: PAINTSTRUCT = zeroed::(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PAINTSTRUCT` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1256:51 [INFO] [stdout] | [INFO] [stdout] 1220 | unsafe extern "system" fn win32_main_window_callback( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 1256 | let mut paint: PAINTSTRUCT = zeroed::(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `BeginPaint` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1257:34 [INFO] [stdout] | [INFO] [stdout] 1257 | let device_context = BeginPaint(window, &mut paint); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `EndPaint` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1267:13 [INFO] [stdout] | [INFO] [stdout] 1267 | EndPaint(window, &paint); [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_handmade.rs:1270:14 [INFO] [stdout] | [INFO] [stdout] 1270 | _ => DefWindowProcW(window, message, wparam, lparam), [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/win32_handmade.rs:1286:26 [INFO] [stdout] | [INFO] [stdout] 1286 | xinput_button_state: DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1288:17 [INFO] [stdout] | [INFO] [stdout] 1288 | button_bit: DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SHORT` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1299:43 [INFO] [stdout] | [INFO] [stdout] 1299 | fn win32_process_xinput_stickvalue(value: SHORT, dead_zone_threshold: SHORT) -> f32 { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SHORT` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1299:71 [INFO] [stdout] | [INFO] [stdout] 1299 | fn win32_process_xinput_stickvalue(value: SHORT, dead_zone_threshold: SHORT) -> f32 { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LARGE_INTEGER` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1309:37 [INFO] [stdout] | [INFO] [stdout] 1309 | unsafe fn win32_get_wall_clock() -> LARGE_INTEGER { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LARGE_INTEGER` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1310:31 [INFO] [stdout] | [INFO] [stdout] 1309 | unsafe fn win32_get_wall_clock() -> LARGE_INTEGER { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 1310 | let mut result = zeroed::(); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `QueryPerformanceCounter` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1311:5 [INFO] [stdout] | [INFO] [stdout] 1311 | QueryPerformanceCounter(&mut result); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LARGE_INTEGER` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1314:44 [INFO] [stdout] | [INFO] [stdout] 1314 | unsafe fn win32_get_seconds_elasped(start: LARGE_INTEGER, end: LARGE_INTEGER) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LARGE_INTEGER` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1314:64 [INFO] [stdout] | [INFO] [stdout] 1314 | unsafe fn win32_get_seconds_elasped(start: LARGE_INTEGER, end: LARGE_INTEGER) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1346:33 [INFO] [stdout] | [INFO] [stdout] 1346 | let mut exe_file_name: [u8; MAX_PATH] = ['\0' as u8; MAX_PATH]; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1346:58 [INFO] [stdout] | [INFO] [stdout] 1346 | let mut exe_file_name: [u8; MAX_PATH] = ['\0' as u8; MAX_PATH]; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleFileNameA` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1347:29 [INFO] [stdout] | [INFO] [stdout] 1347 | let size_of_file_name = GetModuleFileNameA( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HMODULE` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1348:14 [INFO] [stdout] | [INFO] [stdout] 1348 | 0 as HMODULE, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1350:26 [INFO] [stdout] | [INFO] [stdout] 1344 | pub unsafe extern "system" fn winmain() { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 1350 | size_of::<[char; MAX_PATH]>().try_into().unwrap(), [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LARGE_INTEGER` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1403:53 [INFO] [stdout] | [INFO] [stdout] 1344 | pub unsafe extern "system" fn winmain() { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 1403 | let mut perfcounter_frequency_result = zeroed::(); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `QueryPerformanceFrequency` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1404:5 [INFO] [stdout] | [INFO] [stdout] 1404 | QueryPerformanceFrequency(&mut perfcounter_frequency_result); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `QueryPerformanceCounter` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1311:5 [INFO] [stdout] | [INFO] [stdout] 1311 | QueryPerformanceCounter(&mut result); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LARGE_INTEGER` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1314:44 [INFO] [stdout] | [INFO] [stdout] 1314 | unsafe fn win32_get_seconds_elasped(start: LARGE_INTEGER, end: LARGE_INTEGER) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LARGE_INTEGER` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1314:64 [INFO] [stdout] | [INFO] [stdout] 1314 | unsafe fn win32_get_seconds_elasped(start: LARGE_INTEGER, end: LARGE_INTEGER) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1346:33 [INFO] [stdout] | [INFO] [stdout] 1346 | let mut exe_file_name: [u8; MAX_PATH] = ['\0' as u8; MAX_PATH]; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1346:58 [INFO] [stdout] | [INFO] [stdout] 1346 | let mut exe_file_name: [u8; MAX_PATH] = ['\0' as u8; MAX_PATH]; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleFileNameA` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1347:29 [INFO] [stdout] | [INFO] [stdout] 1347 | let size_of_file_name = GetModuleFileNameA( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HMODULE` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1348:14 [INFO] [stdout] | [INFO] [stdout] 1348 | 0 as HMODULE, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MAX_PATH` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1350:26 [INFO] [stdout] | [INFO] [stdout] 1344 | pub unsafe extern "system" fn winmain() { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 1350 | size_of::<[char; MAX_PATH]>().try_into().unwrap(), [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LARGE_INTEGER` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1403:53 [INFO] [stdout] | [INFO] [stdout] 1344 | pub unsafe extern "system" fn winmain() { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 1403 | let mut perfcounter_frequency_result = zeroed::(); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `QueryPerformanceFrequency` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1404:5 [INFO] [stdout] | [INFO] [stdout] 1404 | QueryPerformanceFrequency(&mut perfcounter_frequency_result); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `timeBeginPeriod` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1408:29 [INFO] [stdout] | [INFO] [stdout] 1408 | let sleep_is_granular = timeBeginPeriod(desired_scheduler_ms) == TIMERR_NOERROR; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TIMERR_NOERROR` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1408:70 [INFO] [stdout] | [INFO] [stdout] 1408 | let sleep_is_granular = timeBeginPeriod(desired_scheduler_ms) == TIMERR_NOERROR; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleW` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1418:20 [INFO] [stdout] | [INFO] [stdout] 1418 | let instance = GetModuleHandleW(name.as_ptr() as *const u16) as HINSTANCE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1418:69 [INFO] [stdout] | [INFO] [stdout] 1418 | let instance = GetModuleHandleW(name.as_ptr() as *const u16) as HINSTANCE; [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_handmade.rs:1420:21 [INFO] [stdout] | [INFO] [stdout] 1420 | let wnd_class = WNDCLASSW { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CS_HREDRAW` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1421:16 [INFO] [stdout] | [INFO] [stdout] 1421 | style: CS_HREDRAW | CS_VREDRAW, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CS_VREDRAW` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1421:29 [INFO] [stdout] | [INFO] [stdout] 1421 | style: CS_HREDRAW | CS_VREDRAW, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LoadCursorW` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1428:18 [INFO] [stdout] | [INFO] [stdout] 1428 | hCursor: LoadCursorW(0 as HINSTANCE, IDC_ARROW), [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_handmade.rs:1428:35 [INFO] [stdout] | [INFO] [stdout] 1428 | hCursor: LoadCursorW(0 as HINSTANCE, IDC_ARROW), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `IDC_ARROW` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1428:46 [INFO] [stdout] | [INFO] [stdout] 1428 | hCursor: LoadCursorW(0 as HINSTANCE, IDC_ARROW), [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_handmade.rs:1435:11 [INFO] [stdout] | [INFO] [stdout] 1435 | match RegisterClassW(&wnd_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_handmade.rs:1437:26 [INFO] [stdout] | [INFO] [stdout] 1437 | 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_handmade.rs:1441:17 [INFO] [stdout] | [INFO] [stdout] 1441 | 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_handmade.rs:1441:39 [INFO] [stdout] | [INFO] [stdout] 1441 | 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_handmade.rs:1442:17 [INFO] [stdout] | [INFO] [stdout] 1442 | 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_handmade.rs:1443:17 [INFO] [stdout] | [INFO] [stdout] 1443 | 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_handmade.rs:1444:17 [INFO] [stdout] | [INFO] [stdout] 1444 | 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_handmade.rs:1445:17 [INFO] [stdout] | [INFO] [stdout] 1445 | CW_USEDEFAULT, [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_handmade.rs:1459:33 [INFO] [stdout] | [INFO] [stdout] 1459 | let RefreshDC = GetDC(window); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetDeviceCaps` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1460:40 [INFO] [stdout] | [INFO] [stdout] 1460 | let Win32RefreshRate = GetDeviceCaps(RefreshDC, VREFRESH); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `VREFRESH` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1460:65 [INFO] [stdout] | [INFO] [stdout] 1460 | let Win32RefreshRate = GetDeviceCaps(RefreshDC, VREFRESH); [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_handmade.rs:1461:17 [INFO] [stdout] | [INFO] [stdout] 1461 | ReleaseDC(window, RefreshDC); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DSBPLAY_LOOPING` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1479:55 [INFO] [stdout] | [INFO] [stdout] 1479 | (*GLOBAL_SECONDARY_BUFFER).Play(0, 0, DSBPLAY_LOOPING); [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_handmade.rs:1483:31 [INFO] [stdout] | [INFO] [stdout] 1483 | let samples = 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_handmade.rs:1486:21 [INFO] [stdout] | [INFO] [stdout] 1486 | 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_handmade.rs:1486:34 [INFO] [stdout] | [INFO] [stdout] 1486 | 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_handmade.rs:1487:21 [INFO] [stdout] | [INFO] [stdout] 1487 | PAGE_READWRITE, [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1490:45 [INFO] [stdout] | [INFO] [stdout] 1490 | let mut base_address = 0 as LPVOID; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1494:78 [INFO] [stdout] | [INFO] [stdout] 1494 | base_address = (2 * 1024 * 1024 * 1024 * 1024 as u64) as LPVOID; [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_handmade.rs:1512:41 [INFO] [stdout] | [INFO] [stdout] 1512 | State.GameMemoryBlock = VirtualAlloc( [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_handmade.rs:1515:21 [INFO] [stdout] | [INFO] [stdout] 1515 | MEM_RESERVE | MEM_COMMIT, [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_handmade.rs:1515:35 [INFO] [stdout] | [INFO] [stdout] 1515 | MEM_RESERVE | MEM_COMMIT, [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_handmade.rs:1516:21 [INFO] [stdout] | [INFO] [stdout] 1516 | 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 `CreateFileA` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1567:47 [INFO] [stdout] | [INFO] [stdout] 1567 | ReplayBuffer.FileHandle = CreateFileA( [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GENERIC_WRITE` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1569:25 [INFO] [stdout] | [INFO] [stdout] 1569 | GENERIC_WRITE | GENERIC_READ, [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_handmade.rs:1569:41 [INFO] [stdout] | [INFO] [stdout] 1569 | GENERIC_WRITE | GENERIC_READ, [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CREATE_ALWAYS` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1572:25 [INFO] [stdout] | [INFO] [stdout] 1572 | CREATE_ALWAYS, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LARGE_INTEGER` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1577:48 [INFO] [stdout] | [INFO] [stdout] 1344 | pub unsafe extern "system" fn winmain() { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 1577 | let mut MaxSize = zeroed::(); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LARGE_INTEGER_u` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1579:32 [INFO] [stdout] | [INFO] [stdout] 1579 | let msize: LARGE_INTEGER_u = *MaxSize.u_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateFileMappingA` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1580:46 [INFO] [stdout] | [INFO] [stdout] 1580 | ReplayBuffer.MemoryMap = CreateFileMappingA( [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_handmade.rs:1583:25 [INFO] [stdout] | [INFO] [stdout] 1583 | 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 `MapViewOfFile` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1588:48 [INFO] [stdout] | [INFO] [stdout] 1588 | ReplayBuffer.MemoryBlock = MapViewOfFile( [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FILE_MAP_ALL_ACCESS` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1590:25 [INFO] [stdout] | [INFO] [stdout] 1590 | FILE_MAP_ALL_ACCESS, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CompareFileTime` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1631:28 [INFO] [stdout] | [INFO] [stdout] 1631 | if CompareFileTime(&new_dll_write_time, &game.dll_last_write_time) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `POINT` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1655:55 [INFO] [stdout] | [INFO] [stdout] 1344 | pub unsafe extern "system" fn winmain() { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 1655 | let mut MouseP = zeroed::(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetCursorPos` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1656:29 [INFO] [stdout] | [INFO] [stdout] 1656 | ... GetCursorPos(&mut MouseP); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ScreenToClient` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1657:29 [INFO] [stdout] | [INFO] [stdout] 1657 | ... ScreenToClient(window, &mut MouseP); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetKeyState` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1663:34 [INFO] [stdout] | [INFO] [stdout] 1663 | ... (GetKeyState(VK_LBUTTON) & (1 << 15)) != 0, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `VK_LBUTTON` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1663:46 [INFO] [stdout] | [INFO] [stdout] 1663 | ... (GetKeyState(VK_LBUTTON) & (1 << 15)) != 0, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetKeyState` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1667:34 [INFO] [stdout] | [INFO] [stdout] 1667 | ... (GetKeyState(VK_MBUTTON) & (1 << 15)) != 0, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `VK_MBUTTON` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1667:46 [INFO] [stdout] | [INFO] [stdout] 1667 | ... (GetKeyState(VK_MBUTTON) & (1 << 15)) != 0, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetKeyState` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1671:34 [INFO] [stdout] | [INFO] [stdout] 1671 | ... (GetKeyState(VK_RBUTTON) & (1 << 15)) != 0, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `VK_RBUTTON` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1671:46 [INFO] [stdout] | [INFO] [stdout] 1671 | ... (GetKeyState(VK_RBUTTON) & (1 << 15)) != 0, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetKeyState` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1675:34 [INFO] [stdout] | [INFO] [stdout] 1675 | ... (GetKeyState(VK_XBUTTON1) & (1 << 15)) != 0, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `VK_XBUTTON1` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1675:46 [INFO] [stdout] | [INFO] [stdout] 1675 | ... (GetKeyState(VK_XBUTTON1) & (1 << 15)) != 0, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetKeyState` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1679:34 [INFO] [stdout] | [INFO] [stdout] 1679 | ... (GetKeyState(VK_XBUTTON2) & (1 << 15)) != 0, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `VK_XBUTTON2` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1679:46 [INFO] [stdout] | [INFO] [stdout] 1679 | ... (GetKeyState(VK_XBUTTON2) & (1 << 15)) != 0, [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_handmade.rs:1682:60 [INFO] [stdout] | [INFO] [stdout] 1682 | ... let mut max_controller_count = XUSER_MAX_COUNT; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `XINPUT_GAMEPAD_LEFT_THUMB_DEADZONE` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1716:45 [INFO] [stdout] | [INFO] [stdout] 1716 | ... XINPUT_GAMEPAD_LEFT_THUMB_DEADZONE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `XINPUT_GAMEPAD_LEFT_THUMB_DEADZONE` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1722:45 [INFO] [stdout] | [INFO] [stdout] 1722 | ... XINPUT_GAMEPAD_LEFT_THUMB_DEADZONE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DS_OK` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1886:36 [INFO] [stdout] | [INFO] [stdout] 1886 | ... == DS_OK [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/win32_handmade.rs:2002:51 [INFO] [stdout] | [INFO] [stdout] 2002 | ... let sleep_ms: DWORD = (1000.0 [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/win32_handmade.rs:2004:44 [INFO] [stdout] | [INFO] [stdout] 2004 | ... as DWORD; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Sleep` in this scope [INFO] [stdout] --> src/win32_handmade.rs:2006:41 [INFO] [stdout] | [INFO] [stdout] 2006 | ... Sleep(sleep_ms); [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_handmade.rs:2038:50 [INFO] [stdout] | [INFO] [stdout] 2038 | ... let device_context = GetDC(window); [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_handmade.rs:2045:29 [INFO] [stdout] | [INFO] [stdout] 2045 | ... ReleaseDC(window, device_context); [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/win32_handmade.rs:2051:53 [INFO] [stdout] | [INFO] [stdout] 2051 | ... let mut PlayCursor: DWORD = 0; [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/win32_handmade.rs:2052:54 [INFO] [stdout] | [INFO] [stdout] 2052 | ... let mut WriteCursor: DWORD = 0; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DS_OK` in this scope [INFO] [stdout] --> src/win32_handmade.rs:2055:40 [INFO] [stdout] | [INFO] [stdout] 2055 | ... == DS_OK [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `timeBeginPeriod` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1408:29 [INFO] [stdout] | [INFO] [stdout] 1408 | let sleep_is_granular = timeBeginPeriod(desired_scheduler_ms) == TIMERR_NOERROR; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TIMERR_NOERROR` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1408:70 [INFO] [stdout] | [INFO] [stdout] 1408 | let sleep_is_granular = timeBeginPeriod(desired_scheduler_ms) == TIMERR_NOERROR; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleW` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1418:20 [INFO] [stdout] | [INFO] [stdout] 1418 | let instance = GetModuleHandleW(name.as_ptr() as *const u16) as HINSTANCE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1418:69 [INFO] [stdout] | [INFO] [stdout] 1418 | let instance = GetModuleHandleW(name.as_ptr() as *const u16) as HINSTANCE; [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_handmade.rs:1420:21 [INFO] [stdout] | [INFO] [stdout] 1420 | let wnd_class = WNDCLASSW { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CS_HREDRAW` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1421:16 [INFO] [stdout] | [INFO] [stdout] 1421 | style: CS_HREDRAW | CS_VREDRAW, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CS_VREDRAW` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1421:29 [INFO] [stdout] | [INFO] [stdout] 1421 | style: CS_HREDRAW | CS_VREDRAW, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LoadCursorW` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1428:18 [INFO] [stdout] | [INFO] [stdout] 1428 | hCursor: LoadCursorW(0 as HINSTANCE, IDC_ARROW), [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_handmade.rs:1428:35 [INFO] [stdout] | [INFO] [stdout] 1428 | hCursor: LoadCursorW(0 as HINSTANCE, IDC_ARROW), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `IDC_ARROW` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1428:46 [INFO] [stdout] | [INFO] [stdout] 1428 | hCursor: LoadCursorW(0 as HINSTANCE, IDC_ARROW), [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_handmade.rs:1435:11 [INFO] [stdout] | [INFO] [stdout] 1435 | match RegisterClassW(&wnd_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_handmade.rs:1437:26 [INFO] [stdout] | [INFO] [stdout] 1437 | 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_handmade.rs:1441:17 [INFO] [stdout] | [INFO] [stdout] 1441 | 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_handmade.rs:1441:39 [INFO] [stdout] | [INFO] [stdout] 1441 | 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_handmade.rs:1442:17 [INFO] [stdout] | [INFO] [stdout] 1442 | 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_handmade.rs:1443:17 [INFO] [stdout] | [INFO] [stdout] 1443 | 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_handmade.rs:1444:17 [INFO] [stdout] | [INFO] [stdout] 1444 | 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_handmade.rs:1445:17 [INFO] [stdout] | [INFO] [stdout] 1445 | CW_USEDEFAULT, [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_handmade.rs:1459:33 [INFO] [stdout] | [INFO] [stdout] 1459 | let RefreshDC = GetDC(window); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetDeviceCaps` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1460:40 [INFO] [stdout] | [INFO] [stdout] 1460 | let Win32RefreshRate = GetDeviceCaps(RefreshDC, VREFRESH); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `VREFRESH` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1460:65 [INFO] [stdout] | [INFO] [stdout] 1460 | let Win32RefreshRate = GetDeviceCaps(RefreshDC, VREFRESH); [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_handmade.rs:1461:17 [INFO] [stdout] | [INFO] [stdout] 1461 | ReleaseDC(window, RefreshDC); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DSBPLAY_LOOPING` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1479:55 [INFO] [stdout] | [INFO] [stdout] 1479 | (*GLOBAL_SECONDARY_BUFFER).Play(0, 0, DSBPLAY_LOOPING); [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_handmade.rs:1483:31 [INFO] [stdout] | [INFO] [stdout] 1483 | let samples = 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_handmade.rs:1486:21 [INFO] [stdout] | [INFO] [stdout] 1486 | 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_handmade.rs:1486:34 [INFO] [stdout] | [INFO] [stdout] 1486 | 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_handmade.rs:1487:21 [INFO] [stdout] | [INFO] [stdout] 1487 | PAGE_READWRITE, [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1490:45 [INFO] [stdout] | [INFO] [stdout] 1490 | let mut base_address = 0 as LPVOID; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1494:78 [INFO] [stdout] | [INFO] [stdout] 1494 | base_address = (2 * 1024 * 1024 * 1024 * 1024 as u64) as LPVOID; [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_handmade.rs:1512:41 [INFO] [stdout] | [INFO] [stdout] 1512 | State.GameMemoryBlock = VirtualAlloc( [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_handmade.rs:1515:21 [INFO] [stdout] | [INFO] [stdout] 1515 | MEM_RESERVE | MEM_COMMIT, [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_handmade.rs:1515:35 [INFO] [stdout] | [INFO] [stdout] 1515 | MEM_RESERVE | MEM_COMMIT, [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_handmade.rs:1516:21 [INFO] [stdout] | [INFO] [stdout] 1516 | 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 `CreateFileA` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1567:47 [INFO] [stdout] | [INFO] [stdout] 1567 | ReplayBuffer.FileHandle = CreateFileA( [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GENERIC_WRITE` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1569:25 [INFO] [stdout] | [INFO] [stdout] 1569 | GENERIC_WRITE | GENERIC_READ, [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_handmade.rs:1569:41 [INFO] [stdout] | [INFO] [stdout] 1569 | GENERIC_WRITE | GENERIC_READ, [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CREATE_ALWAYS` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1572:25 [INFO] [stdout] | [INFO] [stdout] 1572 | CREATE_ALWAYS, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LARGE_INTEGER` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1577:48 [INFO] [stdout] | [INFO] [stdout] 1344 | pub unsafe extern "system" fn winmain() { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 1577 | let mut MaxSize = zeroed::(); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LARGE_INTEGER_u` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1579:32 [INFO] [stdout] | [INFO] [stdout] 1579 | let msize: LARGE_INTEGER_u = *MaxSize.u_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateFileMappingA` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1580:46 [INFO] [stdout] | [INFO] [stdout] 1580 | ReplayBuffer.MemoryMap = CreateFileMappingA( [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_handmade.rs:1583:25 [INFO] [stdout] | [INFO] [stdout] 1583 | 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 `MapViewOfFile` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1588:48 [INFO] [stdout] | [INFO] [stdout] 1588 | ReplayBuffer.MemoryBlock = MapViewOfFile( [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FILE_MAP_ALL_ACCESS` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1590:25 [INFO] [stdout] | [INFO] [stdout] 1590 | FILE_MAP_ALL_ACCESS, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CompareFileTime` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1631:28 [INFO] [stdout] | [INFO] [stdout] 1631 | if CompareFileTime(&new_dll_write_time, &game.dll_last_write_time) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `POINT` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1655:55 [INFO] [stdout] | [INFO] [stdout] 1344 | pub unsafe extern "system" fn winmain() { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 1655 | let mut MouseP = zeroed::(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetCursorPos` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1656:29 [INFO] [stdout] | [INFO] [stdout] 1656 | ... GetCursorPos(&mut MouseP); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ScreenToClient` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1657:29 [INFO] [stdout] | [INFO] [stdout] 1657 | ... ScreenToClient(window, &mut MouseP); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetKeyState` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1663:34 [INFO] [stdout] | [INFO] [stdout] 1663 | ... (GetKeyState(VK_LBUTTON) & (1 << 15)) != 0, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `VK_LBUTTON` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1663:46 [INFO] [stdout] | [INFO] [stdout] 1663 | ... (GetKeyState(VK_LBUTTON) & (1 << 15)) != 0, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetKeyState` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1667:34 [INFO] [stdout] | [INFO] [stdout] 1667 | ... (GetKeyState(VK_MBUTTON) & (1 << 15)) != 0, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `VK_MBUTTON` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1667:46 [INFO] [stdout] | [INFO] [stdout] 1667 | ... (GetKeyState(VK_MBUTTON) & (1 << 15)) != 0, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetKeyState` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1671:34 [INFO] [stdout] | [INFO] [stdout] 1671 | ... (GetKeyState(VK_RBUTTON) & (1 << 15)) != 0, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `VK_RBUTTON` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1671:46 [INFO] [stdout] | [INFO] [stdout] 1671 | ... (GetKeyState(VK_RBUTTON) & (1 << 15)) != 0, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetKeyState` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1675:34 [INFO] [stdout] | [INFO] [stdout] 1675 | ... (GetKeyState(VK_XBUTTON1) & (1 << 15)) != 0, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `VK_XBUTTON1` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1675:46 [INFO] [stdout] | [INFO] [stdout] 1675 | ... (GetKeyState(VK_XBUTTON1) & (1 << 15)) != 0, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetKeyState` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1679:34 [INFO] [stdout] | [INFO] [stdout] 1679 | ... (GetKeyState(VK_XBUTTON2) & (1 << 15)) != 0, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `VK_XBUTTON2` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1679:46 [INFO] [stdout] | [INFO] [stdout] 1679 | ... (GetKeyState(VK_XBUTTON2) & (1 << 15)) != 0, [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_handmade.rs:1682:60 [INFO] [stdout] | [INFO] [stdout] 1682 | ... let mut max_controller_count = XUSER_MAX_COUNT; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `XINPUT_GAMEPAD_LEFT_THUMB_DEADZONE` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1716:45 [INFO] [stdout] | [INFO] [stdout] 1716 | ... XINPUT_GAMEPAD_LEFT_THUMB_DEADZONE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `XINPUT_GAMEPAD_LEFT_THUMB_DEADZONE` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1722:45 [INFO] [stdout] | [INFO] [stdout] 1722 | ... XINPUT_GAMEPAD_LEFT_THUMB_DEADZONE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DS_OK` in this scope [INFO] [stdout] --> src/win32_handmade.rs:1886:36 [INFO] [stdout] | [INFO] [stdout] 1886 | ... == DS_OK [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/win32_handmade.rs:2002:51 [INFO] [stdout] | [INFO] [stdout] 2002 | ... let sleep_ms: DWORD = (1000.0 [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/win32_handmade.rs:2004:44 [INFO] [stdout] | [INFO] [stdout] 2004 | ... as DWORD; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Sleep` in this scope [INFO] [stdout] --> src/win32_handmade.rs:2006:41 [INFO] [stdout] | [INFO] [stdout] 2006 | ... Sleep(sleep_ms); [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_handmade.rs:2038:50 [INFO] [stdout] | [INFO] [stdout] 2038 | ... let device_context = GetDC(window); [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_handmade.rs:2045:29 [INFO] [stdout] | [INFO] [stdout] 2045 | ... ReleaseDC(window, device_context); [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/win32_handmade.rs:2051:53 [INFO] [stdout] | [INFO] [stdout] 2051 | ... let mut PlayCursor: DWORD = 0; [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/win32_handmade.rs:2052:54 [INFO] [stdout] | [INFO] [stdout] 2052 | ... let mut WriteCursor: DWORD = 0; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DS_OK` in this scope [INFO] [stdout] --> src/win32_handmade.rs:2055:40 [INFO] [stdout] | [INFO] [stdout] 2055 | ... == DS_OK [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/win32_handmade.rs:1021:12 [INFO] [stdout] | [INFO] [stdout] 1021 | if (BytesRead == 0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/win32_handmade.rs:1315:5 [INFO] [stdout] | [INFO] [stdout] 1315 | ((end.QuadPart() - start.QuadPart()) as f32 / PERF_COUNT_FREQUENCY as f32) //as f32, moving cast out here drastically changes value. ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/win32_handmade.rs:1549:21 [INFO] [stdout] | [INFO] [stdout] 1549 | for (ReplayBuffer) in State.ReplayBuffers.iter_mut() [INFO] [stdout] | ^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/win32_handmade.rs:1931:52 [INFO] [stdout] | [INFO] [stdout] 1931 | ... TargetCursor = (WriteCursor as i32 [INFO] [stdout] | ______________________________________^ [INFO] [stdout] 1932 | | ... + ExpectedSoundBytesPerFrame [INFO] [stdout] 1933 | | ... + SoundOutput.SafetyBytes as i32); [INFO] [stdout] | |___________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1931 | TargetCursor = WriteCursor as i32 [INFO] [stdout] 1932 | + ExpectedSoundBytesPerFrame [INFO] [stdout] 1933 | + SoundOutput.SafetyBytes as i32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/win32_handmade.rs:1936:37 [INFO] [stdout] | [INFO] [stdout] 1936 | ... (TargetCursor % SoundOutput.SecondaryBufferSize as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/win32_handmade.rs:1940:52 [INFO] [stdout] | [INFO] [stdout] 1940 | ... BytesToWrite = (SoundOutput.SecondaryBufferSize - ByteToLock); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/win32_handmade.rs:1021:12 [INFO] [stdout] | [INFO] [stdout] 1021 | if (BytesRead == 0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/win32_handmade.rs:1315:5 [INFO] [stdout] | [INFO] [stdout] 1315 | ((end.QuadPart() - start.QuadPart()) as f32 / PERF_COUNT_FREQUENCY as f32) //as f32, moving cast out here drastically changes value. ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/win32_handmade.rs:1549:21 [INFO] [stdout] | [INFO] [stdout] 1549 | for (ReplayBuffer) in State.ReplayBuffers.iter_mut() [INFO] [stdout] | ^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/win32_handmade.rs:1931:52 [INFO] [stdout] | [INFO] [stdout] 1931 | ... TargetCursor = (WriteCursor as i32 [INFO] [stdout] | ______________________________________^ [INFO] [stdout] 1932 | | ... + ExpectedSoundBytesPerFrame [INFO] [stdout] 1933 | | ... + SoundOutput.SafetyBytes as i32); [INFO] [stdout] | |___________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1931 | TargetCursor = WriteCursor as i32 [INFO] [stdout] 1932 | + ExpectedSoundBytesPerFrame [INFO] [stdout] 1933 | + SoundOutput.SafetyBytes as i32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/win32_handmade.rs:1936:37 [INFO] [stdout] | [INFO] [stdout] 1936 | ... (TargetCursor % SoundOutput.SecondaryBufferSize as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/win32_handmade.rs:1940:52 [INFO] [stdout] | [INFO] [stdout] 1940 | ... BytesToWrite = (SoundOutput.SecondaryBufferSize - ByteToLock); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/win32_handmade.rs:287:5 [INFO] [stdout] | [INFO] [stdout] 287 | OutputPlayCursor: DWORD, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: Default` [INFO] [stdout] = note: required by `std::default::Default::default` [INFO] [stdout] = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/win32_handmade.rs:287:5 [INFO] [stdout] | [INFO] [stdout] 287 | OutputPlayCursor: DWORD, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: Default` [INFO] [stdout] = note: required by `std::default::Default::default` [INFO] [stdout] = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode_wide` found for reference `&OsStr` in the current scope [INFO] [stdout] --> src/win32_handmade.rs:1276:23 [INFO] [stdout] | [INFO] [stdout] 1276 | OsStr::new(value).encode_wide().chain(once(0)).collect() [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&OsStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode_wide` found for reference `&OsStr` in the current scope [INFO] [stdout] --> src/win32_handmade.rs:1276:23 [INFO] [stdout] | [INFO] [stdout] 1276 | OsStr::new(value).encode_wide().chain(once(0)).collect() [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&OsStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 354 previous errors; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0283, E0408, E0412, E0422, E0425, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0283`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 354 previous errors; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0283, E0408, E0412, E0422, E0425, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0283`. [INFO] [stdout] [INFO] [stderr] error: could not compile `handmadehero-rust` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "448d9e668dcca1df0a9b1290f224de690494dcbfa485d24349956f5d7f1a7ac7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "448d9e668dcca1df0a9b1290f224de690494dcbfa485d24349956f5d7f1a7ac7", kill_on_drop: false }` [INFO] [stdout] 448d9e668dcca1df0a9b1290f224de690494dcbfa485d24349956f5d7f1a7ac7