[INFO] cloning repository https://github.com/Connicpu/d2d1test-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Connicpu/d2d1test-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FConnicpu%2Fd2d1test-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FConnicpu%2Fd2d1test-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c6853ca6adeea01c1065531a2e6e0dba6b4b8745 [INFO] checking Connicpu/d2d1test-rs against try#f47dd4da3ae8c32c9e65d307bfe640b143e674df for pr-77526 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FConnicpu%2Fd2d1test-rs" "/workspace/builds/worker-11/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-11/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Connicpu/d2d1test-rs on toolchain f47dd4da3ae8c32c9e65d307bfe640b143e674df [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Connicpu/d2d1test-rs [INFO] finished tweaking git repo https://github.com/Connicpu/d2d1test-rs [INFO] tweaked toml for git repo https://github.com/Connicpu/d2d1test-rs written to /workspace/builds/worker-11/source/Cargo.toml [INFO] crate git repo https://github.com/Connicpu/d2d1test-rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded phf v0.7.21 [INFO] [stderr] Downloaded phf_generator v0.7.21 [INFO] [stderr] Downloaded siphasher v0.2.2 [INFO] [stderr] Downloaded libloading v0.3.4 [INFO] [stderr] Downloaded serde_json v0.9.10 [INFO] [stderr] Downloaded phf_shared v0.7.21 [INFO] [stderr] Downloaded phf_codegen v0.7.21 [INFO] [stderr] Downloaded itoa v0.3.4 [INFO] [stderr] Downloaded target_build_utils v0.3.1 [INFO] [stderr] Downloaded serde v0.9.15 [INFO] [stderr] Downloaded libc v0.2.39 [INFO] [stderr] Downloaded num-traits v0.2.1 [INFO] [stderr] Downloaded directwrite v0.0.9 [INFO] [stderr] Downloaded direct2d v0.0.9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bf00399874d285b19f8503746a176eee6c5a355e43fb518f99ba3e47c182d7e9 [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" "bf00399874d285b19f8503746a176eee6c5a355e43fb518f99ba3e47c182d7e9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bf00399874d285b19f8503746a176eee6c5a355e43fb518f99ba3e47c182d7e9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bf00399874d285b19f8503746a176eee6c5a355e43fb518f99ba3e47c182d7e9", kill_on_drop: false }` [INFO] [stdout] bf00399874d285b19f8503746a176eee6c5a355e43fb518f99ba3e47c182d7e9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ec9557aeaff714333353633c1401f3d5d15db43a88845120870ee53617570f27 [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" "ec9557aeaff714333353633c1401f3d5d15db43a88845120870ee53617570f27", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling siphasher v0.2.2 [INFO] [stderr] Compiling libc v0.2.39 [INFO] [stderr] Compiling num-traits v0.2.1 [INFO] [stderr] Compiling itoa v0.3.4 [INFO] [stderr] Compiling serde v0.9.15 [INFO] [stderr] Compiling dtoa v0.4.2 [INFO] [stderr] Compiling winapi v0.3.4 [INFO] [stderr] Checking lazy_static v0.2.11 [INFO] [stderr] Compiling phf_shared v0.7.21 [INFO] [stderr] Compiling phf v0.7.21 [INFO] [stderr] Compiling rand v0.4.2 [INFO] [stderr] Checking wio v0.2.0 [INFO] [stderr] Checking directwrite v0.0.9 [INFO] [stderr] Checking direct2d v0.0.9 [INFO] [stderr] Compiling num-traits v0.1.43 [INFO] [stderr] Compiling rand v0.3.22 [INFO] [stderr] Compiling phf_generator v0.7.21 [INFO] [stderr] Compiling phf_codegen v0.7.21 [INFO] [stderr] Compiling target_build_utils v0.3.1 [INFO] [stderr] Compiling serde_json v0.9.10 [INFO] [stderr] Compiling libloading v0.3.4 [INFO] [stderr] Checking d2d1test-rs v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/hwnd_rt.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::um::d2d1::*; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/hwnd_rt.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use winapi::um::d2d1_1::*; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/hwnd_rt.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | use winapi::um::dcommon::*; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/hwnd_rt.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | use winapi::shared::dxgiformat::*; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/hwnd_rt.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | use winapi::shared::windef::*; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/hwnd_rt.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | use winapi::shared::winerror::*; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/util.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | use std::os::windows::ffi::OsStrExt; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/util.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::shared::winerror::*; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/util.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::um::shellscalingapi::*; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `direct2d::render_target` [INFO] [stdout] --> src/hwnd_rt.rs:16:15 [INFO] [stdout] | [INFO] [stdout] 16 | use direct2d::render_target::RenderTargetBacking; [INFO] [stdout] | ^^^^^^^^^^^^^ could not find `render_target` in `direct2d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/window.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use winapi::shared::basetsd::LONG_PTR; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/window.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::shared::minwindef::*; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/window.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::shared::windef::*; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/window.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use winapi::um::winuser::*; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/window.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use winapi::um::winnt::LPCWSTR; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/main.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | use winapi::shared::minwindef::*; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/main.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | use winapi::shared::ntdef::LPCWSTR; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/main.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | use winapi::shared::windef::*; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/main.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | use winapi::um::d2d1::*; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/main.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | use winapi::um::wingdi::*; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/main.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | use winapi::um::winuser::*; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::ctypes` [INFO] [stdout] --> src/window.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use winapi::ctypes::c_int; [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `direct2d::RenderTarget`, `direct2d::brush` [INFO] [stdout] --> src/main.rs:25:16 [INFO] [stdout] | [INFO] [stdout] 25 | use direct2d::{RenderTarget, brush}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^ no `brush` in the root [INFO] [stdout] | | [INFO] [stdout] | no `RenderTarget` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `direct2d::geometry` [INFO] [stdout] --> src/main.rs:26:15 [INFO] [stdout] | [INFO] [stdout] 26 | use direct2d::geometry::{FigureBegin, FigureEnd}; [INFO] [stdout] | ^^^^^^^^ could not find `geometry` in `direct2d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `direct2d::math` [INFO] [stdout] --> src/main.rs:27:15 [INFO] [stdout] | [INFO] [stdout] 27 | use direct2d::math::*; [INFO] [stdout] | ^^^^ could not find `math` in `direct2d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `direct2d::render_target` [INFO] [stdout] --> src/main.rs:28:15 [INFO] [stdout] | [INFO] [stdout] 28 | use direct2d::render_target::DrawTextOption; [INFO] [stdout] | ^^^^^^^^^^^^^ could not find `render_target` in `direct2d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `directwrite::text_format`, `directwrite::text_format` [INFO] [stdout] --> src/main.rs:29:18 [INFO] [stdout] | [INFO] [stdout] 29 | use directwrite::text_format::{self, TextFormat}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^ no `text_format` in the root [INFO] [stdout] | | [INFO] [stdout] | could not find `text_format` in `directwrite` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/hwnd_rt.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::um::d2d1::*; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/hwnd_rt.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use winapi::um::d2d1_1::*; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/hwnd_rt.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | use winapi::um::dcommon::*; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/hwnd_rt.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | use winapi::shared::dxgiformat::*; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/hwnd_rt.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | use winapi::shared::windef::*; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/hwnd_rt.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | use winapi::shared::winerror::*; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/util.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | use std::os::windows::ffi::OsStrExt; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/util.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::shared::winerror::*; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/util.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::um::shellscalingapi::*; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `direct2d::render_target` [INFO] [stdout] --> src/hwnd_rt.rs:16:15 [INFO] [stdout] | [INFO] [stdout] 16 | use direct2d::render_target::RenderTargetBacking; [INFO] [stdout] | ^^^^^^^^^^^^^ could not find `render_target` in `direct2d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/window.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use winapi::shared::basetsd::LONG_PTR; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/window.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::shared::minwindef::*; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/window.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::shared::windef::*; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/window.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use winapi::um::winuser::*; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/window.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use winapi::um::winnt::LPCWSTR; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/main.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | use winapi::shared::minwindef::*; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/main.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | use winapi::shared::ntdef::LPCWSTR; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/main.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | use winapi::shared::windef::*; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/main.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | use winapi::um::d2d1::*; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/main.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | use winapi::um::wingdi::*; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/main.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | use winapi::um::winuser::*; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::ctypes` [INFO] [stdout] --> src/window.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use winapi::ctypes::c_int; [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `direct2d::RenderTarget`, `direct2d::brush` [INFO] [stdout] --> src/main.rs:25:16 [INFO] [stdout] | [INFO] [stdout] 25 | use direct2d::{RenderTarget, brush}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^ no `brush` in the root [INFO] [stdout] | | [INFO] [stdout] | no `RenderTarget` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `direct2d::geometry` [INFO] [stdout] --> src/main.rs:26:15 [INFO] [stdout] | [INFO] [stdout] 26 | use direct2d::geometry::{FigureBegin, FigureEnd}; [INFO] [stdout] | ^^^^^^^^ could not find `geometry` in `direct2d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `direct2d::math` [INFO] [stdout] --> src/main.rs:27:15 [INFO] [stdout] | [INFO] [stdout] 27 | use direct2d::math::*; [INFO] [stdout] | ^^^^ could not find `math` in `direct2d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `direct2d::render_target` [INFO] [stdout] --> src/main.rs:28:15 [INFO] [stdout] | [INFO] [stdout] 28 | use direct2d::render_target::DrawTextOption; [INFO] [stdout] | ^^^^^^^^^^^^^ could not find `render_target` in `direct2d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `directwrite::text_format`, `directwrite::text_format` [INFO] [stdout] --> src/main.rs:29:18 [INFO] [stdout] | [INFO] [stdout] 29 | use directwrite::text_format::{self, TextFormat}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^ no `text_format` in the root [INFO] [stdout] | | [INFO] [stdout] | could not find `text_format` in `directwrite` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Factory` in `direct2d` [INFO] [stdout] --> src/main.rs:51:36 [INFO] [stdout] | [INFO] [stdout] 51 | d2d_factory: direct2d::Factory::new().unwrap(), [INFO] [stdout] | ^^^^^^^ could not find `Factory` in `direct2d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Factory` in `directwrite` [INFO] [stdout] --> src/main.rs:52:42 [INFO] [stdout] | [INFO] [stdout] 52 | dwrite_factory: directwrite::Factory::new().unwrap(), [INFO] [stdout] | ^^^^^^^ could not find `Factory` in `directwrite` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BrushProperties` [INFO] [stdout] --> src/main.rs:66:56 [INFO] [stdout] | [INFO] [stdout] 66 | fg: rt.create_solid_color_brush(0xf0f0ea, &BrushProperties::default()).unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `BrushProperties` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BrushProperties` [INFO] [stdout] --> src/main.rs:67:56 [INFO] [stdout] | [INFO] [stdout] 67 | bg: rt.create_solid_color_brush(0x272822, &BrushProperties::default()).unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `BrushProperties` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RectF` [INFO] [stdout] --> src/main.rs:81:24 [INFO] [stdout] | [INFO] [stdout] 81 | let rect = RectF::from((0.0, 0.0, size.width, size.height)); [INFO] [stdout] | ^^^^^ use of undeclared type `RectF` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point2F` [INFO] [stdout] --> src/main.rs:83:27 [INFO] [stdout] | [INFO] [stdout] 83 | rt.draw_line(&Point2F::from((10.0, 50.0)), &Point2F::from((90.0, 90.0)), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Point2F` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point2F` [INFO] [stdout] --> src/main.rs:83:57 [INFO] [stdout] | [INFO] [stdout] 83 | rt.draw_line(&Point2F::from((10.0, 50.0)), &Point2F::from((90.0, 90.0)), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Point2F` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BezierSegment` [INFO] [stdout] --> src/main.rs:89:49 [INFO] [stdout] | [INFO] [stdout] 89 | let figure = figure.add_bezier(&BezierSegment::new(Point2F::from((190.0, 70.0)), [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `BezierSegment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point2F` [INFO] [stdout] --> src/main.rs:89:68 [INFO] [stdout] | [INFO] [stdout] 89 | let figure = figure.add_bezier(&BezierSegment::new(Point2F::from((190.0, 70.0)), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Point2F` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point2F` [INFO] [stdout] --> src/main.rs:90:21 [INFO] [stdout] | [INFO] [stdout] 90 | Point2F::from((90.0, 80.0)), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Point2F` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point2F` [INFO] [stdout] --> src/main.rs:91:21 [INFO] [stdout] | [INFO] [stdout] 91 | Point2F::from((180.0, 60.0)))); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Point2F` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BezierSegment` [INFO] [stdout] --> src/main.rs:94:49 [INFO] [stdout] | [INFO] [stdout] 94 | let figure = figure.add_bezier(&BezierSegment::new(Point2F::from((190.0, 90.0)), [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `BezierSegment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point2F` [INFO] [stdout] --> src/main.rs:94:68 [INFO] [stdout] | [INFO] [stdout] 94 | let figure = figure.add_bezier(&BezierSegment::new(Point2F::from((190.0, 90.0)), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Point2F` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point2F` [INFO] [stdout] --> src/main.rs:95:21 [INFO] [stdout] | [INFO] [stdout] 95 | Point2F::from((90.0, 100.0)), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Point2F` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point2F` [INFO] [stdout] --> src/main.rs:96:21 [INFO] [stdout] | [INFO] [stdout] 96 | Point2F::from((180.0, 80.0)))); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Point2F` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RectF` [INFO] [stdout] --> src/main.rs:105:18 [INFO] [stdout] | [INFO] [stdout] 105 | &RectF::from((10.0, 10.0, 300.0, 90.0)), [INFO] [stdout] | ^^^^^ use of undeclared type `RectF` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/hwnd_rt.rs:19:15 [INFO] [stdout] | [INFO] [stdout] 19 | pub hwnd: HWND, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ID2D1Factory1` in this scope [INFO] [stdout] --> src/hwnd_rt.rs:25:42 [INFO] [stdout] | [INFO] [stdout] 25 | fn create_target(self, factory: &mut ID2D1Factory1) -> Result<*mut ID2D1RenderTarget, HRESULT> { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ID2D1RenderTarget` in this scope [INFO] [stdout] --> src/hwnd_rt.rs:25:72 [INFO] [stdout] | [INFO] [stdout] 24 | unsafe impl RenderTargetBacking for HwndRtParams { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 25 | fn create_target(self, factory: &mut ID2D1Factory1) -> Result<*mut ID2D1RenderTarget, 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/hwnd_rt.rs:25:91 [INFO] [stdout] | [INFO] [stdout] 24 | unsafe impl RenderTargetBacking for HwndRtParams { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 25 | fn create_target(self, factory: &mut ID2D1Factory1) -> Result<*mut ID2D1RenderTarget, HRESULT> { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ID2D1HwndRenderTarget` in this scope [INFO] [stdout] --> src/hwnd_rt.rs:27:31 [INFO] [stdout] | [INFO] [stdout] 27 | let mut ptr: *mut ID2D1HwndRenderTarget = null_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D2D1_RENDER_TARGET_PROPERTIES` in this scope [INFO] [stdout] --> src/hwnd_rt.rs:28:25 [INFO] [stdout] | [INFO] [stdout] 28 | let props = D2D1_RENDER_TARGET_PROPERTIES { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `D2D1_RENDER_TARGET_TYPE_DEFAULT` in this scope [INFO] [stdout] --> src/hwnd_rt.rs:29:24 [INFO] [stdout] | [INFO] [stdout] 29 | _type: D2D1_RENDER_TARGET_TYPE_DEFAULT, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D2D1_PIXEL_FORMAT` in this scope [INFO] [stdout] --> src/hwnd_rt.rs:30:30 [INFO] [stdout] | [INFO] [stdout] 30 | pixelFormat: D2D1_PIXEL_FORMAT { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DXGI_FORMAT_UNKNOWN` in this scope [INFO] [stdout] --> src/hwnd_rt.rs:31:29 [INFO] [stdout] | [INFO] [stdout] 31 | format: DXGI_FORMAT_UNKNOWN, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `D2D1_ALPHA_MODE_UNKNOWN` in this scope [INFO] [stdout] --> src/hwnd_rt.rs:32:32 [INFO] [stdout] | [INFO] [stdout] 32 | alphaMode: D2D1_ALPHA_MODE_UNKNOWN, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `D2D1_RENDER_TARGET_USAGE_NONE` in this scope [INFO] [stdout] --> src/hwnd_rt.rs:36:24 [INFO] [stdout] | [INFO] [stdout] 36 | usage: D2D1_RENDER_TARGET_USAGE_NONE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `D2D1_FEATURE_LEVEL_DEFAULT` in this scope [INFO] [stdout] --> src/hwnd_rt.rs:37:27 [INFO] [stdout] | [INFO] [stdout] 37 | minLevel: D2D1_FEATURE_LEVEL_DEFAULT, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D2D1_HWND_RENDER_TARGET_PROPERTIES` in this scope [INFO] [stdout] --> src/hwnd_rt.rs:39:26 [INFO] [stdout] | [INFO] [stdout] 39 | let hprops = D2D1_HWND_RENDER_TARGET_PROPERTIES { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D2D1_SIZE_U` in this scope [INFO] [stdout] --> src/hwnd_rt.rs:41:28 [INFO] [stdout] | [INFO] [stdout] 41 | pixelSize: D2D1_SIZE_U { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `D2D1_PRESENT_OPTIONS_NONE` in this scope [INFO] [stdout] --> src/hwnd_rt.rs:45:33 [INFO] [stdout] | [INFO] [stdout] 45 | presentOptions: D2D1_PRESENT_OPTIONS_NONE, [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/hwnd_rt.rs:53:16 [INFO] [stdout] | [INFO] [stdout] 53 | if SUCCEEDED(hr) { [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/util.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | Hr(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/util.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | impl From for Error { [INFO] [stdout] | - ^^^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HRESULT` in this scope [INFO] [stdout] --> src/util.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | fn from(hr: HRESULT) -> Error { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PROCESS_DPI_AWARENESS` in this scope [INFO] [stdout] --> src/util.rs:37:64 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn dpi_aware() { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 36 | let shcore_lib = Library::new("ShCore.dll").unwrap(); [INFO] [stdout] 37 | let set_aware: Symbol 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/util.rs:37:90 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn dpi_aware() { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 36 | let shcore_lib = Library::new("ShCore.dll").unwrap(); [INFO] [stdout] 37 | let set_aware: Symbol HRESULT>; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PROCESS_SYSTEM_DPI_AWARE` in this scope [INFO] [stdout] --> src/util.rs:44:19 [INFO] [stdout] | [INFO] [stdout] 44 | set_aware(PROCESS_SYSTEM_DPI_AWARE); [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/window.rs:13:33 [INFO] [stdout] | [INFO] [stdout] 13 | fn window_proc(&self, hwnd: HWND, msg: UINT, wparam: WPARAM, lparam: LPARAM) -> Option; [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/window.rs:13:44 [INFO] [stdout] | [INFO] [stdout] 13 | fn window_proc(&self, hwnd: HWND, msg: UINT, wparam: WPARAM, lparam: LPARAM) -> Option; [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/window.rs:13:58 [INFO] [stdout] | [INFO] [stdout] 13 | fn window_proc(&self, hwnd: HWND, msg: UINT, wparam: WPARAM, lparam: LPARAM) -> Option; [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/window.rs:13:74 [INFO] [stdout] | [INFO] [stdout] 13 | fn window_proc(&self, hwnd: HWND, msg: UINT, wparam: WPARAM, lparam: LPARAM) -> Option; [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/window.rs:13:92 [INFO] [stdout] | [INFO] [stdout] 12 | pub trait WndProc { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 13 | fn window_proc(&self, hwnd: HWND, msg: UINT, wparam: WPARAM, lparam: LPARAM) -> Option; [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/window.rs:16:55 [INFO] [stdout] | [INFO] [stdout] 16 | pub unsafe extern "system" fn win_proc_dispatch(hwnd: HWND, msg: UINT, wparam: WPARAM, lparam: LPARAM) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Factory` in `direct2d` [INFO] [stdout] --> src/main.rs:51:36 [INFO] [stdout] | [INFO] [stdout] 51 | d2d_factory: direct2d::Factory::new().unwrap(), [INFO] [stdout] | ^^^^^^^ could not find `Factory` in `direct2d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `UINT` in this scope [INFO] [stdout] --> src/window.rs:16:66 [INFO] [stdout] | [INFO] [stdout] 16 | pub unsafe extern "system" fn win_proc_dispatch(hwnd: HWND, msg: UINT, wparam: WPARAM, lparam: LPARAM) [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/window.rs:16:80 [INFO] [stdout] | [INFO] [stdout] 16 | pub unsafe extern "system" fn win_proc_dispatch(hwnd: HWND, msg: UINT, wparam: WPARAM, lparam: LPARAM) [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/window.rs:16:96 [INFO] [stdout] | [INFO] [stdout] 16 | pub unsafe extern "system" fn win_proc_dispatch(hwnd: HWND, msg: UINT, wparam: WPARAM, 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/window.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | -> LRESULT [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Factory` in `directwrite` [INFO] [stdout] --> src/main.rs:52:42 [INFO] [stdout] | [INFO] [stdout] 52 | dwrite_factory: directwrite::Factory::new().unwrap(), [INFO] [stdout] | ^^^^^^^ could not find `Factory` in `directwrite` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WM_CREATE` in this scope [INFO] [stdout] --> src/window.rs:19:15 [INFO] [stdout] | [INFO] [stdout] 19 | if msg == WM_CREATE { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `CREATESTRUCTW` in this scope [INFO] [stdout] --> src/window.rs:20:49 [INFO] [stdout] | [INFO] [stdout] 20 | let create_struct = &*(lparam as *const CREATESTRUCTW); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowLongPtrW` in this scope [INFO] [stdout] --> src/window.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | SetWindowLongPtrW(hwnd, GWLP_USERDATA, wndproc_ptr as LONG_PTR); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GWLP_USERDATA` in this scope [INFO] [stdout] --> src/window.rs:22:33 [INFO] [stdout] | [INFO] [stdout] 22 | SetWindowLongPtrW(hwnd, GWLP_USERDATA, wndproc_ptr as LONG_PTR); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LONG_PTR` in this scope [INFO] [stdout] --> src/window.rs:22:63 [INFO] [stdout] | [INFO] [stdout] 22 | SetWindowLongPtrW(hwnd, GWLP_USERDATA, wndproc_ptr as LONG_PTR); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetWindowLongPtrW` in this scope [INFO] [stdout] --> src/window.rs:24:23 [INFO] [stdout] | [INFO] [stdout] 24 | let wndproc_ptr = GetWindowLongPtrW(hwnd, GWLP_USERDATA) as *const Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BrushProperties` [INFO] [stdout] --> src/main.rs:66:56 [INFO] [stdout] | [INFO] [stdout] 66 | fg: rt.create_solid_color_brush(0xf0f0ea, &BrushProperties::default()).unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `BrushProperties` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GWLP_USERDATA` in this scope [INFO] [stdout] --> src/window.rs:24:47 [INFO] [stdout] | [INFO] [stdout] 24 | let wndproc_ptr = GetWindowLongPtrW(hwnd, GWLP_USERDATA) as *const Box; [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WM_NCDESTROY` in this scope [INFO] [stdout] --> src/window.rs:33:15 [INFO] [stdout] | [INFO] [stdout] 33 | if msg == WM_NCDESTROY { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowLongPtrW` in this scope [INFO] [stdout] --> src/window.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | SetWindowLongPtrW(hwnd, GWLP_USERDATA, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GWLP_USERDATA` in this scope [INFO] [stdout] --> src/window.rs:35:37 [INFO] [stdout] | [INFO] [stdout] 35 | SetWindowLongPtrW(hwnd, GWLP_USERDATA, 0); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BrushProperties` [INFO] [stdout] --> src/main.rs:67:56 [INFO] [stdout] | [INFO] [stdout] 67 | bg: rt.create_solid_color_brush(0x272822, &BrushProperties::default()).unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `BrushProperties` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DefWindowProcW` in this scope [INFO] [stdout] --> src/window.rs:41:17 [INFO] [stdout] | [INFO] [stdout] 41 | None => DefWindowProcW(hwnd, msg, 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/window.rs:48:20 [INFO] [stdout] | [INFO] [stdout] 48 | dwExStyle: DWORD, lpClassName: LPCWSTR, lpWindowName: LPCWSTR, dwStyle: DWORD, x: c_int, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCWSTR` in this scope [INFO] [stdout] --> src/window.rs:48:40 [INFO] [stdout] | [INFO] [stdout] 48 | dwExStyle: DWORD, lpClassName: LPCWSTR, lpWindowName: LPCWSTR, dwStyle: DWORD, x: c_int, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCWSTR` in this scope [INFO] [stdout] --> src/window.rs:48:63 [INFO] [stdout] | [INFO] [stdout] 48 | dwExStyle: DWORD, lpClassName: LPCWSTR, lpWindowName: LPCWSTR, dwStyle: DWORD, x: c_int, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RectF` [INFO] [stdout] --> src/main.rs:81:24 [INFO] [stdout] | [INFO] [stdout] 81 | let rect = RectF::from((0.0, 0.0, size.width, size.height)); [INFO] [stdout] | ^^^^^ use of undeclared type `RectF` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point2F` [INFO] [stdout] --> src/main.rs:83:27 [INFO] [stdout] | [INFO] [stdout] 83 | rt.draw_line(&Point2F::from((10.0, 50.0)), &Point2F::from((90.0, 90.0)), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Point2F` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point2F` [INFO] [stdout] --> src/main.rs:83:57 [INFO] [stdout] | [INFO] [stdout] 83 | rt.draw_line(&Point2F::from((10.0, 50.0)), &Point2F::from((90.0, 90.0)), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Point2F` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BezierSegment` [INFO] [stdout] --> src/main.rs:89:49 [INFO] [stdout] | [INFO] [stdout] 89 | let figure = figure.add_bezier(&BezierSegment::new(Point2F::from((190.0, 70.0)), [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `BezierSegment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point2F` [INFO] [stdout] --> src/main.rs:89:68 [INFO] [stdout] | [INFO] [stdout] 89 | let figure = figure.add_bezier(&BezierSegment::new(Point2F::from((190.0, 70.0)), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Point2F` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/window.rs:48:81 [INFO] [stdout] | [INFO] [stdout] 48 | dwExStyle: DWORD, lpClassName: LPCWSTR, lpWindowName: LPCWSTR, dwStyle: DWORD, x: c_int, [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/window.rs:49:62 [INFO] [stdout] | [INFO] [stdout] 49 | y: c_int, nWidth: c_int, nHeight: c_int, hWndParent: HWND, hMenu: HMENU, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HMENU` in this scope [INFO] [stdout] --> src/window.rs:49:75 [INFO] [stdout] | [INFO] [stdout] 49 | y: c_int, nWidth: c_int, nHeight: c_int, hWndParent: HWND, hMenu: HMENU, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point2F` [INFO] [stdout] --> src/main.rs:90:21 [INFO] [stdout] | [INFO] [stdout] 90 | Point2F::from((90.0, 80.0)), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Point2F` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stdout] --> src/window.rs:50:20 [INFO] [stdout] | [INFO] [stdout] 50 | hInstance: HINSTANCE, wndproc: Rc>) -> HWND [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/window.rs:50:61 [INFO] [stdout] | [INFO] [stdout] 50 | hInstance: HINSTANCE, wndproc: Rc>) -> HWND [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/window.rs:52:16 [INFO] [stdout] | [INFO] [stdout] 52 | let hwnd = CreateWindowExW(dwExStyle, lpClassName, lpWindowName, dwStyle, x, y, [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/window.rs:53:81 [INFO] [stdout] | [INFO] [stdout] 53 | nWidth, nHeight, hWndParent, hMenu, hInstance, Rc::into_raw(wndproc) as LPVOID); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point2F` [INFO] [stdout] --> src/main.rs:91:21 [INFO] [stdout] | [INFO] [stdout] 91 | Point2F::from((180.0, 60.0)))); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Point2F` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Factory` in crate `direct2d` [INFO] [stdout] --> src/main.rs:42:28 [INFO] [stdout] | [INFO] [stdout] 42 | d2d_factory: direct2d::Factory, [INFO] [stdout] | ^^^^^^^ not found in `direct2d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Factory` in crate `directwrite` [INFO] [stdout] --> src/main.rs:43:34 [INFO] [stdout] | [INFO] [stdout] 43 | dwrite_factory: directwrite::Factory, [INFO] [stdout] | ^^^^^^^ not found in `directwrite` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/main.rs:130:33 [INFO] [stdout] | [INFO] [stdout] 130 | fn window_proc(&self, hwnd: HWND, msg: UINT, _wparam: WPARAM, lparam: LPARAM) -> Option { [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/main.rs:130:44 [INFO] [stdout] | [INFO] [stdout] 130 | fn window_proc(&self, hwnd: HWND, msg: UINT, _wparam: WPARAM, lparam: LPARAM) -> Option { [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/main.rs:130:59 [INFO] [stdout] | [INFO] [stdout] 130 | fn window_proc(&self, hwnd: HWND, msg: UINT, _wparam: WPARAM, lparam: LPARAM) -> Option { [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/main.rs:130:75 [INFO] [stdout] | [INFO] [stdout] 130 | fn window_proc(&self, hwnd: HWND, msg: UINT, _wparam: WPARAM, lparam: LPARAM) -> Option { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BezierSegment` [INFO] [stdout] --> src/main.rs:94:49 [INFO] [stdout] | [INFO] [stdout] 94 | let figure = figure.add_bezier(&BezierSegment::new(Point2F::from((190.0, 90.0)), [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `BezierSegment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LRESULT` in this scope [INFO] [stdout] --> src/main.rs:130:93 [INFO] [stdout] | [INFO] [stdout] 129 | impl WndProc for MainWin { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 130 | fn window_proc(&self, hwnd: HWND, msg: UINT, _wparam: WPARAM, lparam: LPARAM) -> Option { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostQuitMessage` in this scope [INFO] [stdout] --> src/main.rs:134:17 [INFO] [stdout] | [INFO] [stdout] 134 | PostQuitMessage(0); [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/main.rs:140:35 [INFO] [stdout] | [INFO] [stdout] 140 | let mut rect: RECT = mem::uninitialized(); [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/main.rs:141:21 [INFO] [stdout] | [INFO] [stdout] 141 | GetClientRect(hwnd, &mut rect); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point2F` [INFO] [stdout] --> src/main.rs:94:68 [INFO] [stdout] | [INFO] [stdout] 94 | let figure = figure.add_bezier(&BezierSegment::new(Point2F::from((190.0, 90.0)), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Point2F` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ValidateRect` in this scope [INFO] [stdout] --> src/main.rs:149:17 [INFO] [stdout] | [INFO] [stdout] 149 | ValidateRect(hwnd, null_mut()); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D2D1_SIZE_U` in this scope [INFO] [stdout] --> src/main.rs:156:37 [INFO] [stdout] | [INFO] [stdout] 156 | hrt.Resize(&D2D1_SIZE_U { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LOWORD` in this scope [INFO] [stdout] --> src/main.rs:157:36 [INFO] [stdout] | [INFO] [stdout] 157 | ... width: LOWORD(lparam as u32) as u32, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HIWORD` in this scope [INFO] [stdout] --> src/main.rs:158:37 [INFO] [stdout] | [INFO] [stdout] 158 | ... height: HIWORD(lparam as u32) as u32, [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/main.rs:169:28 [INFO] [stdout] | [INFO] [stdout] 169 | fn create_main() -> Result { [INFO] [stdout] | - ^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point2F` [INFO] [stdout] --> src/main.rs:95:21 [INFO] [stdout] | [INFO] [stdout] 95 | Point2F::from((90.0, 100.0)), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Point2F` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LoadIconW` in this scope [INFO] [stdout] --> src/main.rs:172:20 [INFO] [stdout] | [INFO] [stdout] 172 | let icon = LoadIconW(0 as HINSTANCE, IDI_APPLICATION); [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/main.rs:172:35 [INFO] [stdout] | [INFO] [stdout] 172 | let icon = LoadIconW(0 as HINSTANCE, IDI_APPLICATION); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `IDI_APPLICATION` in this scope [INFO] [stdout] --> src/main.rs:172:46 [INFO] [stdout] | [INFO] [stdout] 172 | let icon = LoadIconW(0 as HINSTANCE, IDI_APPLICATION); [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/main.rs:173:22 [INFO] [stdout] | [INFO] [stdout] 173 | let cursor = LoadCursorW(0 as HINSTANCE, IDC_IBEAM); [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/main.rs:173:39 [INFO] [stdout] | [INFO] [stdout] 173 | let cursor = LoadCursorW(0 as HINSTANCE, IDC_IBEAM); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Point2F` [INFO] [stdout] --> src/main.rs:96:21 [INFO] [stdout] | [INFO] [stdout] 96 | Point2F::from((180.0, 80.0)))); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Point2F` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `IDC_IBEAM` in this scope [INFO] [stdout] --> src/main.rs:173:50 [INFO] [stdout] | [INFO] [stdout] 173 | let cursor = LoadCursorW(0 as HINSTANCE, IDC_IBEAM); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateSolidBrush` in this scope [INFO] [stdout] --> src/main.rs:174:21 [INFO] [stdout] | [INFO] [stdout] 174 | let brush = CreateSolidBrush(0xffffff); [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/main.rs:175:19 [INFO] [stdout] | [INFO] [stdout] 175 | let wnd = WNDCLASSW { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stdout] --> src/main.rs:180:29 [INFO] [stdout] | [INFO] [stdout] 180 | hInstance: 0 as HINSTANCE, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCWSTR` in this scope [INFO] [stdout] --> src/main.rs:184:32 [INFO] [stdout] | [INFO] [stdout] 184 | lpszMenuName: 0 as LPCWSTR, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegisterClassW` in this scope [INFO] [stdout] --> src/main.rs:187:26 [INFO] [stdout] | [INFO] [stdout] 187 | let class_atom = RegisterClassW(&wnd); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RectF` [INFO] [stdout] --> src/main.rs:105:18 [INFO] [stdout] | [INFO] [stdout] 105 | &RectF::from((10.0, 10.0, 300.0, 90.0)), [INFO] [stdout] | ^^^^^ use of undeclared type `RectF` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WS_EX_OVERLAPPEDWINDOW` in this scope [INFO] [stdout] --> src/main.rs:194:34 [INFO] [stdout] | [INFO] [stdout] 194 | let hwnd = create_window(WS_EX_OVERLAPPEDWINDOW, class_name.as_ptr(), [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/main.rs:195:34 [INFO] [stdout] | [INFO] [stdout] 195 | class_name.as_ptr(), WS_OVERLAPPEDWINDOW, [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/main.rs:196:13 [INFO] [stdout] | [INFO] [stdout] 196 | CW_USEDEFAULT, CW_USEDEFAULT, width, height, 0 as HWND, 0 as HMENU, 0 as HINSTANCE, [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/main.rs:196:28 [INFO] [stdout] | [INFO] [stdout] 196 | CW_USEDEFAULT, CW_USEDEFAULT, width, height, 0 as HWND, 0 as HMENU, 0 as HINSTANCE, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/main.rs:196:63 [INFO] [stdout] | [INFO] [stdout] 196 | CW_USEDEFAULT, CW_USEDEFAULT, width, height, 0 as HWND, 0 as HMENU, 0 as HINSTANCE, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HMENU` in this scope [INFO] [stdout] --> src/main.rs:196:74 [INFO] [stdout] | [INFO] [stdout] 196 | CW_USEDEFAULT, CW_USEDEFAULT, width, height, 0 as HWND, 0 as HMENU, 0 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/main.rs:196:86 [INFO] [stdout] | [INFO] [stdout] 196 | CW_USEDEFAULT, CW_USEDEFAULT, width, height, 0 as HWND, 0 as HMENU, 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 `ShowWindow` in this scope [INFO] [stdout] --> src/main.rs:209:9 [INFO] [stdout] | [INFO] [stdout] 209 | ShowWindow(hwnd, SW_SHOWNORMAL); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SW_SHOWNORMAL` in this scope [INFO] [stdout] --> src/main.rs:209:26 [INFO] [stdout] | [INFO] [stdout] 209 | ShowWindow(hwnd, SW_SHOWNORMAL); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `UpdateWindow` in this scope [INFO] [stdout] --> src/main.rs:210:9 [INFO] [stdout] | [INFO] [stdout] 210 | UpdateWindow(hwnd); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetMessageW` in this scope [INFO] [stdout] --> src/main.rs:213:24 [INFO] [stdout] | [INFO] [stdout] 213 | let bres = GetMessageW(&mut msg, null_mut(), 0, 0); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `TranslateMessage` in this scope [INFO] [stdout] --> src/main.rs:217:13 [INFO] [stdout] | [INFO] [stdout] 217 | TranslateMessage(&mut msg); [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/main.rs:218:13 [INFO] [stdout] | [INFO] [stdout] 218 | DispatchMessageW(&mut msg); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/window.rs:24:76 [INFO] [stdout] | [INFO] [stdout] 24 | let wndproc_ptr = GetWindowLongPtrW(hwnd, GWLP_USERDATA) as *const Box; [INFO] [stdout] | ^^^^^^^ help: use `dyn`: `dyn WndProc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/window.rs:29:56 [INFO] [stdout] | [INFO] [stdout] 29 | let wndproc = &*(wndproc_ptr as *const Box); [INFO] [stdout] | ^^^^^^^ help: use `dyn`: `dyn WndProc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/window.rs:50:47 [INFO] [stdout] | [INFO] [stdout] 50 | hInstance: HINSTANCE, wndproc: Rc>) -> HWND [INFO] [stdout] | ^^^^^^^ help: use `dyn`: `dyn WndProc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:191:30 [INFO] [stdout] | [INFO] [stdout] 191 | let main_win: Rc> = Rc::new(Box::new(MainWin::new(MainWinState::new()))); [INFO] [stdout] | ^^^^^^^ help: use `dyn`: `dyn WndProc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/main.rs:211:23 [INFO] [stdout] | [INFO] [stdout] 211 | let mut msg = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/main.rs:140:42 [INFO] [stdout] | [INFO] [stdout] 140 | let mut rect: RECT = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/hwnd_rt.rs:19:15 [INFO] [stdout] | [INFO] [stdout] 19 | pub hwnd: HWND, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ID2D1Factory1` in this scope [INFO] [stdout] --> src/hwnd_rt.rs:25:42 [INFO] [stdout] | [INFO] [stdout] 25 | fn create_target(self, factory: &mut ID2D1Factory1) -> Result<*mut ID2D1RenderTarget, HRESULT> { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ID2D1RenderTarget` in this scope [INFO] [stdout] --> src/hwnd_rt.rs:25:72 [INFO] [stdout] | [INFO] [stdout] 24 | unsafe impl RenderTargetBacking for HwndRtParams { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 25 | fn create_target(self, factory: &mut ID2D1Factory1) -> Result<*mut ID2D1RenderTarget, 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/hwnd_rt.rs:25:91 [INFO] [stdout] | [INFO] [stdout] 24 | unsafe impl RenderTargetBacking for HwndRtParams { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 25 | fn create_target(self, factory: &mut ID2D1Factory1) -> Result<*mut ID2D1RenderTarget, HRESULT> { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ID2D1HwndRenderTarget` in this scope [INFO] [stdout] --> src/hwnd_rt.rs:27:31 [INFO] [stdout] | [INFO] [stdout] 27 | let mut ptr: *mut ID2D1HwndRenderTarget = null_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D2D1_RENDER_TARGET_PROPERTIES` in this scope [INFO] [stdout] --> src/hwnd_rt.rs:28:25 [INFO] [stdout] | [INFO] [stdout] 28 | let props = D2D1_RENDER_TARGET_PROPERTIES { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `D2D1_RENDER_TARGET_TYPE_DEFAULT` in this scope [INFO] [stdout] --> src/hwnd_rt.rs:29:24 [INFO] [stdout] | [INFO] [stdout] 29 | _type: D2D1_RENDER_TARGET_TYPE_DEFAULT, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D2D1_PIXEL_FORMAT` in this scope [INFO] [stdout] --> src/hwnd_rt.rs:30:30 [INFO] [stdout] | [INFO] [stdout] 30 | pixelFormat: D2D1_PIXEL_FORMAT { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DXGI_FORMAT_UNKNOWN` in this scope [INFO] [stdout] --> src/hwnd_rt.rs:31:29 [INFO] [stdout] | [INFO] [stdout] 31 | format: DXGI_FORMAT_UNKNOWN, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `D2D1_ALPHA_MODE_UNKNOWN` in this scope [INFO] [stdout] --> src/hwnd_rt.rs:32:32 [INFO] [stdout] | [INFO] [stdout] 32 | alphaMode: D2D1_ALPHA_MODE_UNKNOWN, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `D2D1_RENDER_TARGET_USAGE_NONE` in this scope [INFO] [stdout] --> src/hwnd_rt.rs:36:24 [INFO] [stdout] | [INFO] [stdout] 36 | usage: D2D1_RENDER_TARGET_USAGE_NONE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `D2D1_FEATURE_LEVEL_DEFAULT` in this scope [INFO] [stdout] --> src/hwnd_rt.rs:37:27 [INFO] [stdout] | [INFO] [stdout] 37 | minLevel: D2D1_FEATURE_LEVEL_DEFAULT, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D2D1_HWND_RENDER_TARGET_PROPERTIES` in this scope [INFO] [stdout] --> src/hwnd_rt.rs:39:26 [INFO] [stdout] | [INFO] [stdout] 39 | let hprops = D2D1_HWND_RENDER_TARGET_PROPERTIES { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D2D1_SIZE_U` in this scope [INFO] [stdout] --> src/hwnd_rt.rs:41:28 [INFO] [stdout] | [INFO] [stdout] 41 | pixelSize: D2D1_SIZE_U { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `D2D1_PRESENT_OPTIONS_NONE` in this scope [INFO] [stdout] --> src/hwnd_rt.rs:45:33 [INFO] [stdout] | [INFO] [stdout] 45 | presentOptions: D2D1_PRESENT_OPTIONS_NONE, [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/hwnd_rt.rs:53:16 [INFO] [stdout] | [INFO] [stdout] 53 | if SUCCEEDED(hr) { [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/util.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | Hr(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/util.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | impl From for Error { [INFO] [stdout] | - ^^^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HRESULT` in this scope [INFO] [stdout] --> src/util.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | fn from(hr: HRESULT) -> Error { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PROCESS_DPI_AWARENESS` in this scope [INFO] [stdout] --> src/util.rs:37:64 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn dpi_aware() { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 36 | let shcore_lib = Library::new("ShCore.dll").unwrap(); [INFO] [stdout] 37 | let set_aware: Symbol 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/util.rs:37:90 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn dpi_aware() { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 36 | let shcore_lib = Library::new("ShCore.dll").unwrap(); [INFO] [stdout] 37 | let set_aware: Symbol HRESULT>; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PROCESS_SYSTEM_DPI_AWARE` in this scope [INFO] [stdout] --> src/util.rs:44:19 [INFO] [stdout] | [INFO] [stdout] 44 | set_aware(PROCESS_SYSTEM_DPI_AWARE); [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/window.rs:13:33 [INFO] [stdout] | [INFO] [stdout] 13 | fn window_proc(&self, hwnd: HWND, msg: UINT, wparam: WPARAM, lparam: LPARAM) -> Option; [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/window.rs:13:44 [INFO] [stdout] | [INFO] [stdout] 13 | fn window_proc(&self, hwnd: HWND, msg: UINT, wparam: WPARAM, lparam: LPARAM) -> Option; [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/window.rs:13:58 [INFO] [stdout] | [INFO] [stdout] 13 | fn window_proc(&self, hwnd: HWND, msg: UINT, wparam: WPARAM, lparam: LPARAM) -> Option; [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/window.rs:13:74 [INFO] [stdout] | [INFO] [stdout] 13 | fn window_proc(&self, hwnd: HWND, msg: UINT, wparam: WPARAM, lparam: LPARAM) -> Option; [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/window.rs:13:92 [INFO] [stdout] | [INFO] [stdout] 12 | pub trait WndProc { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 13 | fn window_proc(&self, hwnd: HWND, msg: UINT, wparam: WPARAM, lparam: LPARAM) -> Option; [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/window.rs:16:55 [INFO] [stdout] | [INFO] [stdout] 16 | pub unsafe extern "system" fn win_proc_dispatch(hwnd: HWND, msg: UINT, wparam: WPARAM, lparam: LPARAM) [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/window.rs:16:66 [INFO] [stdout] | [INFO] [stdout] 16 | pub unsafe extern "system" fn win_proc_dispatch(hwnd: HWND, msg: UINT, wparam: WPARAM, lparam: LPARAM) [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/window.rs:16:80 [INFO] [stdout] | [INFO] [stdout] 16 | pub unsafe extern "system" fn win_proc_dispatch(hwnd: HWND, msg: UINT, wparam: WPARAM, lparam: LPARAM) [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/window.rs:16:96 [INFO] [stdout] | [INFO] [stdout] 16 | pub unsafe extern "system" fn win_proc_dispatch(hwnd: HWND, msg: UINT, wparam: WPARAM, 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/window.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | -> LRESULT [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WM_CREATE` in this scope [INFO] [stdout] --> src/window.rs:19:15 [INFO] [stdout] | [INFO] [stdout] 19 | if msg == WM_CREATE { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `CREATESTRUCTW` in this scope [INFO] [stdout] --> src/window.rs:20:49 [INFO] [stdout] | [INFO] [stdout] 20 | let create_struct = &*(lparam as *const CREATESTRUCTW); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowLongPtrW` in this scope [INFO] [stdout] --> src/window.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | SetWindowLongPtrW(hwnd, GWLP_USERDATA, wndproc_ptr as LONG_PTR); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GWLP_USERDATA` in this scope [INFO] [stdout] --> src/window.rs:22:33 [INFO] [stdout] | [INFO] [stdout] 22 | SetWindowLongPtrW(hwnd, GWLP_USERDATA, wndproc_ptr as LONG_PTR); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LONG_PTR` in this scope [INFO] [stdout] --> src/window.rs:22:63 [INFO] [stdout] | [INFO] [stdout] 22 | SetWindowLongPtrW(hwnd, GWLP_USERDATA, wndproc_ptr as LONG_PTR); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetWindowLongPtrW` in this scope [INFO] [stdout] --> src/window.rs:24:23 [INFO] [stdout] | [INFO] [stdout] 24 | let wndproc_ptr = GetWindowLongPtrW(hwnd, GWLP_USERDATA) as *const Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GWLP_USERDATA` in this scope [INFO] [stdout] --> src/window.rs:24:47 [INFO] [stdout] | [INFO] [stdout] 24 | let wndproc_ptr = GetWindowLongPtrW(hwnd, GWLP_USERDATA) as *const Box; [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 135 previous errors; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0425, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WM_NCDESTROY` in this scope [INFO] [stdout] --> src/window.rs:33:15 [INFO] [stdout] | [INFO] [stdout] 33 | if msg == WM_NCDESTROY { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowLongPtrW` in this scope [INFO] [stdout] --> src/window.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | SetWindowLongPtrW(hwnd, GWLP_USERDATA, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GWLP_USERDATA` in this scope [INFO] [stdout] --> src/window.rs:35:37 [INFO] [stdout] | [INFO] [stdout] 35 | SetWindowLongPtrW(hwnd, GWLP_USERDATA, 0); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DefWindowProcW` in this scope [INFO] [stdout] --> src/window.rs:41:17 [INFO] [stdout] | [INFO] [stdout] 41 | None => DefWindowProcW(hwnd, msg, 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/window.rs:48:20 [INFO] [stdout] | [INFO] [stdout] 48 | dwExStyle: DWORD, lpClassName: LPCWSTR, lpWindowName: LPCWSTR, dwStyle: DWORD, x: c_int, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCWSTR` in this scope [INFO] [stdout] --> src/window.rs:48:40 [INFO] [stdout] | [INFO] [stdout] 48 | dwExStyle: DWORD, lpClassName: LPCWSTR, lpWindowName: LPCWSTR, dwStyle: DWORD, x: c_int, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCWSTR` in this scope [INFO] [stdout] --> src/window.rs:48:63 [INFO] [stdout] | [INFO] [stdout] 48 | dwExStyle: DWORD, lpClassName: LPCWSTR, lpWindowName: LPCWSTR, dwStyle: DWORD, x: c_int, [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/window.rs:48:81 [INFO] [stdout] | [INFO] [stdout] 48 | dwExStyle: DWORD, lpClassName: LPCWSTR, lpWindowName: LPCWSTR, dwStyle: DWORD, x: c_int, [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/window.rs:49:62 [INFO] [stdout] | [INFO] [stdout] 49 | y: c_int, nWidth: c_int, nHeight: c_int, hWndParent: HWND, hMenu: HMENU, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HMENU` in this scope [INFO] [stdout] --> src/window.rs:49:75 [INFO] [stdout] | [INFO] [stdout] 49 | y: c_int, nWidth: c_int, nHeight: c_int, hWndParent: HWND, hMenu: HMENU, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stdout] --> src/window.rs:50:20 [INFO] [stdout] | [INFO] [stdout] 50 | hInstance: HINSTANCE, wndproc: Rc>) -> HWND [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/window.rs:50:61 [INFO] [stdout] | [INFO] [stdout] 50 | hInstance: HINSTANCE, wndproc: Rc>) -> HWND [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/window.rs:52:16 [INFO] [stdout] | [INFO] [stdout] 52 | let hwnd = CreateWindowExW(dwExStyle, lpClassName, lpWindowName, dwStyle, x, y, [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/window.rs:53:81 [INFO] [stdout] | [INFO] [stdout] 53 | nWidth, nHeight, hWndParent, hMenu, hInstance, Rc::into_raw(wndproc) as LPVOID); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Factory` in crate `direct2d` [INFO] [stdout] --> src/main.rs:42:28 [INFO] [stdout] | [INFO] [stdout] 42 | d2d_factory: direct2d::Factory, [INFO] [stdout] | ^^^^^^^ not found in `direct2d` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `d2d1test-rs` [INFO] [stdout] error[E0412]: cannot find type `Factory` in crate `directwrite` [INFO] [stdout] --> src/main.rs:43:34 [INFO] [stdout] | [INFO] [stdout] 43 | dwrite_factory: directwrite::Factory, [INFO] [stdout] | ^^^^^^^ not found in `directwrite` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/main.rs:130:33 [INFO] [stdout] | [INFO] [stdout] 130 | fn window_proc(&self, hwnd: HWND, msg: UINT, _wparam: WPARAM, lparam: LPARAM) -> Option { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stdout] error[E0412]: cannot find type `UINT` in this scope [INFO] [stdout] --> src/main.rs:130:44 [INFO] [stdout] | [INFO] [stdout] 130 | fn window_proc(&self, hwnd: HWND, msg: UINT, _wparam: WPARAM, lparam: LPARAM) -> Option { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0412]: cannot find type `WPARAM` in this scope [INFO] [stdout] --> src/main.rs:130:59 [INFO] [stdout] | [INFO] [stdout] 130 | fn window_proc(&self, hwnd: HWND, msg: UINT, _wparam: WPARAM, lparam: LPARAM) -> Option { [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/main.rs:130:75 [INFO] [stdout] | [INFO] [stdout] 130 | fn window_proc(&self, hwnd: HWND, msg: UINT, _wparam: WPARAM, lparam: LPARAM) -> Option { [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/main.rs:130:93 [INFO] [stdout] | [INFO] [stdout] 129 | impl WndProc for MainWin { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 130 | fn window_proc(&self, hwnd: HWND, msg: UINT, _wparam: WPARAM, lparam: LPARAM) -> Option { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostQuitMessage` in this scope [INFO] [stdout] --> src/main.rs:134:17 [INFO] [stdout] | [INFO] [stdout] 134 | PostQuitMessage(0); [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/main.rs:140:35 [INFO] [stdout] | [INFO] [stdout] 140 | let mut rect: RECT = mem::uninitialized(); [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/main.rs:141:21 [INFO] [stdout] | [INFO] [stdout] 141 | GetClientRect(hwnd, &mut rect); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ValidateRect` in this scope [INFO] [stdout] --> src/main.rs:149:17 [INFO] [stdout] | [INFO] [stdout] 149 | ValidateRect(hwnd, null_mut()); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D2D1_SIZE_U` in this scope [INFO] [stdout] --> src/main.rs:156:37 [INFO] [stdout] | [INFO] [stdout] 156 | hrt.Resize(&D2D1_SIZE_U { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LOWORD` in this scope [INFO] [stdout] --> src/main.rs:157:36 [INFO] [stdout] | [INFO] [stdout] 157 | ... width: LOWORD(lparam as u32) as u32, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HIWORD` in this scope [INFO] [stdout] --> src/main.rs:158:37 [INFO] [stdout] | [INFO] [stdout] 158 | ... height: HIWORD(lparam as u32) as u32, [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/main.rs:169:28 [INFO] [stdout] | [INFO] [stdout] 169 | fn create_main() -> Result { [INFO] [stdout] | - ^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LoadIconW` in this scope [INFO] [stdout] --> src/main.rs:172:20 [INFO] [stdout] | [INFO] [stdout] 172 | let icon = LoadIconW(0 as HINSTANCE, IDI_APPLICATION); [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/main.rs:172:35 [INFO] [stdout] | [INFO] [stdout] 172 | let icon = LoadIconW(0 as HINSTANCE, IDI_APPLICATION); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `IDI_APPLICATION` in this scope [INFO] [stdout] --> src/main.rs:172:46 [INFO] [stdout] | [INFO] [stdout] 172 | let icon = LoadIconW(0 as HINSTANCE, IDI_APPLICATION); [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/main.rs:173:22 [INFO] [stdout] | [INFO] [stdout] 173 | let cursor = LoadCursorW(0 as HINSTANCE, IDC_IBEAM); [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/main.rs:173:39 [INFO] [stdout] | [INFO] [stdout] 173 | let cursor = LoadCursorW(0 as HINSTANCE, IDC_IBEAM); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `IDC_IBEAM` in this scope [INFO] [stdout] --> src/main.rs:173:50 [INFO] [stdout] | [INFO] [stdout] 173 | let cursor = LoadCursorW(0 as HINSTANCE, IDC_IBEAM); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateSolidBrush` in this scope [INFO] [stdout] --> src/main.rs:174:21 [INFO] [stdout] | [INFO] [stdout] 174 | let brush = CreateSolidBrush(0xffffff); [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/main.rs:175:19 [INFO] [stdout] | [INFO] [stdout] 175 | let wnd = WNDCLASSW { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HINSTANCE` in this scope [INFO] [stdout] --> src/main.rs:180:29 [INFO] [stdout] | [INFO] [stdout] 180 | hInstance: 0 as HINSTANCE, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCWSTR` in this scope [INFO] [stdout] --> src/main.rs:184:32 [INFO] [stdout] | [INFO] [stdout] 184 | lpszMenuName: 0 as LPCWSTR, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegisterClassW` in this scope [INFO] [stdout] --> src/main.rs:187:26 [INFO] [stdout] | [INFO] [stdout] 187 | let class_atom = RegisterClassW(&wnd); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WS_EX_OVERLAPPEDWINDOW` in this scope [INFO] [stdout] --> src/main.rs:194:34 [INFO] [stdout] | [INFO] [stdout] 194 | let hwnd = create_window(WS_EX_OVERLAPPEDWINDOW, class_name.as_ptr(), [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/main.rs:195:34 [INFO] [stdout] | [INFO] [stdout] 195 | class_name.as_ptr(), WS_OVERLAPPEDWINDOW, [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/main.rs:196:13 [INFO] [stdout] | [INFO] [stdout] 196 | CW_USEDEFAULT, CW_USEDEFAULT, width, height, 0 as HWND, 0 as HMENU, 0 as HINSTANCE, [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/main.rs:196:28 [INFO] [stdout] | [INFO] [stdout] 196 | CW_USEDEFAULT, CW_USEDEFAULT, width, height, 0 as HWND, 0 as HMENU, 0 as HINSTANCE, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/main.rs:196:63 [INFO] [stdout] | [INFO] [stdout] 196 | CW_USEDEFAULT, CW_USEDEFAULT, width, height, 0 as HWND, 0 as HMENU, 0 as HINSTANCE, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HMENU` in this scope [INFO] [stdout] --> src/main.rs:196:74 [INFO] [stdout] | [INFO] [stdout] 196 | CW_USEDEFAULT, CW_USEDEFAULT, width, height, 0 as HWND, 0 as HMENU, 0 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/main.rs:196:86 [INFO] [stdout] | [INFO] [stdout] 196 | CW_USEDEFAULT, CW_USEDEFAULT, width, height, 0 as HWND, 0 as HMENU, 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 `ShowWindow` in this scope [INFO] [stdout] --> src/main.rs:209:9 [INFO] [stdout] | [INFO] [stdout] 209 | ShowWindow(hwnd, SW_SHOWNORMAL); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SW_SHOWNORMAL` in this scope [INFO] [stdout] --> src/main.rs:209:26 [INFO] [stdout] | [INFO] [stdout] 209 | ShowWindow(hwnd, SW_SHOWNORMAL); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `UpdateWindow` in this scope [INFO] [stdout] --> src/main.rs:210:9 [INFO] [stdout] | [INFO] [stdout] 210 | UpdateWindow(hwnd); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetMessageW` in this scope [INFO] [stdout] --> src/main.rs:213:24 [INFO] [stdout] | [INFO] [stdout] 213 | let bres = GetMessageW(&mut msg, null_mut(), 0, 0); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `TranslateMessage` in this scope [INFO] [stdout] --> src/main.rs:217:13 [INFO] [stdout] | [INFO] [stdout] 217 | TranslateMessage(&mut msg); [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/main.rs:218:13 [INFO] [stdout] | [INFO] [stdout] 218 | DispatchMessageW(&mut msg); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/window.rs:24:76 [INFO] [stdout] | [INFO] [stdout] 24 | let wndproc_ptr = GetWindowLongPtrW(hwnd, GWLP_USERDATA) as *const Box; [INFO] [stdout] | ^^^^^^^ help: use `dyn`: `dyn WndProc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/window.rs:29:56 [INFO] [stdout] | [INFO] [stdout] 29 | let wndproc = &*(wndproc_ptr as *const Box); [INFO] [stdout] | ^^^^^^^ help: use `dyn`: `dyn WndProc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/window.rs:50:47 [INFO] [stdout] | [INFO] [stdout] 50 | hInstance: HINSTANCE, wndproc: Rc>) -> HWND [INFO] [stdout] | ^^^^^^^ help: use `dyn`: `dyn WndProc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:191:30 [INFO] [stdout] | [INFO] [stdout] 191 | let main_win: Rc> = Rc::new(Box::new(MainWin::new(MainWinState::new()))); [INFO] [stdout] | ^^^^^^^ help: use `dyn`: `dyn WndProc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/main.rs:211:23 [INFO] [stdout] | [INFO] [stdout] 211 | let mut msg = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/main.rs:140:42 [INFO] [stdout] | [INFO] [stdout] 140 | let mut rect: RECT = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 135 previous errors; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0425, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "ec9557aeaff714333353633c1401f3d5d15db43a88845120870ee53617570f27", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ec9557aeaff714333353633c1401f3d5d15db43a88845120870ee53617570f27", kill_on_drop: false }` [INFO] [stdout] ec9557aeaff714333353633c1401f3d5d15db43a88845120870ee53617570f27