[INFO] updating cached repository https://github.com/hummingly/rust-direct2d-example [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"` [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] afc9aef43e182e92f4000175c8eddbc39dc46ce7 [INFO] checking hummingly/rust-direct2d-example against try#e4dba30b9b475d8750370c4dfb49b6541990904d for pr-71393 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhummingly%2Frust-direct2d-example" "/workspace/builds/worker-0/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/hummingly/rust-direct2d-example on toolchain e4dba30b9b475d8750370c4dfb49b6541990904d [INFO] running `"/workspace/cargo-home/bin/cargo" "+e4dba30b9b475d8750370c4dfb49b6541990904d" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/hummingly/rust-direct2d-example [INFO] finished tweaking git repo https://github.com/hummingly/rust-direct2d-example [INFO] tweaked toml for git repo https://github.com/hummingly/rust-direct2d-example written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/hummingly/rust-direct2d-example already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+e4dba30b9b475d8750370c4dfb49b6541990904d" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+e4dba30b9b475d8750370c4dfb49b6541990904d" "check" "--frozen" "--all" "--all-targets"` [INFO] [stdout] 66b394b9c3a8dc7e94b651781a92c2ad7c019dd95d423156efb0dc94915e659a [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `"docker" "start" "-a" "66b394b9c3a8dc7e94b651781a92c2ad7c019dd95d423156efb0dc94915e659a"` [INFO] [stderr] Checking directwrite v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stderr] --> src/utils.rs:3:14 [INFO] [stderr] | [INFO] [stderr] 3 | use std::os::windows::ffi::OsStrExt; [INFO] [stderr] | ^^^^^^^ could not find `windows` in `os` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `kernel32::GetLastError`, `kernel32::GetModuleHandleW`, `kernel32::GetProcAddress`, `kernel32::LoadLibraryW` [INFO] [stderr] --> src/utils.rs:6:16 [INFO] [stderr] | [INFO] [stderr] 6 | use kernel32::{GetLastError, GetModuleHandleW, GetProcAddress, LoadLibraryW}; [INFO] [stderr] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^ no `LoadLibraryW` in the root [INFO] [stderr] | | | | [INFO] [stderr] | | | no `GetProcAddress` in the root [INFO] [stderr] | | no `GetModuleHandleW` in the root [INFO] [stderr] | no `GetLastError` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `user32::MessageBoxW` [INFO] [stderr] --> src/utils.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use user32::MessageBoxW; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ no `MessageBoxW` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `winapi::d2d1` [INFO] [stderr] --> src/utils.rs:8:13 [INFO] [stderr] | [INFO] [stderr] 8 | use winapi::d2d1::*; [INFO] [stderr] | ^^^^ could not find `d2d1` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `winapi::dcommon` [INFO] [stderr] --> src/utils.rs:9:13 [INFO] [stderr] | [INFO] [stderr] 9 | use winapi::dcommon::{D2D1_ALPHA_MODE_IGNORE, D2D1_PIXEL_FORMAT}; [INFO] [stderr] | ^^^^^^^ could not find `dcommon` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `winapi::dxgiformat` [INFO] [stderr] --> src/utils.rs:10:13 [INFO] [stderr] | [INFO] [stderr] 10 | use winapi::dxgiformat::DXGI_FORMAT; [INFO] [stderr] | ^^^^^^^^^^ could not find `dxgiformat` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `winapi::c_void` [INFO] [stderr] --> src/utils.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | use winapi::c_void; [INFO] [stderr] | ^^^^^^^^^^^^^^ no `c_void` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `winapi::guiddef` [INFO] [stderr] --> src/utils.rs:12:13 [INFO] [stderr] | [INFO] [stderr] 12 | use winapi::guiddef::REFIID; [INFO] [stderr] | ^^^^^^^ could not find `guiddef` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `winapi::minwindef` [INFO] [stderr] --> src/utils.rs:13:13 [INFO] [stderr] | [INFO] [stderr] 13 | use winapi::minwindef::HMODULE; [INFO] [stderr] | ^^^^^^^^^ could not find `minwindef` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `winapi::windef` [INFO] [stderr] --> src/utils.rs:14:13 [INFO] [stderr] | [INFO] [stderr] 14 | use winapi::windef::{POINT, RECT}; [INFO] [stderr] | ^^^^^^ could not find `windef` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `winapi::winerror` [INFO] [stderr] --> src/utils.rs:15:13 [INFO] [stderr] | [INFO] [stderr] 15 | use winapi::winerror::HRESULT; [INFO] [stderr] | ^^^^^^^^ could not find `winerror` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `winapi::winuser` [INFO] [stderr] --> src/utils.rs:16:13 [INFO] [stderr] | [INFO] [stderr] 16 | use winapi::winuser::{MB_OK, MSG, PAINTSTRUCT}; [INFO] [stderr] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stderr] --> src/utils.rs:3:14 [INFO] [stderr] | [INFO] [stderr] 3 | use std::os::windows::ffi::OsStrExt; [INFO] [stderr] | ^^^^^^^ could not find `windows` in `os` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `kernel32::GetLastError`, `kernel32::GetModuleHandleW`, `kernel32::GetProcAddress`, `kernel32::LoadLibraryW` [INFO] [stderr] --> src/utils.rs:6:16 [INFO] [stderr] | [INFO] [stderr] 6 | use kernel32::{GetLastError, GetModuleHandleW, GetProcAddress, LoadLibraryW}; [INFO] [stderr] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^ no `LoadLibraryW` in the root [INFO] [stderr] | | | | [INFO] [stderr] | | | no `GetProcAddress` in the root [INFO] [stderr] | | no `GetModuleHandleW` in the root [INFO] [stderr] | no `GetLastError` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `user32::MessageBoxW` [INFO] [stderr] --> src/utils.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use user32::MessageBoxW; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ no `MessageBoxW` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `winapi::d2d1` [INFO] [stderr] --> src/utils.rs:8:13 [INFO] [stderr] | [INFO] [stderr] 8 | use winapi::d2d1::*; [INFO] [stderr] | ^^^^ could not find `d2d1` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `winapi::dcommon` [INFO] [stderr] --> src/utils.rs:9:13 [INFO] [stderr] | [INFO] [stderr] 9 | use winapi::dcommon::{D2D1_ALPHA_MODE_IGNORE, D2D1_PIXEL_FORMAT}; [INFO] [stderr] | ^^^^^^^ could not find `dcommon` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `winapi::dxgiformat` [INFO] [stderr] --> src/utils.rs:10:13 [INFO] [stderr] | [INFO] [stderr] 10 | use winapi::dxgiformat::DXGI_FORMAT; [INFO] [stderr] | ^^^^^^^^^^ could not find `dxgiformat` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `winapi::c_void` [INFO] [stderr] --> src/utils.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | use winapi::c_void; [INFO] [stderr] | ^^^^^^^^^^^^^^ no `c_void` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `winapi::guiddef` [INFO] [stderr] --> src/utils.rs:12:13 [INFO] [stderr] | [INFO] [stderr] 12 | use winapi::guiddef::REFIID; [INFO] [stderr] | ^^^^^^^ could not find `guiddef` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `winapi::minwindef` [INFO] [stderr] --> src/utils.rs:13:13 [INFO] [stderr] | [INFO] [stderr] 13 | use winapi::minwindef::HMODULE; [INFO] [stderr] | ^^^^^^^^^ could not find `minwindef` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `winapi::windef` [INFO] [stderr] --> src/utils.rs:14:13 [INFO] [stderr] | [INFO] [stderr] 14 | use winapi::windef::{POINT, RECT}; [INFO] [stderr] | ^^^^^^ could not find `windef` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `winapi::winerror` [INFO] [stderr] --> src/utils.rs:15:13 [INFO] [stderr] | [INFO] [stderr] 15 | use winapi::winerror::HRESULT; [INFO] [stderr] | ^^^^^^^^ could not find `winerror` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `winapi::winuser` [INFO] [stderr] --> src/utils.rs:16:13 [INFO] [stderr] | [INFO] [stderr] 16 | use winapi::winuser::{MB_OK, MSG, PAINTSTRUCT}; [INFO] [stderr] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `D2D1_FACTORY_TYPE` in this scope [INFO] [stderr] --> src/utils.rs:47:18 [INFO] [stderr] | [INFO] [stderr] 47 | factoryType: D2D1_FACTORY_TYPE, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `D2D1_FACTORY_OPTIONS` in this scope [INFO] [stderr] --> src/utils.rs:49:29 [INFO] [stderr] | [INFO] [stderr] 49 | pFactoryOptions: *const D2D1_FACTORY_OPTIONS, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `D2D1_FACTORY_TYPE` in this scope [INFO] [stderr] --> src/utils.rs:79:19 [INFO] [stderr] | [INFO] [stderr] 79 | factory_type: D2D1_FACTORY_TYPE, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `D2D1_FACTORY_OPTIONS` in this scope [INFO] [stderr] --> src/utils.rs:81:31 [INFO] [stderr] | [INFO] [stderr] 81 | p_factory_options: *const D2D1_FACTORY_OPTIONS, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `D2D1_RENDER_TARGET_PROPERTIES` in this scope [INFO] [stderr] --> src/utils.rs:136:20 [INFO] [stderr] | [INFO] [stderr] 136 | impl WinStruct for D2D1_RENDER_TARGET_PROPERTIES { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_RENDER_TARGET_PROPERTIES` in this scope [INFO] [stderr] --> src/utils.rs:138:9 [INFO] [stderr] | [INFO] [stderr] 138 | D2D1_RENDER_TARGET_PROPERTIES { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `D2D1_RENDER_TARGET_TYPE_DEFAULT` in this scope [INFO] [stderr] --> src/utils.rs:139:20 [INFO] [stderr] | [INFO] [stderr] 139 | _type: D2D1_RENDER_TARGET_TYPE_DEFAULT, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `D2D1_RENDER_TARGET_USAGE_GDI_COMPATIBLE` in this scope [INFO] [stderr] --> src/utils.rs:143:20 [INFO] [stderr] | [INFO] [stderr] 143 | usage: D2D1_RENDER_TARGET_USAGE_GDI_COMPATIBLE, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `D2D1_FEATURE_LEVEL_DEFAULT` in this scope [INFO] [stderr] --> src/utils.rs:144:23 [INFO] [stderr] | [INFO] [stderr] 144 | minLevel: D2D1_FEATURE_LEVEL_DEFAULT, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `D2D1_MATRIX_3X2_F` in this scope [INFO] [stderr] --> src/utils.rs:158:20 [INFO] [stderr] | [INFO] [stderr] 158 | impl WinStruct for D2D1_MATRIX_3X2_F { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_MATRIX_3X2_F` in this scope [INFO] [stderr] --> src/utils.rs:160:9 [INFO] [stderr] | [INFO] [stderr] 160 | D2D1_MATRIX_3X2_F { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `D2D1_POINT_2F` in this scope [INFO] [stderr] --> src/utils.rs:166:20 [INFO] [stderr] | [INFO] [stderr] 166 | impl WinStruct for D2D1_POINT_2F { [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_POINT_2F` in this scope [INFO] [stderr] --> src/utils.rs:168:9 [INFO] [stderr] | [INFO] [stderr] 168 | D2D1_POINT_2F { x: 0.0, y: 0.0 } [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `D2D1_COLOR_F` in this scope [INFO] [stderr] --> src/utils.rs:176:16 [INFO] [stderr] | [INFO] [stderr] 176 | impl Color for D2D1_COLOR_F { [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_COLOR_F` in this scope [INFO] [stderr] --> src/utils.rs:178:9 [INFO] [stderr] | [INFO] [stderr] 178 | D2D1_COLOR_F { [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ID2D1HwndRenderTarget` in this scope [INFO] [stderr] --> src/main.rs:37:25 [INFO] [stderr] | [INFO] [stderr] 37 | render_target: *mut ID2D1HwndRenderTarget, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ID2D1SolidColorBrush` in this scope [INFO] [stderr] --> src/main.rs:38:18 [INFO] [stderr] | [INFO] [stderr] 38 | brush1: *mut ID2D1SolidColorBrush, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ID2D1SolidColorBrush` in this scope [INFO] [stderr] --> src/main.rs:39:18 [INFO] [stderr] | [INFO] [stderr] 39 | brush2: *mut ID2D1SolidColorBrush, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ID2D1Factory` in this scope [INFO] [stderr] --> src/main.rs:44:19 [INFO] [stderr] | [INFO] [stderr] 44 | factory: *mut ID2D1Factory, [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope [INFO] [stderr] --> src/main.rs:45:11 [INFO] [stderr] | [INFO] [stderr] 45 | hwnd: HWND, [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `c_void` in this scope [INFO] [stderr] --> src/main.rs:64:27 [INFO] [stderr] | [INFO] [stderr] 64 | let mut factory: *mut c_void = null_mut(); [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 6 | use std::ffi::c_void; [INFO] [stderr] | [INFO] [stderr] 6 | use std::os::raw::c_void; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_FACTORY_OPTIONS` in this scope [INFO] [stderr] --> src/main.rs:65:27 [INFO] [stderr] | [INFO] [stderr] 65 | let factory_options = D2D1_FACTORY_OPTIONS { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `D2D1_DEBUG_LEVEL_NONE` in this scope [INFO] [stderr] --> src/main.rs:66:21 [INFO] [stderr] | [INFO] [stderr] 66 | debugLevel: D2D1_DEBUG_LEVEL_NONE, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `D2D1_FACTORY_TYPE_MULTI_THREADED` in this scope [INFO] [stderr] --> src/main.rs:70:9 [INFO] [stderr] | [INFO] [stderr] 70 | D2D1_FACTORY_TYPE_MULTI_THREADED, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `UuidOfID2D1Factory` in this scope [INFO] [stderr] --> src/main.rs:71:10 [INFO] [stderr] | [INFO] [stderr] 71 | &UuidOfID2D1Factory, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `D2D1_FACTORY_OPTIONS` in this scope [INFO] [stderr] --> src/main.rs:72:36 [INFO] [stderr] | [INFO] [stderr] 72 | &factory_options as *const D2D1_FACTORY_OPTIONS, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `S_OK` in this scope [INFO] [stderr] --> src/main.rs:76:24 [INFO] [stderr] | [INFO] [stderr] 76 | if d2d1_factory != S_OK { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ID2D1Factory` in this scope [INFO] [stderr] --> src/main.rs:79:39 [INFO] [stderr] | [INFO] [stderr] 79 | app.factory = factory as *mut ID2D1Factory; [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `RECT` in this scope [INFO] [stderr] --> src/main.rs:91:27 [INFO] [stderr] | [INFO] [stderr] 91 | let mut rect: RECT = WinStruct::default(); [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetClientRect` in this scope [INFO] [stderr] --> src/main.rs:99:13 [INFO] [stderr] | [INFO] [stderr] 99 | GetClientRect(hwnd, &mut rect as *mut RECT); [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `RECT` in this scope [INFO] [stderr] --> src/main.rs:99:51 [INFO] [stderr] | [INFO] [stderr] 99 | GetClientRect(hwnd, &mut rect as *mut RECT); [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_SIZE_U` in this scope [INFO] [stderr] --> src/main.rs:101:28 [INFO] [stderr] | [INFO] [stderr] 101 | let d2d_rect = D2D1_SIZE_U { [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `D2D1_RENDER_TARGET_PROPERTIES` in this scope [INFO] [stderr] --> src/main.rs:106:36 [INFO] [stderr] | [INFO] [stderr] 106 | let render_properties: D2D1_RENDER_TARGET_PROPERTIES = WinStruct::default(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_HWND_RENDER_TARGET_PROPERTIES` in this scope [INFO] [stderr] --> src/main.rs:108:42 [INFO] [stderr] | [INFO] [stderr] 108 | let hwnd_render_properties = D2D1_HWND_RENDER_TARGET_PROPERTIES { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `D2D1_PRESENT_OPTIONS_NONE` in this scope [INFO] [stderr] --> src/main.rs:111:33 [INFO] [stderr] | [INFO] [stderr] 111 | presentOptions: D2D1_PRESENT_OPTIONS_NONE, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ID2D1Factory` in this scope [INFO] [stderr] --> src/main.rs:118:31 [INFO] [stderr] | [INFO] [stderr] 118 | let factory: &mut ID2D1Factory = &mut *app.factory; [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `S_OK` in this scope [INFO] [stderr] --> src/main.rs:124:18 [INFO] [stderr] | [INFO] [stderr] 124 | ) != S_OK [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ID2D1HwndRenderTarget` in this scope [INFO] [stderr] --> src/main.rs:128:26 [INFO] [stderr] | [INFO] [stderr] 128 | let rt: &mut ID2D1HwndRenderTarget = &mut *resources.render_target; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `S_OK` in this scope [INFO] [stderr] --> src/main.rs:130:82 [INFO] [stderr] | [INFO] [stderr] 130 | if rt.CreateSolidColorBrush(&gray, null(), &mut resources.brush1) != S_OK { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `S_OK` in this scope [INFO] [stderr] --> src/main.rs:134:81 [INFO] [stderr] | [INFO] [stderr] 134 | if rt.CreateSolidColorBrush(&red, null(), &mut resources.brush2) != S_OK { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HRESULT` in this scope [INFO] [stderr] --> src/main.rs:143:33 [INFO] [stderr] | [INFO] [stderr] 143 | fn on_paint(app: &mut MyApp) -> HRESULT { [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `D2D1_MATRIX_3X2_F` in this scope [INFO] [stderr] --> src/main.rs:145:26 [INFO] [stderr] | [INFO] [stderr] 145 | let d2d1_matrix: D2D1_MATRIX_3X2_F = WinStruct::default(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_SIZE_F` in this scope [INFO] [stderr] --> src/main.rs:149:31 [INFO] [stderr] | [INFO] [stderr] 149 | let mut render_size = D2D1_SIZE_F { [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_POINT_2F` in this scope [INFO] [stderr] --> src/main.rs:163:17 [INFO] [stderr] | [INFO] [stderr] 163 | D2D1_POINT_2F { x: count, y: 0.0 }, [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_POINT_2F` in this scope [INFO] [stderr] --> src/main.rs:164:17 [INFO] [stderr] | [INFO] [stderr] 164 | D2D1_POINT_2F { [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ID2D1Brush` in this scope [INFO] [stderr] --> src/main.rs:168:53 [INFO] [stderr] | [INFO] [stderr] 168 | &mut **app.resources.brush1 as *mut ID2D1Brush, [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D_POINT_2F` in this scope [INFO] [stderr] --> src/main.rs:178:17 [INFO] [stderr] | [INFO] [stderr] 178 | D2D_POINT_2F { x: 0.0, y: count }, [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D_POINT_2F` in this scope [INFO] [stderr] --> src/main.rs:179:17 [INFO] [stderr] | [INFO] [stderr] 179 | D2D_POINT_2F { [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ID2D1Brush` in this scope [INFO] [stderr] --> src/main.rs:183:53 [INFO] [stderr] | [INFO] [stderr] 183 | &mut **app.resources.brush1 as *mut ID2D1Brush, [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_RECT_F` in this scope [INFO] [stderr] --> src/main.rs:194:21 [INFO] [stderr] | [INFO] [stderr] 194 | let rect1 = D2D1_RECT_F { [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_RECT_F` in this scope [INFO] [stderr] --> src/main.rs:200:21 [INFO] [stderr] | [INFO] [stderr] 200 | let rect2 = D2D1_RECT_F { [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ID2D1Brush` in this scope [INFO] [stderr] --> src/main.rs:207:74 [INFO] [stderr] | [INFO] [stderr] 207 | render.FillRectangle(&rect1, &mut **app.resources.brush1 as *mut ID2D1Brush); [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ID2D1Brush` in this scope [INFO] [stderr] --> src/main.rs:210:49 [INFO] [stderr] | [INFO] [stderr] 210 | &mut **app.resources.brush2 as *mut ID2D1Brush, [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope [INFO] [stderr] --> src/main.rs:247:11 [INFO] [stderr] | [INFO] [stderr] 247 | hwnd: HWND, [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `UINT32` in this scope [INFO] [stderr] --> src/main.rs:248:14 [INFO] [stderr] | [INFO] [stderr] 248 | message: UINT32, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `WPARAM` in this scope [INFO] [stderr] --> src/main.rs:249:13 [INFO] [stderr] | [INFO] [stderr] 249 | wparam: WPARAM, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPARAM` in this scope [INFO] [stderr] --> src/main.rs:250:13 [INFO] [stderr] | [INFO] [stderr] 250 | lparam: LPARAM, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LRESULT` in this scope [INFO] [stderr] --> src/main.rs:251:6 [INFO] [stderr] | [INFO] [stderr] 251 | ) -> LRESULT { [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetWindowLongPtrW` in this scope [INFO] [stderr] --> src/main.rs:252:19 [INFO] [stderr] | [INFO] [stderr] 252 | let app_ptr = GetWindowLongPtrW(hwnd, 0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `D2DERR_RECREATE_TARGET` in this scope [INFO] [stderr] --> src/main.rs:257:33 [INFO] [stderr] | [INFO] [stderr] 257 | if on_paint(app) == D2DERR_RECREATE_TARGET { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowLongPtrW` in this scope [INFO] [stderr] --> src/main.rs:263:13 [INFO] [stderr] | [INFO] [stderr] 263 | SetWindowLongPtrW(hwnd, 0, 0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GET_X_LPARAM` in this scope [INFO] [stderr] --> src/main.rs:268:29 [INFO] [stderr] | [INFO] [stderr] 268 | let width = GET_X_LPARAM(lparam) as u32; [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GET_Y_LPARAM` in this scope [INFO] [stderr] --> src/main.rs:269:30 [INFO] [stderr] | [INFO] [stderr] 269 | let height = GET_Y_LPARAM(lparam) as u32; [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D_SIZE_U` in this scope [INFO] [stderr] --> src/main.rs:270:35 [INFO] [stderr] | [INFO] [stderr] 270 | let render_size = D2D_SIZE_U { [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `PostQuitMessage` in this scope [INFO] [stderr] --> src/main.rs:282:13 [INFO] [stderr] | [INFO] [stderr] 282 | PostQuitMessage(0); [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `DefWindowProcW` in this scope [INFO] [stderr] --> src/main.rs:285:14 [INFO] [stderr] | [INFO] [stderr] 285 | _ => DefWindowProcW(hwnd, message, wparam, lparam), [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `WNDCLASSEXW` in this scope [INFO] [stderr] --> src/main.rs:293:21 [INFO] [stderr] | [INFO] [stderr] 293 | let wndcl = WNDCLASSEXW { [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `WNDCLASSEXW` in this scope [INFO] [stderr] --> src/main.rs:294:36 [INFO] [stderr] | [INFO] [stderr] 290 | pub fn init_class() { [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] ... [INFO] [stderr] 294 | cbSize: mem::size_of::() as UINT32, [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `UINT32` in this scope [INFO] [stderr] --> src/main.rs:294:54 [INFO] [stderr] | [INFO] [stderr] 294 | cbSize: mem::size_of::() as UINT32, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `CS_HREDRAW` in this scope [INFO] [stderr] --> src/main.rs:295:20 [INFO] [stderr] | [INFO] [stderr] 295 | style: CS_HREDRAW | CS_VREDRAW, [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `CS_VREDRAW` in this scope [INFO] [stderr] --> src/main.rs:295:33 [INFO] [stderr] | [INFO] [stderr] 295 | style: CS_HREDRAW | CS_VREDRAW, [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `INT32` in this scope [INFO] [stderr] --> src/main.rs:298:52 [INFO] [stderr] | [INFO] [stderr] 298 | cbWndExtra: mem::size_of::() as INT32, [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleW` in this scope [INFO] [stderr] --> src/main.rs:299:24 [INFO] [stderr] | [INFO] [stderr] 299 | hInstance: GetModuleHandleW(null_mut()), [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HICON` in this scope [INFO] [stderr] --> src/main.rs:300:25 [INFO] [stderr] | [INFO] [stderr] 300 | hIcon: 0 as HICON, [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `LoadCursorW` in this scope [INFO] [stderr] --> src/main.rs:301:22 [INFO] [stderr] | [INFO] [stderr] 301 | hCursor: LoadCursorW(null_mut(), IDC_ARROW), [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `IDC_ARROW` in this scope [INFO] [stderr] --> src/main.rs:301:46 [INFO] [stderr] | [INFO] [stderr] 301 | hCursor: LoadCursorW(null_mut(), IDC_ARROW), [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `COLOR_WINDOWFRAME` in this scope [INFO] [stderr] --> src/main.rs:302:28 [INFO] [stderr] | [INFO] [stderr] 302 | hbrBackground: COLOR_WINDOWFRAME as HBRUSH, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HBRUSH` in this scope [INFO] [stderr] --> src/main.rs:302:49 [INFO] [stderr] | [INFO] [stderr] 302 | hbrBackground: COLOR_WINDOWFRAME as HBRUSH, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HICON` in this scope [INFO] [stderr] --> src/main.rs:305:27 [INFO] [stderr] | [INFO] [stderr] 305 | hIconSm: 0 as HICON, [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `RegisterClassExW` in this scope [INFO] [stderr] --> src/main.rs:308:12 [INFO] [stderr] | [INFO] [stderr] 308 | if RegisterClassExW(&wndcl) == 0 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `PostQuitMessage` in this scope [INFO] [stderr] --> src/main.rs:310:13 [INFO] [stderr] | [INFO] [stderr] 310 | PostQuitMessage(0); [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `RegisterClassExW` in this scope [INFO] [stderr] --> src/main.rs:312:13 [INFO] [stderr] | [INFO] [stderr] 312 | RegisterClassExW(&wndcl); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `CreateWindowExW` in this scope [INFO] [stderr] --> src/main.rs:319:20 [INFO] [stderr] | [INFO] [stderr] 319 | let hwnd = CreateWindowExW( [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `WS_EX_COMPOSITED` in this scope [INFO] [stderr] --> src/main.rs:320:13 [INFO] [stderr] | [INFO] [stderr] 320 | WS_EX_COMPOSITED, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `WS_OVERLAPPEDWINDOW` in this scope [INFO] [stderr] --> src/main.rs:323:13 [INFO] [stderr] | [INFO] [stderr] 323 | WS_OVERLAPPEDWINDOW | WS_VISIBLE, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `WS_VISIBLE` in this scope [INFO] [stderr] --> src/main.rs:323:35 [INFO] [stderr] | [INFO] [stderr] 323 | WS_OVERLAPPEDWINDOW | WS_VISIBLE, [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `CW_USEDEFAULT` in this scope [INFO] [stderr] --> src/main.rs:324:13 [INFO] [stderr] | [INFO] [stderr] 324 | CW_USEDEFAULT, [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `CW_USEDEFAULT` in this scope [INFO] [stderr] --> src/main.rs:325:13 [INFO] [stderr] | [INFO] [stderr] 325 | CW_USEDEFAULT, [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleW` in this scope [INFO] [stderr] --> src/main.rs:330:13 [INFO] [stderr] | [INFO] [stderr] 330 | GetModuleHandleW(null_mut()), [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `PostQuitMessage` in this scope [INFO] [stderr] --> src/main.rs:336:13 [INFO] [stderr] | [INFO] [stderr] 336 | PostQuitMessage(0); [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowLongPtrW` in this scope [INFO] [stderr] --> src/main.rs:346:9 [INFO] [stderr] | [INFO] [stderr] 346 | SetWindowLongPtrW(app.hwnd, 0, app as *mut MyApp as LONG_PTR); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LONG_PTR` in this scope [INFO] [stderr] --> src/main.rs:346:61 [INFO] [stderr] | [INFO] [stderr] 346 | SetWindowLongPtrW(app.hwnd, 0, app as *mut MyApp as LONG_PTR); [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `MSG` in this scope [INFO] [stderr] --> src/main.rs:363:22 [INFO] [stderr] | [INFO] [stderr] 363 | let mut msg: MSG = WinStruct::default(); [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetMessageW` in this scope [INFO] [stderr] --> src/main.rs:365:15 [INFO] [stderr] | [INFO] [stderr] 365 | while GetMessageW(&mut msg as *mut MSG, 0 as HWND, 0, 0) != 0 { [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `MSG` in this scope [INFO] [stderr] --> src/main.rs:365:44 [INFO] [stderr] | [INFO] [stderr] 365 | while GetMessageW(&mut msg as *mut MSG, 0 as HWND, 0, 0) != 0 { [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope [INFO] [stderr] --> src/main.rs:365:54 [INFO] [stderr] | [INFO] [stderr] 365 | while GetMessageW(&mut msg as *mut MSG, 0 as HWND, 0, 0) != 0 { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `TranslateMessage` in this scope [INFO] [stderr] --> src/main.rs:366:13 [INFO] [stderr] | [INFO] [stderr] 366 | TranslateMessage(&msg as *const MSG); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `MSG` in this scope [INFO] [stderr] --> src/main.rs:366:45 [INFO] [stderr] | [INFO] [stderr] 366 | TranslateMessage(&msg as *const MSG); [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `DispatchMessageW` in this scope [INFO] [stderr] --> src/main.rs:367:13 [INFO] [stderr] | [INFO] [stderr] 367 | DispatchMessageW(&msg as *const MSG); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `MSG` in this scope [INFO] [stderr] --> src/main.rs:367:45 [INFO] [stderr] | [INFO] [stderr] 367 | DispatchMessageW(&msg as *const MSG); [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] warning: unused import: `winapi::*` [INFO] [stderr] --> src/main.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use winapi::*; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `user32::*` [INFO] [stderr] --> src/main.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | use user32::*; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `kernel32::*` [INFO] [stderr] --> src/main.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | use kernel32::*; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `D2D1_FACTORY_TYPE` in this scope [INFO] [stderr] --> src/utils.rs:47:18 [INFO] [stderr] | [INFO] [stderr] 47 | factoryType: D2D1_FACTORY_TYPE, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `D2D1_FACTORY_OPTIONS` in this scope [INFO] [stderr] --> src/utils.rs:49:29 [INFO] [stderr] | [INFO] [stderr] 49 | pFactoryOptions: *const D2D1_FACTORY_OPTIONS, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `D2D1_FACTORY_TYPE` in this scope [INFO] [stderr] --> src/utils.rs:79:19 [INFO] [stderr] | [INFO] [stderr] 79 | factory_type: D2D1_FACTORY_TYPE, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `D2D1_FACTORY_OPTIONS` in this scope [INFO] [stderr] --> src/utils.rs:81:31 [INFO] [stderr] | [INFO] [stderr] 81 | p_factory_options: *const D2D1_FACTORY_OPTIONS, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `D2D1_RENDER_TARGET_PROPERTIES` in this scope [INFO] [stderr] --> src/utils.rs:136:20 [INFO] [stderr] | [INFO] [stderr] 136 | impl WinStruct for D2D1_RENDER_TARGET_PROPERTIES { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_RENDER_TARGET_PROPERTIES` in this scope [INFO] [stderr] --> src/utils.rs:138:9 [INFO] [stderr] | [INFO] [stderr] 138 | D2D1_RENDER_TARGET_PROPERTIES { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `D2D1_RENDER_TARGET_TYPE_DEFAULT` in this scope [INFO] [stderr] --> src/utils.rs:139:20 [INFO] [stderr] | [INFO] [stderr] 139 | _type: D2D1_RENDER_TARGET_TYPE_DEFAULT, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `D2D1_RENDER_TARGET_USAGE_GDI_COMPATIBLE` in this scope [INFO] [stderr] --> src/utils.rs:143:20 [INFO] [stderr] | [INFO] [stderr] 143 | usage: D2D1_RENDER_TARGET_USAGE_GDI_COMPATIBLE, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `D2D1_FEATURE_LEVEL_DEFAULT` in this scope [INFO] [stderr] --> src/utils.rs:144:23 [INFO] [stderr] | [INFO] [stderr] 144 | minLevel: D2D1_FEATURE_LEVEL_DEFAULT, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `D2D1_MATRIX_3X2_F` in this scope [INFO] [stderr] --> src/utils.rs:158:20 [INFO] [stderr] | [INFO] [stderr] 158 | impl WinStruct for D2D1_MATRIX_3X2_F { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_MATRIX_3X2_F` in this scope [INFO] [stderr] --> src/utils.rs:160:9 [INFO] [stderr] | [INFO] [stderr] 160 | D2D1_MATRIX_3X2_F { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `D2D1_POINT_2F` in this scope [INFO] [stderr] --> src/utils.rs:166:20 [INFO] [stderr] | [INFO] [stderr] 166 | impl WinStruct for D2D1_POINT_2F { [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_POINT_2F` in this scope [INFO] [stderr] --> src/utils.rs:168:9 [INFO] [stderr] | [INFO] [stderr] 168 | D2D1_POINT_2F { x: 0.0, y: 0.0 } [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `D2D1_COLOR_F` in this scope [INFO] [stderr] --> src/utils.rs:176:16 [INFO] [stderr] | [INFO] [stderr] 176 | impl Color for D2D1_COLOR_F { [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_COLOR_F` in this scope [INFO] [stderr] --> src/utils.rs:178:9 [INFO] [stderr] | [INFO] [stderr] 178 | D2D1_COLOR_F { [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ID2D1HwndRenderTarget` in this scope [INFO] [stderr] --> src/main.rs:37:25 [INFO] [stderr] | [INFO] [stderr] 37 | render_target: *mut ID2D1HwndRenderTarget, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ID2D1SolidColorBrush` in this scope [INFO] [stderr] --> src/main.rs:38:18 [INFO] [stderr] | [INFO] [stderr] 38 | brush1: *mut ID2D1SolidColorBrush, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ID2D1SolidColorBrush` in this scope [INFO] [stderr] --> src/main.rs:39:18 [INFO] [stderr] | [INFO] [stderr] 39 | brush2: *mut ID2D1SolidColorBrush, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ID2D1Factory` in this scope [INFO] [stderr] --> src/main.rs:44:19 [INFO] [stderr] | [INFO] [stderr] 44 | factory: *mut ID2D1Factory, [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope [INFO] [stderr] --> src/main.rs:45:11 [INFO] [stderr] | [INFO] [stderr] 45 | hwnd: HWND, [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `c_void` in this scope [INFO] [stderr] --> src/main.rs:64:27 [INFO] [stderr] | [INFO] [stderr] 64 | let mut factory: *mut c_void = null_mut(); [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 6 | use std::ffi::c_void; [INFO] [stderr] | [INFO] [stderr] 6 | use std::os::raw::c_void; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_FACTORY_OPTIONS` in this scope [INFO] [stderr] --> src/main.rs:65:27 [INFO] [stderr] | [INFO] [stderr] 65 | let factory_options = D2D1_FACTORY_OPTIONS { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `D2D1_DEBUG_LEVEL_NONE` in this scope [INFO] [stderr] --> src/main.rs:66:21 [INFO] [stderr] | [INFO] [stderr] 66 | debugLevel: D2D1_DEBUG_LEVEL_NONE, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `D2D1_FACTORY_TYPE_MULTI_THREADED` in this scope [INFO] [stderr] --> src/main.rs:70:9 [INFO] [stderr] | [INFO] [stderr] 70 | D2D1_FACTORY_TYPE_MULTI_THREADED, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `UuidOfID2D1Factory` in this scope [INFO] [stderr] --> src/main.rs:71:10 [INFO] [stderr] | [INFO] [stderr] 71 | &UuidOfID2D1Factory, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `D2D1_FACTORY_OPTIONS` in this scope [INFO] [stderr] --> src/main.rs:72:36 [INFO] [stderr] | [INFO] [stderr] 72 | &factory_options as *const D2D1_FACTORY_OPTIONS, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `S_OK` in this scope [INFO] [stderr] --> src/main.rs:76:24 [INFO] [stderr] | [INFO] [stderr] 76 | if d2d1_factory != S_OK { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ID2D1Factory` in this scope [INFO] [stderr] --> src/main.rs:79:39 [INFO] [stderr] | [INFO] [stderr] 79 | app.factory = factory as *mut ID2D1Factory; [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `RECT` in this scope [INFO] [stderr] --> src/main.rs:91:27 [INFO] [stderr] | [INFO] [stderr] 91 | let mut rect: RECT = WinStruct::default(); [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetClientRect` in this scope [INFO] [stderr] --> src/main.rs:99:13 [INFO] [stderr] | [INFO] [stderr] 99 | GetClientRect(hwnd, &mut rect as *mut RECT); [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `RECT` in this scope [INFO] [stderr] --> src/main.rs:99:51 [INFO] [stderr] | [INFO] [stderr] 99 | GetClientRect(hwnd, &mut rect as *mut RECT); [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_SIZE_U` in this scope [INFO] [stderr] --> src/main.rs:101:28 [INFO] [stderr] | [INFO] [stderr] 101 | let d2d_rect = D2D1_SIZE_U { [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `D2D1_RENDER_TARGET_PROPERTIES` in this scope [INFO] [stderr] --> src/main.rs:106:36 [INFO] [stderr] | [INFO] [stderr] 106 | let render_properties: D2D1_RENDER_TARGET_PROPERTIES = WinStruct::default(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_HWND_RENDER_TARGET_PROPERTIES` in this scope [INFO] [stderr] --> src/main.rs:108:42 [INFO] [stderr] | [INFO] [stderr] 108 | let hwnd_render_properties = D2D1_HWND_RENDER_TARGET_PROPERTIES { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `D2D1_PRESENT_OPTIONS_NONE` in this scope [INFO] [stderr] --> src/main.rs:111:33 [INFO] [stderr] | [INFO] [stderr] 111 | presentOptions: D2D1_PRESENT_OPTIONS_NONE, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ID2D1Factory` in this scope [INFO] [stderr] --> src/main.rs:118:31 [INFO] [stderr] | [INFO] [stderr] 118 | let factory: &mut ID2D1Factory = &mut *app.factory; [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `S_OK` in this scope [INFO] [stderr] --> src/main.rs:124:18 [INFO] [stderr] | [INFO] [stderr] 124 | ) != S_OK [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ID2D1HwndRenderTarget` in this scope [INFO] [stderr] --> src/main.rs:128:26 [INFO] [stderr] | [INFO] [stderr] 128 | let rt: &mut ID2D1HwndRenderTarget = &mut *resources.render_target; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `S_OK` in this scope [INFO] [stderr] --> src/main.rs:130:82 [INFO] [stderr] | [INFO] [stderr] 130 | if rt.CreateSolidColorBrush(&gray, null(), &mut resources.brush1) != S_OK { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `S_OK` in this scope [INFO] [stderr] --> src/main.rs:134:81 [INFO] [stderr] | [INFO] [stderr] 134 | if rt.CreateSolidColorBrush(&red, null(), &mut resources.brush2) != S_OK { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HRESULT` in this scope [INFO] [stderr] --> src/main.rs:143:33 [INFO] [stderr] | [INFO] [stderr] 143 | fn on_paint(app: &mut MyApp) -> HRESULT { [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `D2D1_MATRIX_3X2_F` in this scope [INFO] [stderr] --> src/main.rs:145:26 [INFO] [stderr] | [INFO] [stderr] 145 | let d2d1_matrix: D2D1_MATRIX_3X2_F = WinStruct::default(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_SIZE_F` in this scope [INFO] [stderr] --> src/main.rs:149:31 [INFO] [stderr] | [INFO] [stderr] 149 | let mut render_size = D2D1_SIZE_F { [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_POINT_2F` in this scope [INFO] [stderr] --> src/main.rs:163:17 [INFO] [stderr] | [INFO] [stderr] 163 | D2D1_POINT_2F { x: count, y: 0.0 }, [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_POINT_2F` in this scope [INFO] [stderr] --> src/main.rs:164:17 [INFO] [stderr] | [INFO] [stderr] 164 | D2D1_POINT_2F { [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ID2D1Brush` in this scope [INFO] [stderr] --> src/main.rs:168:53 [INFO] [stderr] | [INFO] [stderr] 168 | &mut **app.resources.brush1 as *mut ID2D1Brush, [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D_POINT_2F` in this scope [INFO] [stderr] --> src/main.rs:178:17 [INFO] [stderr] | [INFO] [stderr] 178 | D2D_POINT_2F { x: 0.0, y: count }, [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D_POINT_2F` in this scope [INFO] [stderr] --> src/main.rs:179:17 [INFO] [stderr] | [INFO] [stderr] 179 | D2D_POINT_2F { [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ID2D1Brush` in this scope [INFO] [stderr] --> src/main.rs:183:53 [INFO] [stderr] | [INFO] [stderr] 183 | &mut **app.resources.brush1 as *mut ID2D1Brush, [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_RECT_F` in this scope [INFO] [stderr] --> src/main.rs:194:21 [INFO] [stderr] | [INFO] [stderr] 194 | let rect1 = D2D1_RECT_F { [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_RECT_F` in this scope [INFO] [stderr] --> src/main.rs:200:21 [INFO] [stderr] | [INFO] [stderr] 200 | let rect2 = D2D1_RECT_F { [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ID2D1Brush` in this scope [INFO] [stderr] --> src/main.rs:207:74 [INFO] [stderr] | [INFO] [stderr] 207 | render.FillRectangle(&rect1, &mut **app.resources.brush1 as *mut ID2D1Brush); [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ID2D1Brush` in this scope [INFO] [stderr] --> src/main.rs:210:49 [INFO] [stderr] | [INFO] [stderr] 210 | &mut **app.resources.brush2 as *mut ID2D1Brush, [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope [INFO] [stderr] --> src/main.rs:247:11 [INFO] [stderr] | [INFO] [stderr] 247 | hwnd: HWND, [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `UINT32` in this scope [INFO] [stderr] --> src/main.rs:248:14 [INFO] [stderr] | [INFO] [stderr] 248 | message: UINT32, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `WPARAM` in this scope [INFO] [stderr] --> src/main.rs:249:13 [INFO] [stderr] | [INFO] [stderr] 249 | wparam: WPARAM, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPARAM` in this scope [INFO] [stderr] --> src/main.rs:250:13 [INFO] [stderr] | [INFO] [stderr] 250 | lparam: LPARAM, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LRESULT` in this scope [INFO] [stderr] --> src/main.rs:251:6 [INFO] [stderr] | [INFO] [stderr] 251 | ) -> LRESULT { [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetWindowLongPtrW` in this scope [INFO] [stderr] --> src/main.rs:252:19 [INFO] [stderr] | [INFO] [stderr] 252 | let app_ptr = GetWindowLongPtrW(hwnd, 0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `D2DERR_RECREATE_TARGET` in this scope [INFO] [stderr] --> src/main.rs:257:33 [INFO] [stderr] | [INFO] [stderr] 257 | if on_paint(app) == D2DERR_RECREATE_TARGET { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowLongPtrW` in this scope [INFO] [stderr] --> src/main.rs:263:13 [INFO] [stderr] | [INFO] [stderr] 263 | SetWindowLongPtrW(hwnd, 0, 0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GET_X_LPARAM` in this scope [INFO] [stderr] --> src/main.rs:268:29 [INFO] [stderr] | [INFO] [stderr] 268 | let width = GET_X_LPARAM(lparam) as u32; [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GET_Y_LPARAM` in this scope [INFO] [stderr] --> src/main.rs:269:30 [INFO] [stderr] | [INFO] [stderr] 269 | let height = GET_Y_LPARAM(lparam) as u32; [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D_SIZE_U` in this scope [INFO] [stderr] --> src/main.rs:270:35 [INFO] [stderr] | [INFO] [stderr] 270 | let render_size = D2D_SIZE_U { [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `PostQuitMessage` in this scope [INFO] [stderr] --> src/main.rs:282:13 [INFO] [stderr] | [INFO] [stderr] 282 | PostQuitMessage(0); [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `DefWindowProcW` in this scope [INFO] [stderr] --> src/main.rs:285:14 [INFO] [stderr] | [INFO] [stderr] 285 | _ => DefWindowProcW(hwnd, message, wparam, lparam), [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `WNDCLASSEXW` in this scope [INFO] [stderr] --> src/main.rs:293:21 [INFO] [stderr] | [INFO] [stderr] 293 | let wndcl = WNDCLASSEXW { [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `WNDCLASSEXW` in this scope [INFO] [stderr] --> src/main.rs:294:36 [INFO] [stderr] | [INFO] [stderr] 290 | pub fn init_class() { [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] ... [INFO] [stderr] 294 | cbSize: mem::size_of::() as UINT32, [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `UINT32` in this scope [INFO] [stderr] --> src/main.rs:294:54 [INFO] [stderr] | [INFO] [stderr] 294 | cbSize: mem::size_of::() as UINT32, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `CS_HREDRAW` in this scope [INFO] [stderr] --> src/main.rs:295:20 [INFO] [stderr] | [INFO] [stderr] 295 | style: CS_HREDRAW | CS_VREDRAW, [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `CS_VREDRAW` in this scope [INFO] [stderr] --> src/main.rs:295:33 [INFO] [stderr] | [INFO] [stderr] 295 | style: CS_HREDRAW | CS_VREDRAW, [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `INT32` in this scope [INFO] [stderr] --> src/main.rs:298:52 [INFO] [stderr] | [INFO] [stderr] 298 | cbWndExtra: mem::size_of::() as INT32, [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleW` in this scope [INFO] [stderr] --> src/main.rs:299:24 [INFO] [stderr] | [INFO] [stderr] 299 | hInstance: GetModuleHandleW(null_mut()), [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HICON` in this scope [INFO] [stderr] --> src/main.rs:300:25 [INFO] [stderr] | [INFO] [stderr] 300 | hIcon: 0 as HICON, [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `LoadCursorW` in this scope [INFO] [stderr] --> src/main.rs:301:22 [INFO] [stderr] | [INFO] [stderr] 301 | hCursor: LoadCursorW(null_mut(), IDC_ARROW), [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `IDC_ARROW` in this scope [INFO] [stderr] --> src/main.rs:301:46 [INFO] [stderr] | [INFO] [stderr] 301 | hCursor: LoadCursorW(null_mut(), IDC_ARROW), [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `COLOR_WINDOWFRAME` in this scope [INFO] [stderr] --> src/main.rs:302:28 [INFO] [stderr] | [INFO] [stderr] 302 | hbrBackground: COLOR_WINDOWFRAME as HBRUSH, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HBRUSH` in this scope [INFO] [stderr] --> src/main.rs:302:49 [INFO] [stderr] | [INFO] [stderr] 302 | hbrBackground: COLOR_WINDOWFRAME as HBRUSH, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HICON` in this scope [INFO] [stderr] --> src/main.rs:305:27 [INFO] [stderr] | [INFO] [stderr] 305 | hIconSm: 0 as HICON, [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `RegisterClassExW` in this scope [INFO] [stderr] --> src/main.rs:308:12 [INFO] [stderr] | [INFO] [stderr] 308 | if RegisterClassExW(&wndcl) == 0 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `PostQuitMessage` in this scope [INFO] [stderr] --> src/main.rs:310:13 [INFO] [stderr] | [INFO] [stderr] 310 | PostQuitMessage(0); [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `RegisterClassExW` in this scope [INFO] [stderr] --> src/main.rs:312:13 [INFO] [stderr] | [INFO] [stderr] 312 | RegisterClassExW(&wndcl); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `CreateWindowExW` in this scope [INFO] [stderr] --> src/main.rs:319:20 [INFO] [stderr] | [INFO] [stderr] 319 | let hwnd = CreateWindowExW( [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `WS_EX_COMPOSITED` in this scope [INFO] [stderr] --> src/main.rs:320:13 [INFO] [stderr] | [INFO] [stderr] 320 | WS_EX_COMPOSITED, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `WS_OVERLAPPEDWINDOW` in this scope [INFO] [stderr] --> src/main.rs:323:13 [INFO] [stderr] | [INFO] [stderr] 323 | WS_OVERLAPPEDWINDOW | WS_VISIBLE, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `WS_VISIBLE` in this scope [INFO] [stderr] --> src/main.rs:323:35 [INFO] [stderr] | [INFO] [stderr] 323 | WS_OVERLAPPEDWINDOW | WS_VISIBLE, [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `CW_USEDEFAULT` in this scope [INFO] [stderr] --> src/main.rs:324:13 [INFO] [stderr] | [INFO] [stderr] 324 | CW_USEDEFAULT, [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `CW_USEDEFAULT` in this scope [INFO] [stderr] --> src/main.rs:325:13 [INFO] [stderr] | [INFO] [stderr] 325 | CW_USEDEFAULT, [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleW` in this scope [INFO] [stderr] --> src/main.rs:330:13 [INFO] [stderr] | [INFO] [stderr] 330 | GetModuleHandleW(null_mut()), [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `PostQuitMessage` in this scope [INFO] [stderr] --> src/main.rs:336:13 [INFO] [stderr] | [INFO] [stderr] 336 | PostQuitMessage(0); [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowLongPtrW` in this scope [INFO] [stderr] --> src/main.rs:346:9 [INFO] [stderr] | [INFO] [stderr] 346 | SetWindowLongPtrW(app.hwnd, 0, app as *mut MyApp as LONG_PTR); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LONG_PTR` in this scope [INFO] [stderr] --> src/main.rs:346:61 [INFO] [stderr] | [INFO] [stderr] 346 | SetWindowLongPtrW(app.hwnd, 0, app as *mut MyApp as LONG_PTR); [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `MSG` in this scope [INFO] [stderr] --> src/main.rs:363:22 [INFO] [stderr] | [INFO] [stderr] 363 | let mut msg: MSG = WinStruct::default(); [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetMessageW` in this scope [INFO] [stderr] --> src/main.rs:365:15 [INFO] [stderr] | [INFO] [stderr] 365 | while GetMessageW(&mut msg as *mut MSG, 0 as HWND, 0, 0) != 0 { [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `MSG` in this scope [INFO] [stderr] --> src/main.rs:365:44 [INFO] [stderr] | [INFO] [stderr] 365 | while GetMessageW(&mut msg as *mut MSG, 0 as HWND, 0, 0) != 0 { [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope [INFO] [stderr] --> src/main.rs:365:54 [INFO] [stderr] | [INFO] [stderr] 365 | while GetMessageW(&mut msg as *mut MSG, 0 as HWND, 0, 0) != 0 { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `TranslateMessage` in this scope [INFO] [stderr] --> src/main.rs:366:13 [INFO] [stderr] | [INFO] [stderr] 366 | TranslateMessage(&msg as *const MSG); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `MSG` in this scope [INFO] [stderr] --> src/main.rs:366:45 [INFO] [stderr] | [INFO] [stderr] 366 | TranslateMessage(&msg as *const MSG); [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `DispatchMessageW` in this scope [INFO] [stderr] --> src/main.rs:367:13 [INFO] [stderr] | [INFO] [stderr] 367 | DispatchMessageW(&msg as *const MSG); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `MSG` in this scope [INFO] [stderr] --> src/main.rs:367:45 [INFO] [stderr] | [INFO] [stderr] 367 | DispatchMessageW(&msg as *const MSG); [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] warning: unused import: `winapi::*` [INFO] [stderr] --> src/main.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use winapi::*; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `user32::*` [INFO] [stderr] --> src/main.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | use user32::*; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `kernel32::*` [INFO] [stderr] --> src/main.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | use kernel32::*; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `encode_wide` found for reference `&std::ffi::OsStr` in the current scope [INFO] [stderr] --> src/utils.rs:24:31 [INFO] [stderr] | [INFO] [stderr] 24 | ffi::OsStr::new(self).encode_wide().chain(Some(0)).collect() [INFO] [stderr] | ^^^^^^^^^^^ method not found in `&std::ffi::OsStr` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `encode_wide` found for reference `&std::ffi::OsStr` in the current scope [INFO] [stderr] --> src/utils.rs:30:31 [INFO] [stderr] | [INFO] [stderr] 30 | ffi::OsStr::new(self).encode_wide().chain(Some(0)).collect() [INFO] [stderr] | ^^^^^^^^^^^ method not found in `&std::ffi::OsStr` [INFO] [stderr] [INFO] [stderr] error: aborting due to 114 previous errors; 3 warnings emitted [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0412, E0422, E0425, E0432, E0433, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0412`. [INFO] [stderr] error: could not compile `directwrite`. [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[E0599]: no method named `encode_wide` found for reference `&std::ffi::OsStr` in the current scope [INFO] [stderr] --> src/utils.rs:24:31 [INFO] [stderr] | [INFO] [stderr] 24 | ffi::OsStr::new(self).encode_wide().chain(Some(0)).collect() [INFO] [stderr] | ^^^^^^^^^^^ method not found in `&std::ffi::OsStr` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `encode_wide` found for reference `&std::ffi::OsStr` in the current scope [INFO] [stderr] --> src/utils.rs:30:31 [INFO] [stderr] | [INFO] [stderr] 30 | ffi::OsStr::new(self).encode_wide().chain(Some(0)).collect() [INFO] [stderr] | ^^^^^^^^^^^ method not found in `&std::ffi::OsStr` [INFO] [stderr] [INFO] [stderr] error: aborting due to 114 previous errors; 3 warnings emitted [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0412, E0422, E0425, E0432, E0433, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0412`. [INFO] [stderr] error: could not compile `directwrite`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "66b394b9c3a8dc7e94b651781a92c2ad7c019dd95d423156efb0dc94915e659a"` [INFO] running `"docker" "rm" "-f" "66b394b9c3a8dc7e94b651781a92c2ad7c019dd95d423156efb0dc94915e659a"` [INFO] [stdout] 66b394b9c3a8dc7e94b651781a92c2ad7c019dd95d423156efb0dc94915e659a