[INFO] cloning repository https://github.com/Damezuma/dm-gui-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Damezuma/dm-gui-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDamezuma%2Fdm-gui-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDamezuma%2Fdm-gui-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7164f19558ecb721e1180c10c8425056d2a21e99 [INFO] checking Damezuma/dm-gui-rs against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDamezuma%2Fdm-gui-rs" "/workspace/builds/worker-13/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-13/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Damezuma/dm-gui-rs on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Damezuma/dm-gui-rs [INFO] finished tweaking git repo https://github.com/Damezuma/dm-gui-rs [INFO] tweaked toml for git repo https://github.com/Damezuma/dm-gui-rs written to /workspace/builds/worker-13/source/Cargo.toml [INFO] crate git repo https://github.com/Damezuma/dm-gui-rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] cfe1d80f57a7dd70efef1f8e7b2a95426cdffae782c12f943ee298166543b8aa [INFO] running `Command { std: "docker" "start" "-a" "cfe1d80f57a7dd70efef1f8e7b2a95426cdffae782c12f943ee298166543b8aa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cfe1d80f57a7dd70efef1f8e7b2a95426cdffae782c12f943ee298166543b8aa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cfe1d80f57a7dd70efef1f8e7b2a95426cdffae782c12f943ee298166543b8aa", kill_on_drop: false }` [INFO] [stdout] cfe1d80f57a7dd70efef1f8e7b2a95426cdffae782c12f943ee298166543b8aa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7da4062e84d2330156693ac773c1817d3d31afa39559ffe5d9eb6fefe8c08dba [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" "7da4062e84d2330156693ac773c1817d3d31afa39559ffe5d9eb6fefe8c08dba", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling winapi-build v0.1.1 [INFO] [stderr] Checking winapi v0.2.8 [INFO] [stderr] Compiling kernel32-sys v0.2.2 [INFO] [stderr] Compiling user32-sys v0.2.0 [INFO] [stderr] Checking dm-gui-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `winapi::windef` [INFO] [stdout] --> src/main.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::windef::{HWND,RECT}; [INFO] [stdout] | ^^^^^^ could not find `windef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::minwindef` [INFO] [stdout] --> src/main.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::minwindef::HMODULE; [INFO] [stdout] | ^^^^^^^^^ could not find `minwindef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `user32::GetWindowRect` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use user32::GetWindowRect; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ no `GetWindowRect` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `winapi::LRESULT`, `winapi::LPARAM`, `winapi::WPARAM`, `winapi::UINT`, `winapi::LPCWSTR`, `winapi::HBRUSH`, `winapi::HINSTANCE`, `winapi::HICON`, `winapi::HCURSOR`, `winapi::HMENU`, `winapi::SW_SHOWNORMAL`, `winapi::DWORD`, `winapi::CW_USEDEFAULT`, `winapi::WS_EX_CLIENTEDGE` [INFO] [stdout] --> src/main.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | use winapi::{LRESULT,LPARAM,WPARAM,UINT,LPCWSTR,HBRUSH,HINSTANCE,HICON,HCURSOR,HMENU,SW_SHOWNORMAL,DWORD,CW_USEDEFAULT,WS_EX_CLIENTEDGE}; [INFO] [stdout] | ^^^^^^^ ^^^^^^ ^^^^^^ ^^^^ ^^^^^^^ ^^^^^^ ^^^^^^^^^ ^^^^^ ^^^^^^^ ^^^^^ ^^^^^^^^^^^^^ ^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | | | | | | | | | [INFO] [stdout] | | | | | | | | | | no `HMENU` in the root [INFO] [stdout] | | | | | | | | | no `HCURSOR` in the root [INFO] [stdout] | | | | | | | | no `HICON` in the root [INFO] [stdout] | | | | | | | no `HINSTANCE` in the root [INFO] [stdout] | | | | | | no `HBRUSH` in the root [INFO] [stdout] | | | | | no `LPCWSTR` in the root [INFO] [stdout] | | | | no `UINT` in the root [INFO] [stdout] | | | no `WPARAM` in the root [INFO] [stdout] | | no `LPARAM` in the root [INFO] [stdout] | no `LRESULT` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/main.rs:16:14 [INFO] [stdout] | [INFO] [stdout] 16 | use std::os::windows::ffi::OsStrExt; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::winuser` [INFO] [stdout] --> src/main.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::winuser::{WS_OVERLAPPEDWINDOW,WS_VISIBLE,WNDCLASSW}; [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::windef` [INFO] [stdout] --> src/main.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::windef::{HWND,RECT}; [INFO] [stdout] | ^^^^^^ could not find `windef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::minwindef` [INFO] [stdout] --> src/main.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::minwindef::HMODULE; [INFO] [stdout] | ^^^^^^^^^ could not find `minwindef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:211:21 [INFO] [stdout] | [INFO] [stdout] 211 | winapi::winuser::WM_COMMAND=>{ [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:222:21 [INFO] [stdout] | [INFO] [stdout] 222 | winapi::winuser::WM_PAINT=>{ [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:233:21 [INFO] [stdout] | [INFO] [stdout] 233 | winapi::winuser::WM_MOUSEMOVE=>{ [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windowsx` in `winapi` [INFO] [stdout] --> src/main.rs:234:33 [INFO] [stdout] | [INFO] [stdout] 234 | let x = winapi::windowsx::GET_X_LPARAM(lparam); [INFO] [stdout] | ^^^^^^^^ could not find `windowsx` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windowsx` in `winapi` [INFO] [stdout] --> src/main.rs:235:33 [INFO] [stdout] | [INFO] [stdout] 235 | let y = winapi::windowsx::GET_Y_LPARAM(lparam); [INFO] [stdout] | ^^^^^^^^ could not find `windowsx` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:348:106 [INFO] [stdout] | [INFO] [stdout] 348 | user32::SetWindowPos(self.hwnd, 0 as HWND, 0,0, size.get_width(), size.get_height(), winapi::winuser::SWP_NOMOVE); [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:353:97 [INFO] [stdout] | [INFO] [stdout] 353 | user32::SetWindowPos(self.hwnd, 0 as HWND, pos.get_x(), pos.get_y() , 0, 0, winapi::winuser::SWP_NOSIZE); [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `user32::GetWindowRect` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use user32::GetWindowRect; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ no `GetWindowRect` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:369:91 [INFO] [stdout] | [INFO] [stdout] 369 | ... user32::CreateWindowExW(0,TEXT("button").as_ptr(),TEXT(text).as_ptr(),winapi::winuser::WS_CHILD | winapi::winuser::BS_PUSHBUTTON, 0... [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `winapi::LRESULT`, `winapi::LPARAM`, `winapi::WPARAM`, `winapi::UINT`, `winapi::LPCWSTR`, `winapi::HBRUSH`, `winapi::HINSTANCE`, `winapi::HICON`, `winapi::HCURSOR`, `winapi::HMENU`, `winapi::SW_SHOWNORMAL`, `winapi::DWORD`, `winapi::CW_USEDEFAULT`, `winapi::WS_EX_CLIENTEDGE` [INFO] [stdout] --> src/main.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | use winapi::{LRESULT,LPARAM,WPARAM,UINT,LPCWSTR,HBRUSH,HINSTANCE,HICON,HCURSOR,HMENU,SW_SHOWNORMAL,DWORD,CW_USEDEFAULT,WS_EX_CLIENTEDGE}; [INFO] [stdout] | ^^^^^^^ ^^^^^^ ^^^^^^ ^^^^ ^^^^^^^ ^^^^^^ ^^^^^^^^^ ^^^^^ ^^^^^^^ ^^^^^ ^^^^^^^^^^^^^ ^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | | | | | | | | | [INFO] [stdout] | | | | | | | | | | no `HMENU` in the root [INFO] [stdout] | | | | | | | | | no `HCURSOR` in the root [INFO] [stdout] | | | | | | | | no `HICON` in the root [INFO] [stdout] | | | | | | | no `HINSTANCE` in the root [INFO] [stdout] | | | | | | no `HBRUSH` in the root [INFO] [stdout] | | | | | no `LPCWSTR` in the root [INFO] [stdout] | | | | no `UINT` in the root [INFO] [stdout] | | | no `WPARAM` in the root [INFO] [stdout] | | no `LPARAM` in the root [INFO] [stdout] | no `LRESULT` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/main.rs:16:14 [INFO] [stdout] | [INFO] [stdout] 16 | 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 `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:369:119 [INFO] [stdout] | [INFO] [stdout] 369 | ...as_ptr(),winapi::winuser::WS_CHILD | winapi::winuser::BS_PUSHBUTTON, 0,0,50,100,parent_hwnd,0 as HMENU, 0 as HINSTANCE, std::ptr::null... [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::winuser` [INFO] [stdout] --> src/main.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::winuser::{WS_OVERLAPPEDWINDOW,WS_VISIBLE,WNDCLASSW}; [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:423:90 [INFO] [stdout] | [INFO] [stdout] 423 | ... user32::CreateWindowExW(0,TEXT("edit").as_ptr(),std::ptr::null_mut(),winapi::winuser::WS_CHILD | winapi::winuser::WS_BORDER, 0,0,50... [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:423:118 [INFO] [stdout] | [INFO] [stdout] 423 | ...ll_mut(),winapi::winuser::WS_CHILD | winapi::winuser::WS_BORDER, 0,0,50,100,parent_hwnd,0 as HMENU, 0 as HINSTANCE, std::ptr::null_mut()) [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:473:16 [INFO] [stdout] | [INFO] [stdout] 473 | if winapi::winuser::WM_DESTROY == msg{ [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:550:66 [INFO] [stdout] | [INFO] [stdout] 550 | hIcon: user32::LoadIconW(0 as HINSTANCE, winapi::winuser::IDI_APPLICATION), [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:551:70 [INFO] [stdout] | [INFO] [stdout] 551 | hCursor: user32::LoadCursorW(0 as HINSTANCE, winapi::winuser::IDI_APPLICATION), [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:571:35 [INFO] [stdout] | [INFO] [stdout] 571 | let mut msg = winapi::winuser::MSG { [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windef` in `winapi` [INFO] [stdout] --> src/main.rs:577:30 [INFO] [stdout] | [INFO] [stdout] 577 | pt : winapi::windef::POINT { x: 0, y: 0, }, [INFO] [stdout] | ^^^^^^ could not find `windef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:586:43 [INFO] [stdout] | [INFO] [stdout] 586 | if msg.message == winapi::winuser::WM_QUIT { [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetConsoleWindow` in crate `kernel32` [INFO] [stdout] --> src/main.rs:34:19 [INFO] [stdout] | [INFO] [stdout] 34 | kernel32::GetConsoleWindow() [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in `kernel32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ShowWindow` in crate `user32` [INFO] [stdout] --> src/main.rs:39:21 [INFO] [stdout] | [INFO] [stdout] 39 | user32::ShowWindow (window, winapi::SW_HIDE) [INFO] [stdout] | ^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SW_HIDE` in crate `winapi` [INFO] [stdout] --> src/main.rs:39:49 [INFO] [stdout] | [INFO] [stdout] 39 | user32::ShowWindow (window, winapi::SW_HIDE) [INFO] [stdout] | ^^^^^^^ not found in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateWindowExW` in crate `user32` [INFO] [stdout] --> src/main.rs:164:21 [INFO] [stdout] | [INFO] [stdout] 164 | user32::CreateWindowExW(0, class_name.as_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in crate `winapi` [INFO] [stdout] --> src/main.rs:180:73 [INFO] [stdout] | [INFO] [stdout] 180 | let hi = std::mem::transmute::<&EventHandlable,[winapi::HANDLE; 2]>(win.as_ref()); [INFO] [stdout] | ^^^^^^ not found in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetPropW` in crate `user32` [INFO] [stdout] --> src/main.rs:181:25 [INFO] [stdout] | [INFO] [stdout] 181 | user32::SetPropW(h_wnd_window,TEXT("a").as_ptr(), hi[0]); [INFO] [stdout] | ^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetPropW` in crate `user32` [INFO] [stdout] --> src/main.rs:182:25 [INFO] [stdout] | [INFO] [stdout] 182 | user32::SetPropW(h_wnd_window,TEXT("b").as_ptr(), hi[1]); [INFO] [stdout] | ^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `MessageBoxW` in crate `user32` [INFO] [stdout] --> src/main.rs:193:21 [INFO] [stdout] | [INFO] [stdout] 193 | user32::MessageBoxW(self.get_hwnd(), TEXT(text).as_ptr(), TEXT(title).as_ptr(), 0); [INFO] [stdout] | ^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ShowWindow` in crate `user32` [INFO] [stdout] --> src/main.rs:333:12 [INFO] [stdout] | [INFO] [stdout] 333 | user32::ShowWindow(self.hwnd, winapi::SW_SHOW); [INFO] [stdout] | ^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SW_SHOW` in crate `winapi` [INFO] [stdout] --> src/main.rs:333:42 [INFO] [stdout] | [INFO] [stdout] 333 | user32::ShowWindow(self.hwnd, winapi::SW_SHOW); [INFO] [stdout] | ^^^^^^^ not found in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowPos` in crate `user32` [INFO] [stdout] --> src/main.rs:348:21 [INFO] [stdout] | [INFO] [stdout] 348 | user32::SetWindowPos(self.hwnd, 0 as HWND, 0,0, size.get_width(), size.get_height(), winapi::winuser::SWP_NOMOVE); [INFO] [stdout] | ^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowPos` in crate `user32` [INFO] [stdout] --> src/main.rs:353:21 [INFO] [stdout] | [INFO] [stdout] 353 | user32::SetWindowPos(self.hwnd, 0 as HWND, pos.get_x(), pos.get_y() , 0, 0, winapi::winuser::SWP_NOSIZE); [INFO] [stdout] | ^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateWindowExW` in crate `user32` [INFO] [stdout] --> src/main.rs:369:21 [INFO] [stdout] | [INFO] [stdout] 369 | ... user32::CreateWindowExW(0,TEXT("button").as_ptr(),TEXT(text).as_ptr(),winapi::winuser::WS_CHILD | winapi::winuser::BS_PUSHBUTTON, 0... [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowTextW` in crate `user32` [INFO] [stdout] --> src/main.rs:388:21 [INFO] [stdout] | [INFO] [stdout] 388 | user32::SetWindowTextW(self.control.get_hwnd(), TEXT(title).as_ptr()); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateWindowExW` in crate `user32` [INFO] [stdout] --> src/main.rs:423:21 [INFO] [stdout] | [INFO] [stdout] 423 | ... user32::CreateWindowExW(0,TEXT("edit").as_ptr(),std::ptr::null_mut(),winapi::winuser::WS_CHILD | winapi::winuser::WS_BORDER, 0,0,50... [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in crate `winapi` [INFO] [stdout] --> src/main.rs:464:28 [INFO] [stdout] | [INFO] [stdout] 464 | let mut t:[winapi::HANDLE;2]=[ [INFO] [stdout] | ^^^^^^ not found in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetPropW` in crate `user32` [INFO] [stdout] --> src/main.rs:465:21 [INFO] [stdout] | [INFO] [stdout] 465 | user32::GetPropW(h_wnd, TEXT("a").as_ptr()), [INFO] [stdout] | ^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetPropW` in crate `user32` [INFO] [stdout] --> src/main.rs:466:21 [INFO] [stdout] | [INFO] [stdout] 466 | user32::GetPropW(h_wnd, TEXT("b").as_ptr()) [INFO] [stdout] | ^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DefWindowProcW` in crate `user32` [INFO] [stdout] --> src/main.rs:469:28 [INFO] [stdout] | [INFO] [stdout] 469 | return user32::DefWindowProcW(h_wnd, msg, w_param, l_param); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in crate `winapi` [INFO] [stdout] --> src/main.rs:471:40 [INFO] [stdout] | [INFO] [stdout] 471 | std::mem::transmute::<[winapi::HANDLE;2],&EventHandlable>(t) [INFO] [stdout] | ^^^^^^ not found in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DefWindowProcW` in crate `user32` [INFO] [stdout] --> src/main.rs:493:24 [INFO] [stdout] | [INFO] [stdout] 493 | return user32::DefWindowProcW(h_wnd, msg, w_param, l_param); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleW` in crate `kernel32` [INFO] [stdout] --> src/main.rs:536:23 [INFO] [stdout] | [INFO] [stdout] 536 | kernel32::GetModuleHandleW(0 as *const u16) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in `kernel32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LoadIconW` in crate `user32` [INFO] [stdout] --> src/main.rs:550:32 [INFO] [stdout] | [INFO] [stdout] 550 | hIcon: user32::LoadIconW(0 as HINSTANCE, winapi::winuser::IDI_APPLICATION), [INFO] [stdout] | ^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LoadCursorW` in crate `user32` [INFO] [stdout] --> src/main.rs:551:34 [INFO] [stdout] | [INFO] [stdout] 551 | hCursor: user32::LoadCursorW(0 as HINSTANCE, winapi::winuser::IDI_APPLICATION), [INFO] [stdout] | ^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegisterClassW` in crate `user32` [INFO] [stdout] --> src/main.rs:556:21 [INFO] [stdout] | [INFO] [stdout] 556 | user32::RegisterClassW(&wnd) [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetMessageW` in crate `user32` [INFO] [stdout] --> src/main.rs:581:34 [INFO] [stdout] | [INFO] [stdout] 581 | let pm = user32::GetMessageW(&mut msg, 0 as HWND, 0, 0); [INFO] [stdout] | ^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `TranslateMessage` in crate `user32` [INFO] [stdout] --> src/main.rs:589:25 [INFO] [stdout] | [INFO] [stdout] 589 | user32::TranslateMessage(&mut msg); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DispatchMessageW` in crate `user32` [INFO] [stdout] --> src/main.rs:590:25 [INFO] [stdout] | [INFO] [stdout] 590 | user32::DispatchMessageW(&mut msg); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostQuitMessage` in crate `user32` [INFO] [stdout] --> src/main.rs:594:29 [INFO] [stdout] | [INFO] [stdout] 594 | user32::PostQuitMessage(0); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:211:21 [INFO] [stdout] | [INFO] [stdout] 211 | winapi::winuser::WM_COMMAND=>{ [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:222:21 [INFO] [stdout] | [INFO] [stdout] 222 | winapi::winuser::WM_PAINT=>{ [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:233:21 [INFO] [stdout] | [INFO] [stdout] 233 | winapi::winuser::WM_MOUSEMOVE=>{ [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windowsx` in `winapi` [INFO] [stdout] --> src/main.rs:234:33 [INFO] [stdout] | [INFO] [stdout] 234 | let x = winapi::windowsx::GET_X_LPARAM(lparam); [INFO] [stdout] | ^^^^^^^^ could not find `windowsx` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windowsx` in `winapi` [INFO] [stdout] --> src/main.rs:235:33 [INFO] [stdout] | [INFO] [stdout] 235 | let y = winapi::windowsx::GET_Y_LPARAM(lparam); [INFO] [stdout] | ^^^^^^^^ could not find `windowsx` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:348:106 [INFO] [stdout] | [INFO] [stdout] 348 | user32::SetWindowPos(self.hwnd, 0 as HWND, 0,0, size.get_width(), size.get_height(), winapi::winuser::SWP_NOMOVE); [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:353:97 [INFO] [stdout] | [INFO] [stdout] 353 | user32::SetWindowPos(self.hwnd, 0 as HWND, pos.get_x(), pos.get_y() , 0, 0, winapi::winuser::SWP_NOSIZE); [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:369:91 [INFO] [stdout] | [INFO] [stdout] 369 | ... user32::CreateWindowExW(0,TEXT("button").as_ptr(),TEXT(text).as_ptr(),winapi::winuser::WS_CHILD | winapi::winuser::BS_PUSHBUTTON, 0... [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:369:119 [INFO] [stdout] | [INFO] [stdout] 369 | ...as_ptr(),winapi::winuser::WS_CHILD | winapi::winuser::BS_PUSHBUTTON, 0,0,50,100,parent_hwnd,0 as HMENU, 0 as HINSTANCE, std::ptr::null... [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:423:90 [INFO] [stdout] | [INFO] [stdout] 423 | ... user32::CreateWindowExW(0,TEXT("edit").as_ptr(),std::ptr::null_mut(),winapi::winuser::WS_CHILD | winapi::winuser::WS_BORDER, 0,0,50... [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:423:118 [INFO] [stdout] | [INFO] [stdout] 423 | ...ll_mut(),winapi::winuser::WS_CHILD | winapi::winuser::WS_BORDER, 0,0,50,100,parent_hwnd,0 as HMENU, 0 as HINSTANCE, std::ptr::null_mut()) [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Mutex` [INFO] [stdout] --> src/main.rs:12:30 [INFO] [stdout] | [INFO] [stdout] 12 | use std::sync::{Arc, RwLock, Mutex,Once, ONCE_INIT}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Error` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::io::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr::null_mut` [INFO] [stdout] --> src/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use std::ptr::null_mut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:121:17 [INFO] [stdout] | [INFO] [stdout] 121 | OnPaint(Box), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&Window, &mut PaintEvent)` [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/main.rs:122:21 [INFO] [stdout] | [INFO] [stdout] 122 | OnMouseMove(Box), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&Window, &mut MouseEvent)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:123:29 [INFO] [stdout] | [INFO] [stdout] 123 | OnButtonClick(HWND, Box) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&Window, &mut Event)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:139:38 [INFO] [stdout] | [INFO] [stdout] 139 | children:RwLock>>, [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Child` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:180:49 [INFO] [stdout] | [INFO] [stdout] 180 | let hi = std::mem::transmute::<&EventHandlable,[winapi::HANDLE; 2]>(win.as_ref()); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn EventHandlable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:262:55 [INFO] [stdout] | [INFO] [stdout] 262 | let rs =unsafe{std::mem::transmute::<&Box, &Box>(v)}; [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Child` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:358:27 [INFO] [stdout] | [INFO] [stdout] 358 | OnClicked{handler:Box} [INFO] [stdout] | ^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&Window)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:463:18 [INFO] [stdout] | [INFO] [stdout] 463 | let handler:&EventHandlable = unsafe{ [INFO] [stdout] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn EventHandlable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:471:51 [INFO] [stdout] | [INFO] [stdout] 471 | std::mem::transmute::<[winapi::HANDLE;2],&EventHandlable>(t) [INFO] [stdout] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn EventHandlable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:473:16 [INFO] [stdout] | [INFO] [stdout] 473 | if winapi::winuser::WM_DESTROY == msg{ [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:550:66 [INFO] [stdout] | [INFO] [stdout] 550 | hIcon: user32::LoadIconW(0 as HINSTANCE, winapi::winuser::IDI_APPLICATION), [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:551:70 [INFO] [stdout] | [INFO] [stdout] 551 | hCursor: user32::LoadCursorW(0 as HINSTANCE, winapi::winuser::IDI_APPLICATION), [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:571:35 [INFO] [stdout] | [INFO] [stdout] 571 | let mut msg = winapi::winuser::MSG { [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windef` in `winapi` [INFO] [stdout] --> src/main.rs:577:30 [INFO] [stdout] | [INFO] [stdout] 577 | pt : winapi::windef::POINT { x: 0, y: 0, }, [INFO] [stdout] | ^^^^^^ could not find `windef` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `winuser` in `winapi` [INFO] [stdout] --> src/main.rs:586:43 [INFO] [stdout] | [INFO] [stdout] 586 | if msg.message == winapi::winuser::WM_QUIT { [INFO] [stdout] | ^^^^^^^ could not find `winuser` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetConsoleWindow` in crate `kernel32` [INFO] [stdout] --> src/main.rs:34:19 [INFO] [stdout] | [INFO] [stdout] 34 | kernel32::GetConsoleWindow() [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in `kernel32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ShowWindow` in crate `user32` [INFO] [stdout] --> src/main.rs:39:21 [INFO] [stdout] | [INFO] [stdout] 39 | user32::ShowWindow (window, winapi::SW_HIDE) [INFO] [stdout] | ^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SW_HIDE` in crate `winapi` [INFO] [stdout] --> src/main.rs:39:49 [INFO] [stdout] | [INFO] [stdout] 39 | user32::ShowWindow (window, winapi::SW_HIDE) [INFO] [stdout] | ^^^^^^^ not found in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateWindowExW` in crate `user32` [INFO] [stdout] --> src/main.rs:164:21 [INFO] [stdout] | [INFO] [stdout] 164 | user32::CreateWindowExW(0, class_name.as_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in crate `winapi` [INFO] [stdout] --> src/main.rs:180:73 [INFO] [stdout] | [INFO] [stdout] 180 | let hi = std::mem::transmute::<&EventHandlable,[winapi::HANDLE; 2]>(win.as_ref()); [INFO] [stdout] | ^^^^^^ not found in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetPropW` in crate `user32` [INFO] [stdout] --> src/main.rs:181:25 [INFO] [stdout] | [INFO] [stdout] 181 | user32::SetPropW(h_wnd_window,TEXT("a").as_ptr(), hi[0]); [INFO] [stdout] | ^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetPropW` in crate `user32` [INFO] [stdout] --> src/main.rs:182:25 [INFO] [stdout] | [INFO] [stdout] 182 | user32::SetPropW(h_wnd_window,TEXT("b").as_ptr(), hi[1]); [INFO] [stdout] | ^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `MessageBoxW` in crate `user32` [INFO] [stdout] --> src/main.rs:193:21 [INFO] [stdout] | [INFO] [stdout] 193 | user32::MessageBoxW(self.get_hwnd(), TEXT(text).as_ptr(), TEXT(title).as_ptr(), 0); [INFO] [stdout] | ^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ShowWindow` in crate `user32` [INFO] [stdout] --> src/main.rs:333:12 [INFO] [stdout] | [INFO] [stdout] 333 | user32::ShowWindow(self.hwnd, winapi::SW_SHOW); [INFO] [stdout] | ^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SW_SHOW` in crate `winapi` [INFO] [stdout] --> src/main.rs:333:42 [INFO] [stdout] | [INFO] [stdout] 333 | user32::ShowWindow(self.hwnd, winapi::SW_SHOW); [INFO] [stdout] | ^^^^^^^ not found in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowPos` in crate `user32` [INFO] [stdout] --> src/main.rs:348:21 [INFO] [stdout] | [INFO] [stdout] 348 | user32::SetWindowPos(self.hwnd, 0 as HWND, 0,0, size.get_width(), size.get_height(), winapi::winuser::SWP_NOMOVE); [INFO] [stdout] | ^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowPos` in crate `user32` [INFO] [stdout] --> src/main.rs:353:21 [INFO] [stdout] | [INFO] [stdout] 353 | user32::SetWindowPos(self.hwnd, 0 as HWND, pos.get_x(), pos.get_y() , 0, 0, winapi::winuser::SWP_NOSIZE); [INFO] [stdout] | ^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateWindowExW` in crate `user32` [INFO] [stdout] --> src/main.rs:369:21 [INFO] [stdout] | [INFO] [stdout] 369 | ... user32::CreateWindowExW(0,TEXT("button").as_ptr(),TEXT(text).as_ptr(),winapi::winuser::WS_CHILD | winapi::winuser::BS_PUSHBUTTON, 0... [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowTextW` in crate `user32` [INFO] [stdout] --> src/main.rs:388:21 [INFO] [stdout] | [INFO] [stdout] 388 | user32::SetWindowTextW(self.control.get_hwnd(), TEXT(title).as_ptr()); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateWindowExW` in crate `user32` [INFO] [stdout] --> src/main.rs:423:21 [INFO] [stdout] | [INFO] [stdout] 423 | ... user32::CreateWindowExW(0,TEXT("edit").as_ptr(),std::ptr::null_mut(),winapi::winuser::WS_CHILD | winapi::winuser::WS_BORDER, 0,0,50... [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in crate `winapi` [INFO] [stdout] --> src/main.rs:464:28 [INFO] [stdout] | [INFO] [stdout] 464 | let mut t:[winapi::HANDLE;2]=[ [INFO] [stdout] | ^^^^^^ not found in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetPropW` in crate `user32` [INFO] [stdout] --> src/main.rs:465:21 [INFO] [stdout] | [INFO] [stdout] 465 | user32::GetPropW(h_wnd, TEXT("a").as_ptr()), [INFO] [stdout] | ^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetPropW` in crate `user32` [INFO] [stdout] --> src/main.rs:466:21 [INFO] [stdout] | [INFO] [stdout] 466 | user32::GetPropW(h_wnd, TEXT("b").as_ptr()) [INFO] [stdout] | ^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DefWindowProcW` in crate `user32` [INFO] [stdout] --> src/main.rs:469:28 [INFO] [stdout] | [INFO] [stdout] 469 | return user32::DefWindowProcW(h_wnd, msg, w_param, l_param); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in crate `winapi` [INFO] [stdout] --> src/main.rs:471:40 [INFO] [stdout] | [INFO] [stdout] 471 | std::mem::transmute::<[winapi::HANDLE;2],&EventHandlable>(t) [INFO] [stdout] | ^^^^^^ not found in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DefWindowProcW` in crate `user32` [INFO] [stdout] --> src/main.rs:493:24 [INFO] [stdout] | [INFO] [stdout] 493 | return user32::DefWindowProcW(h_wnd, msg, w_param, l_param); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleW` in crate `kernel32` [INFO] [stdout] --> src/main.rs:536:23 [INFO] [stdout] | [INFO] [stdout] 536 | kernel32::GetModuleHandleW(0 as *const u16) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in `kernel32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LoadIconW` in crate `user32` [INFO] [stdout] --> src/main.rs:550:32 [INFO] [stdout] | [INFO] [stdout] 550 | hIcon: user32::LoadIconW(0 as HINSTANCE, winapi::winuser::IDI_APPLICATION), [INFO] [stdout] | ^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LoadCursorW` in crate `user32` [INFO] [stdout] --> src/main.rs:551:34 [INFO] [stdout] | [INFO] [stdout] 551 | hCursor: user32::LoadCursorW(0 as HINSTANCE, winapi::winuser::IDI_APPLICATION), [INFO] [stdout] | ^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegisterClassW` in crate `user32` [INFO] [stdout] --> src/main.rs:556:21 [INFO] [stdout] | [INFO] [stdout] 556 | user32::RegisterClassW(&wnd) [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetMessageW` in crate `user32` [INFO] [stdout] --> src/main.rs:581:34 [INFO] [stdout] | [INFO] [stdout] 581 | let pm = user32::GetMessageW(&mut msg, 0 as HWND, 0, 0); [INFO] [stdout] | ^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `TranslateMessage` in crate `user32` [INFO] [stdout] --> src/main.rs:589:25 [INFO] [stdout] | [INFO] [stdout] 589 | user32::TranslateMessage(&mut msg); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DispatchMessageW` in crate `user32` [INFO] [stdout] --> src/main.rs:590:25 [INFO] [stdout] | [INFO] [stdout] 590 | user32::DispatchMessageW(&mut msg); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostQuitMessage` in crate `user32` [INFO] [stdout] --> src/main.rs:594:29 [INFO] [stdout] | [INFO] [stdout] 594 | user32::PostQuitMessage(0); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in `user32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/main.rs:12:42 [INFO] [stdout] | [INFO] [stdout] 12 | use std::sync::{Arc, RwLock, Mutex,Once, ONCE_INIT}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/main.rs:506:25 [INFO] [stdout] | [INFO] [stdout] 506 | static ONCE: Once = ONCE_INIT; [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated constant: `Once::new()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Mutex` [INFO] [stdout] --> src/main.rs:12:30 [INFO] [stdout] | [INFO] [stdout] 12 | use std::sync::{Arc, RwLock, Mutex,Once, ONCE_INIT}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Error` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::io::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr::null_mut` [INFO] [stdout] --> src/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use std::ptr::null_mut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:121:17 [INFO] [stdout] | [INFO] [stdout] 121 | OnPaint(Box), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&Window, &mut PaintEvent)` [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/main.rs:122:21 [INFO] [stdout] | [INFO] [stdout] 122 | OnMouseMove(Box), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&Window, &mut MouseEvent)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:123:29 [INFO] [stdout] | [INFO] [stdout] 123 | OnButtonClick(HWND, Box) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&Window, &mut Event)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:139:38 [INFO] [stdout] | [INFO] [stdout] 139 | children:RwLock>>, [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Child` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:180:49 [INFO] [stdout] | [INFO] [stdout] 180 | let hi = std::mem::transmute::<&EventHandlable,[winapi::HANDLE; 2]>(win.as_ref()); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn EventHandlable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:262:55 [INFO] [stdout] | [INFO] [stdout] 262 | let rs =unsafe{std::mem::transmute::<&Box, &Box>(v)}; [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Child` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:358:27 [INFO] [stdout] | [INFO] [stdout] 358 | OnClicked{handler:Box} [INFO] [stdout] | ^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&Window)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:463:18 [INFO] [stdout] | [INFO] [stdout] 463 | let handler:&EventHandlable = unsafe{ [INFO] [stdout] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn EventHandlable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:471:51 [INFO] [stdout] | [INFO] [stdout] 471 | std::mem::transmute::<[winapi::HANDLE;2],&EventHandlable>(t) [INFO] [stdout] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn EventHandlable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/main.rs:12:42 [INFO] [stdout] | [INFO] [stdout] 12 | use std::sync::{Arc, RwLock, Mutex,Once, ONCE_INIT}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/main.rs:506:25 [INFO] [stdout] | [INFO] [stdout] 506 | static ONCE: Once = ONCE_INIT; [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated constant: `Once::new()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode_wide` found for reference `&OsStr` in the current scope [INFO] [stdout] --> src/main.rs:22:29 [INFO] [stdout] | [INFO] [stdout] 22 | OsStr::new(str).encode_wide().chain(Some(0).into_iter()).collect(); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&OsStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode_wide` found for reference `&OsStr` in the current scope [INFO] [stdout] --> src/main.rs:26:20 [INFO] [stdout] | [INFO] [stdout] 26 | OsStr::new(msg).encode_wide().chain(once(0)).collect() [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&OsStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode_wide` found for reference `&OsStr` in the current scope [INFO] [stdout] --> src/main.rs:29:21 [INFO] [stdout] | [INFO] [stdout] 29 | OsStr::new(msg).encode_wide().chain(once(0)).collect() [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&OsStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode_wide` found for reference `&OsStr` in the current scope [INFO] [stdout] --> src/main.rs:22:29 [INFO] [stdout] | [INFO] [stdout] 22 | OsStr::new(str).encode_wide().chain(Some(0).into_iter()).collect(); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&OsStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode_wide` found for reference `&OsStr` in the current scope [INFO] [stdout] --> src/main.rs:26:20 [INFO] [stdout] | [INFO] [stdout] 26 | OsStr::new(msg).encode_wide().chain(once(0)).collect() [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&OsStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode_wide` found for reference `&OsStr` in the current scope [INFO] [stdout] --> src/main.rs:29:21 [INFO] [stdout] | [INFO] [stdout] 29 | OsStr::new(msg).encode_wide().chain(once(0)).collect() [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&OsStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 55 previous errors; 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `dm-gui-rs` [INFO] [stdout] error: aborting due to 55 previous errors; 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "7da4062e84d2330156693ac773c1817d3d31afa39559ffe5d9eb6fefe8c08dba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7da4062e84d2330156693ac773c1817d3d31afa39559ffe5d9eb6fefe8c08dba", kill_on_drop: false }` [INFO] [stdout] 7da4062e84d2330156693ac773c1817d3d31afa39559ffe5d9eb6fefe8c08dba