[INFO] updating cached repository AlfnXd/get_window_rect_rs [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/AlfnXd/get_window_rect_rs [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/AlfnXd/get_window_rect_rs" "work/ex/clippy-test-run/sources/stable/gh/AlfnXd/get_window_rect_rs"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable/gh/AlfnXd/get_window_rect_rs'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/AlfnXd/get_window_rect_rs" "work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/AlfnXd/get_window_rect_rs"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/AlfnXd/get_window_rect_rs'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 51aca2ee068c6247ce85b4e31142c1f11769c7a9 [INFO] sha for GitHub repo AlfnXd/get_window_rect_rs: 51aca2ee068c6247ce85b4e31142c1f11769c7a9 [INFO] validating manifest of AlfnXd/get_window_rect_rs on toolchain stable [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of AlfnXd/get_window_rect_rs on toolchain stable+rustflags=-Dclippy::into_iter_on_array [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing AlfnXd/get_window_rect_rs [INFO] finished frobbing AlfnXd/get_window_rect_rs [INFO] frobbed toml for AlfnXd/get_window_rect_rs written to work/ex/clippy-test-run/sources/stable/gh/AlfnXd/get_window_rect_rs/Cargo.toml [INFO] started frobbing AlfnXd/get_window_rect_rs [INFO] finished frobbing AlfnXd/get_window_rect_rs [INFO] frobbed toml for AlfnXd/get_window_rect_rs written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/AlfnXd/get_window_rect_rs/Cargo.toml [INFO] crate AlfnXd/get_window_rect_rs has a lockfile. skipping [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] linting AlfnXd/get_window_rect_rs against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-1/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/gh/AlfnXd/get_window_rect_rs:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+stable" "clippy" "--frozen" "--all" "--all-targets"` [INFO] [stdout] 117e8a9418c8b8cb1e6d4497dc2723b7488f140a3d0e30304e1969c9fab2b02f [INFO] running `"docker" "start" "-a" "117e8a9418c8b8cb1e6d4497dc2723b7488f140a3d0e30304e1969c9fab2b02f"` [INFO] [stderr] Compiling winapi v0.3.6 [INFO] [stderr] Checking win32api_test v0.1.0 (/opt/crater/workdir) [INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stderr] --> src/main.rs:11:13 [INFO] [stderr] | [INFO] [stderr] 11 | use winapi::shared::minwindef::{DWORD, LPVOID}; [INFO] [stderr] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stderr] --> src/main.rs:12:13 [INFO] [stderr] | [INFO] [stderr] 12 | use winapi::shared::windef::{HWND, LPRECT, RECT}; [INFO] [stderr] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stderr] --> src/main.rs:13:13 [INFO] [stderr] | [INFO] [stderr] 13 | use winapi::shared::winerror::SUCCEEDED; [INFO] [stderr] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stderr] --> src/main.rs:14:13 [INFO] [stderr] | [INFO] [stderr] 14 | use winapi::um::dwmapi::{DwmGetWindowAttribute, DWMWA_EXTENDED_FRAME_BOUNDS}; [INFO] [stderr] | ^^ could not find `um` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stderr] --> src/main.rs:15:13 [INFO] [stderr] | [INFO] [stderr] 15 | use winapi::um::winnt::{LPWSTR, WCHAR}; [INFO] [stderr] | ^^ could not find `um` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stderr] --> src/main.rs:16:13 [INFO] [stderr] | [INFO] [stderr] 16 | use winapi::um::winuser::{GetWindowRect, GetWindowTextLengthW, GetWindowTextW}; [INFO] [stderr] | ^^ could not find `um` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `RECT` in this scope [INFO] [stderr] --> src/main.rs:41:11 [INFO] [stderr] | [INFO] [stderr] 41 | impl From for PrettyPrintRect { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `RECT` in this scope [INFO] [stderr] --> src/main.rs:42:19 [INFO] [stderr] | [INFO] [stderr] 42 | fn from(rect: RECT) -> Self { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `RECT` in this scope [INFO] [stderr] --> src/main.rs:53:19 [INFO] [stderr] | [INFO] [stderr] 53 | let mut rect: RECT = RECT { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `RECT` in this scope [INFO] [stderr] --> src/main.rs:53:26 [INFO] [stderr] | [INFO] [stderr] 53 | let mut rect: RECT = RECT { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `DwmGetWindowAttribute` in this scope [INFO] [stderr] --> src/main.rs:60:9 [INFO] [stderr] | [INFO] [stderr] 60 | DwmGetWindowAttribute( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope [INFO] [stderr] --> src/main.rs:61:21 [INFO] [stderr] | [INFO] [stderr] 61 | hwnd as HWND, [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `DWMWA_EXTENDED_FRAME_BOUNDS` in this scope [INFO] [stderr] --> src/main.rs:62:13 [INFO] [stderr] | [INFO] [stderr] 62 | DWMWA_EXTENDED_FRAME_BOUNDS, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `RECT` in this scope [INFO] [stderr] --> src/main.rs:63:31 [INFO] [stderr] | [INFO] [stderr] 63 | &mut rect as *mut RECT as LPVOID, [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stderr] --> src/main.rs:63:39 [INFO] [stderr] | [INFO] [stderr] 63 | &mut rect as *mut RECT as LPVOID, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `RECT` in this scope [INFO] [stderr] --> src/main.rs:64:28 [INFO] [stderr] | [INFO] [stderr] 64 | mem::size_of::() as DWORD, [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/main.rs:64:39 [INFO] [stderr] | [INFO] [stderr] 64 | mem::size_of::() as DWORD, [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `SUCCEEDED` in this scope [INFO] [stderr] --> src/main.rs:67:8 [INFO] [stderr] | [INFO] [stderr] 67 | if SUCCEEDED(ret) { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `RECT` in this scope [INFO] [stderr] --> src/main.rs:75:19 [INFO] [stderr] | [INFO] [stderr] 75 | let mut rect: RECT = RECT { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `RECT` in this scope [INFO] [stderr] --> src/main.rs:75:26 [INFO] [stderr] | [INFO] [stderr] 75 | let mut rect: RECT = RECT { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetWindowRect` in this scope [INFO] [stderr] --> src/main.rs:81:24 [INFO] [stderr] | [INFO] [stderr] 81 | let ret = unsafe { GetWindowRect(hwnd as HWND, &mut rect as LPRECT) }; [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope [INFO] [stderr] --> src/main.rs:81:46 [INFO] [stderr] | [INFO] [stderr] 81 | let ret = unsafe { GetWindowRect(hwnd as HWND, &mut rect as LPRECT) }; [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPRECT` in this scope [INFO] [stderr] --> src/main.rs:81:65 [INFO] [stderr] | [INFO] [stderr] 81 | let ret = unsafe { GetWindowRect(hwnd as HWND, &mut rect as LPRECT) }; [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetWindowTextLengthW` in this scope [INFO] [stderr] --> src/main.rs:91:24 [INFO] [stderr] | [INFO] [stderr] 91 | let text_len = GetWindowTextLengthW(hwnd as HWND); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope [INFO] [stderr] --> src/main.rs:91:53 [INFO] [stderr] | [INFO] [stderr] 91 | let text_len = GetWindowTextLengthW(hwnd as HWND); [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `WCHAR` in this scope [INFO] [stderr] --> src/main.rs:95:31 [INFO] [stderr] | [INFO] [stderr] 95 | let mut wide: Vec = Vec::with_capacity(max_size); [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetWindowTextW` in this scope [INFO] [stderr] --> src/main.rs:97:23 [INFO] [stderr] | [INFO] [stderr] 97 | let ret = GetWindowTextW(hwnd as HWND, wide.as_ptr() as LPWSTR, max_size as i32); [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope [INFO] [stderr] --> src/main.rs:97:46 [INFO] [stderr] | [INFO] [stderr] 97 | let ret = GetWindowTextW(hwnd as HWND, wide.as_ptr() as LPWSTR, max_size as i32); [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPWSTR` in this scope [INFO] [stderr] --> src/main.rs:97:69 [INFO] [stderr] | [INFO] [stderr] 97 | let ret = GetWindowTextW(hwnd as HWND, wide.as_ptr() as LPWSTR, max_size as i32); [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stderr] --> src/main.rs:11:13 [INFO] [stderr] | [INFO] [stderr] 11 | use winapi::shared::minwindef::{DWORD, LPVOID}; [INFO] [stderr] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stderr] --> src/main.rs:12:13 [INFO] [stderr] | [INFO] [stderr] 12 | use winapi::shared::windef::{HWND, LPRECT, RECT}; [INFO] [stderr] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stderr] --> src/main.rs:13:13 [INFO] [stderr] | [INFO] [stderr] 13 | use winapi::shared::winerror::SUCCEEDED; [INFO] [stderr] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stderr] --> src/main.rs:14:13 [INFO] [stderr] | [INFO] [stderr] 14 | use winapi::um::dwmapi::{DwmGetWindowAttribute, DWMWA_EXTENDED_FRAME_BOUNDS}; [INFO] [stderr] | ^^ could not find `um` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stderr] --> src/main.rs:15:13 [INFO] [stderr] | [INFO] [stderr] 15 | use winapi::um::winnt::{LPWSTR, WCHAR}; [INFO] [stderr] | ^^ could not find `um` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stderr] --> src/main.rs:16:13 [INFO] [stderr] | [INFO] [stderr] 16 | use winapi::um::winuser::{GetWindowRect, GetWindowTextLengthW, GetWindowTextW}; [INFO] [stderr] | ^^ could not find `um` in `winapi` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `RECT` in this scope [INFO] [stderr] --> src/main.rs:41:11 [INFO] [stderr] | [INFO] [stderr] 41 | impl From for PrettyPrintRect { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `RECT` in this scope [INFO] [stderr] --> src/main.rs:42:19 [INFO] [stderr] | [INFO] [stderr] 42 | fn from(rect: RECT) -> Self { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `RECT` in this scope [INFO] [stderr] --> src/main.rs:53:19 [INFO] [stderr] | [INFO] [stderr] 53 | let mut rect: RECT = RECT { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `RECT` in this scope [INFO] [stderr] --> src/main.rs:53:26 [INFO] [stderr] | [INFO] [stderr] 53 | let mut rect: RECT = RECT { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `DwmGetWindowAttribute` in this scope [INFO] [stderr] --> src/main.rs:60:9 [INFO] [stderr] | [INFO] [stderr] 60 | DwmGetWindowAttribute( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope [INFO] [stderr] --> src/main.rs:61:21 [INFO] [stderr] | [INFO] [stderr] 61 | hwnd as HWND, [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `DWMWA_EXTENDED_FRAME_BOUNDS` in this scope [INFO] [stderr] --> src/main.rs:62:13 [INFO] [stderr] | [INFO] [stderr] 62 | DWMWA_EXTENDED_FRAME_BOUNDS, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `RECT` in this scope [INFO] [stderr] --> src/main.rs:63:31 [INFO] [stderr] | [INFO] [stderr] 63 | &mut rect as *mut RECT as LPVOID, [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stderr] --> src/main.rs:63:39 [INFO] [stderr] | [INFO] [stderr] 63 | &mut rect as *mut RECT as LPVOID, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `RECT` in this scope [INFO] [stderr] --> src/main.rs:64:28 [INFO] [stderr] | [INFO] [stderr] 64 | mem::size_of::() as DWORD, [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/main.rs:64:39 [INFO] [stderr] | [INFO] [stderr] 64 | mem::size_of::() as DWORD, [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `SUCCEEDED` in this scope [INFO] [stderr] --> src/main.rs:67:8 [INFO] [stderr] | [INFO] [stderr] 67 | if SUCCEEDED(ret) { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `RECT` in this scope [INFO] [stderr] --> src/main.rs:75:19 [INFO] [stderr] | [INFO] [stderr] 75 | let mut rect: RECT = RECT { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `RECT` in this scope [INFO] [stderr] --> src/main.rs:75:26 [INFO] [stderr] | [INFO] [stderr] 75 | let mut rect: RECT = RECT { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetWindowRect` in this scope [INFO] [stderr] --> src/main.rs:81:24 [INFO] [stderr] | [INFO] [stderr] 81 | let ret = unsafe { GetWindowRect(hwnd as HWND, &mut rect as LPRECT) }; [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope [INFO] [stderr] --> src/main.rs:81:46 [INFO] [stderr] | [INFO] [stderr] 81 | let ret = unsafe { GetWindowRect(hwnd as HWND, &mut rect as LPRECT) }; [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPRECT` in this scope [INFO] [stderr] --> src/main.rs:81:65 [INFO] [stderr] | [INFO] [stderr] 81 | let ret = unsafe { GetWindowRect(hwnd as HWND, &mut rect as LPRECT) }; [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetWindowTextLengthW` in this scope [INFO] [stderr] --> src/main.rs:91:24 [INFO] [stderr] | [INFO] [stderr] 91 | let text_len = GetWindowTextLengthW(hwnd as HWND); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope [INFO] [stderr] --> src/main.rs:91:53 [INFO] [stderr] | [INFO] [stderr] 91 | let text_len = GetWindowTextLengthW(hwnd as HWND); [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `WCHAR` in this scope [INFO] [stderr] --> src/main.rs:95:31 [INFO] [stderr] | [INFO] [stderr] 95 | let mut wide: Vec = Vec::with_capacity(max_size); [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetWindowTextW` in this scope [INFO] [stderr] --> src/main.rs:97:23 [INFO] [stderr] | [INFO] [stderr] 97 | let ret = GetWindowTextW(hwnd as HWND, wide.as_ptr() as LPWSTR, max_size as i32); [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope [INFO] [stderr] --> src/main.rs:97:46 [INFO] [stderr] | [INFO] [stderr] 97 | let ret = GetWindowTextW(hwnd as HWND, wide.as_ptr() as LPWSTR, max_size as i32); [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPWSTR` in this scope [INFO] [stderr] --> src/main.rs:97:69 [INFO] [stderr] | [INFO] [stderr] 97 | let ret = GetWindowTextW(hwnd as HWND, wide.as_ptr() as LPWSTR, max_size as i32); [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] warning: unused imports: `DWORD`, `LPVOID` [INFO] [stderr] --> src/main.rs:11:33 [INFO] [stderr] | [INFO] [stderr] 11 | use winapi::shared::minwindef::{DWORD, LPVOID}; [INFO] [stderr] | ^^^^^ ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_imports)] on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `HWND`, `LPRECT`, `RECT` [INFO] [stderr] --> src/main.rs:12:30 [INFO] [stderr] | [INFO] [stderr] 12 | use winapi::shared::windef::{HWND, LPRECT, RECT}; [INFO] [stderr] | ^^^^ ^^^^^^ ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `winapi::shared::winerror::SUCCEEDED` [INFO] [stderr] --> src/main.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 13 | use winapi::shared::winerror::SUCCEEDED; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `DWMWA_EXTENDED_FRAME_BOUNDS`, `DwmGetWindowAttribute` [INFO] [stderr] --> src/main.rs:14:26 [INFO] [stderr] | [INFO] [stderr] 14 | use winapi::um::dwmapi::{DwmGetWindowAttribute, DWMWA_EXTENDED_FRAME_BOUNDS}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `LPWSTR`, `WCHAR` [INFO] [stderr] --> src/main.rs:15:25 [INFO] [stderr] | [INFO] [stderr] 15 | use winapi::um::winnt::{LPWSTR, WCHAR}; [INFO] [stderr] | ^^^^^^ ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `GetWindowRect`, `GetWindowTextLengthW`, `GetWindowTextW` [INFO] [stderr] --> src/main.rs:16:27 [INFO] [stderr] | [INFO] [stderr] 16 | use winapi::um::winuser::{GetWindowRect, GetWindowTextLengthW, GetWindowTextW}; [INFO] [stderr] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `DWORD`, `LPVOID` [INFO] [stderr] --> src/main.rs:11:33 [INFO] [stderr] | [INFO] [stderr] 11 | use winapi::shared::minwindef::{DWORD, LPVOID}; [INFO] [stderr] | ^^^^^ ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_imports)] on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `HWND`, `LPRECT`, `RECT` [INFO] [stderr] --> src/main.rs:12:30 [INFO] [stderr] | [INFO] [stderr] 12 | use winapi::shared::windef::{HWND, LPRECT, RECT}; [INFO] [stderr] | ^^^^ ^^^^^^ ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `winapi::shared::winerror::SUCCEEDED` [INFO] [stderr] --> src/main.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 13 | use winapi::shared::winerror::SUCCEEDED; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `DWMWA_EXTENDED_FRAME_BOUNDS`, `DwmGetWindowAttribute` [INFO] [stderr] --> src/main.rs:14:26 [INFO] [stderr] | [INFO] [stderr] 14 | use winapi::um::dwmapi::{DwmGetWindowAttribute, DWMWA_EXTENDED_FRAME_BOUNDS}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `LPWSTR`, `WCHAR` [INFO] [stderr] --> src/main.rs:15:25 [INFO] [stderr] | [INFO] [stderr] 15 | use winapi::um::winnt::{LPWSTR, WCHAR}; [INFO] [stderr] | ^^^^^^ ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `GetWindowRect`, `GetWindowTextLengthW`, `GetWindowTextW` [INFO] [stderr] --> src/main.rs:16:27 [INFO] [stderr] | [INFO] [stderr] 16 | use winapi::um::winuser::{GetWindowRect, GetWindowTextLengthW, GetWindowTextW}; [INFO] [stderr] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to 29 previous errors [INFO] [stderr] [INFO] [stderr] Some errors occurred: E0412, E0422, E0425, E0433. [INFO] [stderr] For more information about an error, try `rustc --explain E0412`. [INFO] [stderr] error: Could not compile `win32api_test`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: aborting due to 29 previous errors [INFO] [stderr] [INFO] [stderr] Some errors occurred: E0412, E0422, E0425, E0433. [INFO] [stderr] For more information about an error, try `rustc --explain E0412`. [INFO] [stderr] error: Could not compile `win32api_test`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "117e8a9418c8b8cb1e6d4497dc2723b7488f140a3d0e30304e1969c9fab2b02f"` [INFO] running `"docker" "rm" "-f" "117e8a9418c8b8cb1e6d4497dc2723b7488f140a3d0e30304e1969c9fab2b02f"` [INFO] [stdout] 117e8a9418c8b8cb1e6d4497dc2723b7488f140a3d0e30304e1969c9fab2b02f