[INFO] cloning repository https://github.com/aQaTL/screenshot [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/aQaTL/screenshot" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FaQaTL%2Fscreenshot", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FaQaTL%2Fscreenshot'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 959e0d2c98435b0580ae92610b1e445515d6450e [INFO] checking aQaTL/screenshot/959e0d2c98435b0580ae92610b1e445515d6450e against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FaQaTL%2Fscreenshot" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/aQaTL/screenshot on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/aQaTL/screenshot [INFO] finished tweaking git repo https://github.com/aQaTL/screenshot [INFO] tweaked toml for git repo https://github.com/aQaTL/screenshot written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/aQaTL/screenshot already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5d821cc373fa5e65306f681fe6b70bcc8f25c1d89835510988d9cc11be7a1c32 [INFO] running `Command { std: "docker" "start" "-a" "5d821cc373fa5e65306f681fe6b70bcc8f25c1d89835510988d9cc11be7a1c32", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5d821cc373fa5e65306f681fe6b70bcc8f25c1d89835510988d9cc11be7a1c32", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5d821cc373fa5e65306f681fe6b70bcc8f25c1d89835510988d9cc11be7a1c32", kill_on_drop: false }` [INFO] [stdout] 5d821cc373fa5e65306f681fe6b70bcc8f25c1d89835510988d9cc11be7a1c32 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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" "RUSTDOCFLAGS=--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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ba7540985739563cbc81e4a835d437f3dd6ab7765a1f137f4461495bacd23b91 [INFO] running `Command { std: "docker" "start" "-a" "ba7540985739563cbc81e4a835d437f3dd6ab7765a1f137f4461495bacd23b91", kill_on_drop: false }` [INFO] [stderr] Compiling arrayvec v0.4.10 [INFO] [stderr] Compiling num-traits v0.2.6 [INFO] [stderr] Checking cfg-if v0.1.7 [INFO] [stderr] Checking nodrop v0.1.13 [INFO] [stderr] Compiling libc v0.2.51 [INFO] [stderr] Compiling proc-macro2 v0.4.27 [INFO] [stderr] Compiling byteorder v1.3.1 [INFO] [stderr] Checking scopeguard v0.3.3 [INFO] [stderr] Checking crossbeam-utils v0.2.2 [INFO] [stderr] Checking lazy_static v1.3.0 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling num-integer v0.1.39 [INFO] [stderr] Compiling rayon-core v1.4.1 [INFO] [stderr] Checking memoffset v0.2.1 [INFO] [stderr] Compiling syn v0.15.30 [INFO] [stderr] Compiling rayon v1.0.3 [INFO] [stderr] Compiling num-derive v0.2.4 [INFO] [stderr] Checking adler32 v1.0.3 [INFO] [stderr] Compiling num-iter v0.1.37 [INFO] [stderr] Compiling num-rational v0.2.1 [INFO] [stderr] Checking either v1.5.2 [INFO] [stderr] Checking crossbeam-epoch v0.3.1 [INFO] [stderr] Checking lzw v0.10.0 [INFO] [stderr] Checking inflate v0.4.5 [INFO] [stderr] Checking num_cpus v1.10.0 [INFO] [stderr] Compiling quote v0.6.12 [INFO] [stderr] Checking deflate v0.7.19 [INFO] [stderr] Checking color_quant v1.0.1 [INFO] [stderr] Compiling winapi v0.3.7 [INFO] [stderr] Checking crossbeam-deque v0.2.0 [INFO] [stderr] Checking bitflags v1.0.4 [INFO] [stderr] Checking gif v0.10.1 [INFO] [stderr] Checking scoped_threadpool v0.1.9 [INFO] [stderr] Checking safe-transmute v0.10.1 [INFO] [stderr] Checking png v0.14.0 [INFO] [stderr] Checking jpeg-decoder v0.1.15 [INFO] [stderr] Checking tiff v0.2.2 [INFO] [stderr] Checking image v0.21.0 [INFO] [stderr] Checking screenshot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/screenshot.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | 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/screenshot.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | 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/screenshot.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::um::winuser::{GetDC, ReleaseDC}; [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/screenshot.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::shared::windef::HDC; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::ctypes` [INFO] [stdout] --> src/screenshot.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use winapi::ctypes::c_void; [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/screenshot.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::um::winuser::{GetDC, ReleaseDC}; [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/screenshot.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::shared::windef::HDC; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::ctypes` [INFO] [stdout] --> src/screenshot.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use winapi::ctypes::c_void; [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SRCCOPY` in this scope [INFO] [stdout] --> src/screenshot.rs:40:93 [INFO] [stdout] | [INFO] [stdout] 40 | let result = BitBlt(h_mem, 0, 0, (b.x - a.x).abs(), (b.y - a.y).abs(), h_screen, a.x, a.y, SRCCOPY); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SRCCOPY` in this scope [INFO] [stdout] --> src/screenshot.rs:40:93 [INFO] [stdout] | [INFO] [stdout] 40 | let result = BitBlt(h_mem, 0, 0, (b.x - a.x).abs(), (b.y - a.y).abs(), h_screen, a.x, a.y, SRCCOPY); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `BITMAP` in this scope [INFO] [stdout] --> src/screenshot.rs:45:16 [INFO] [stdout] | [INFO] [stdout] 45 | let mut bmp = BITMAP { bmType: 0, bmWidth: 0, bmHeight: 0, bmWidthBytes: 0, bmPlanes: 0, bmBitsPixel: 0, bmBits: null_mut() }; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `BITMAP` in this scope [INFO] [stdout] --> src/screenshot.rs:45:16 [INFO] [stdout] | [INFO] [stdout] 45 | let mut bmp = BITMAP { bmType: 0, bmWidth: 0, bmHeight: 0, bmWidthBytes: 0, bmPlanes: 0, bmBitsPixel: 0, bmBits: null_mut() }; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BITMAP` in this scope [INFO] [stdout] --> src/screenshot.rs:46:61 [INFO] [stdout] | [INFO] [stdout] 46 | let result = GetObjectW(h_bitmap as *mut c_void, size_of::() as i32, &mut bmp as *mut BITMAP as *mut c_void); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 22 | unsafe fn screenshot_(rect: Option) -> Result, WinApiError> { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BITMAP` in this scope [INFO] [stdout] --> src/screenshot.rs:46:61 [INFO] [stdout] | [INFO] [stdout] 46 | let result = GetObjectW(h_bitmap as *mut c_void, size_of::() as i32, &mut bmp as *mut BITMAP as *mut c_void); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 22 | unsafe fn screenshot_(rect: Option) -> Result, WinApiError> { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BITMAP` in this scope [INFO] [stdout] --> src/screenshot.rs:46:96 [INFO] [stdout] | [INFO] [stdout] 46 | let result = GetObjectW(h_bitmap as *mut c_void, size_of::() as i32, &mut bmp as *mut BITMAP as *mut c_void); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BITMAPINFO` in this scope [INFO] [stdout] --> src/screenshot.rs:61:27 [INFO] [stdout] | [INFO] [stdout] 61 | ... &mut bmi as *mut BITMAPINFO, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BITMAP` in this scope [INFO] [stdout] --> src/screenshot.rs:46:96 [INFO] [stdout] | [INFO] [stdout] 46 | let result = GetObjectW(h_bitmap as *mut c_void, size_of::() as i32, &mut bmp as *mut BITMAP as *mut c_void); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DIB_RGB_COLORS` in this scope [INFO] [stdout] --> src/screenshot.rs:62:10 [INFO] [stdout] | [INFO] [stdout] 62 | ... DIB_RGB_COLORS); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BITMAPINFO` in this scope [INFO] [stdout] --> src/screenshot.rs:61:27 [INFO] [stdout] | [INFO] [stdout] 61 | ... &mut bmi as *mut BITMAPINFO, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BITMAP` in this scope [INFO] [stdout] --> src/screenshot.rs:75:31 [INFO] [stdout] | [INFO] [stdout] 75 | fn create_bitmap_headers(bmp: BITMAP) -> (BITMAPFILEHEADER, BITMAPINFO) { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BITMAPFILEHEADER` in this scope [INFO] [stdout] --> src/screenshot.rs:75:43 [INFO] [stdout] | [INFO] [stdout] 75 | fn create_bitmap_headers(bmp: BITMAP) -> (BITMAPFILEHEADER, BITMAPINFO) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DIB_RGB_COLORS` in this scope [INFO] [stdout] --> src/screenshot.rs:62:10 [INFO] [stdout] | [INFO] [stdout] 62 | ... DIB_RGB_COLORS); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BITMAPINFO` in this scope [INFO] [stdout] --> src/screenshot.rs:75:61 [INFO] [stdout] | [INFO] [stdout] 75 | fn create_bitmap_headers(bmp: BITMAP) -> (BITMAPFILEHEADER, BITMAPINFO) { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BITMAP` in this scope [INFO] [stdout] --> src/screenshot.rs:75:31 [INFO] [stdout] | [INFO] [stdout] 75 | fn create_bitmap_headers(bmp: BITMAP) -> (BITMAPFILEHEADER, BITMAPINFO) { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `BITMAPINFO` in this scope [INFO] [stdout] --> src/screenshot.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 85 | let bmi = BITMAPINFO { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BITMAPFILEHEADER` in this scope [INFO] [stdout] --> src/screenshot.rs:75:43 [INFO] [stdout] | [INFO] [stdout] 75 | fn create_bitmap_headers(bmp: BITMAP) -> (BITMAPFILEHEADER, BITMAPINFO) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BITMAPINFO` in this scope [INFO] [stdout] --> src/screenshot.rs:75:61 [INFO] [stdout] | [INFO] [stdout] 75 | fn create_bitmap_headers(bmp: BITMAP) -> (BITMAPFILEHEADER, BITMAPINFO) { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `BITMAPINFOHEADER` in this scope [INFO] [stdout] --> src/screenshot.rs:86:14 [INFO] [stdout] | [INFO] [stdout] 86 | bmiHeader: BITMAPINFOHEADER { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `BITMAPINFO` in this scope [INFO] [stdout] --> src/screenshot.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 85 | let bmi = BITMAPINFO { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BITMAPINFOHEADER` in this scope [INFO] [stdout] --> src/screenshot.rs:87:22 [INFO] [stdout] | [INFO] [stdout] 87 | biSize: size_of::() as u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 75 | fn create_bitmap_headers(bmp: BITMAP) -> (BITMAPFILEHEADER, BITMAPINFO) { [INFO] [stdout] | ++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `BITMAPINFOHEADER` in this scope [INFO] [stdout] --> src/screenshot.rs:86:14 [INFO] [stdout] | [INFO] [stdout] 86 | bmiHeader: BITMAPINFOHEADER { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `BI_RGB` in this scope [INFO] [stdout] --> src/screenshot.rs:92:19 [INFO] [stdout] | [INFO] [stdout] 92 | biCompression: BI_RGB, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `RGBQUAD` in this scope [INFO] [stdout] --> src/screenshot.rs:99:15 [INFO] [stdout] | [INFO] [stdout] 99 | bmiColors: [RGBQUAD { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BITMAPINFOHEADER` in this scope [INFO] [stdout] --> src/screenshot.rs:87:22 [INFO] [stdout] | [INFO] [stdout] 87 | biSize: size_of::() as u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 75 | fn create_bitmap_headers(bmp: BITMAP) -> (BITMAPFILEHEADER, BITMAPINFO) { [INFO] [stdout] | ++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `BITMAPFILEHEADER` in this scope [INFO] [stdout] --> src/screenshot.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | let bmfh = BITMAPFILEHEADER { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `BI_RGB` in this scope [INFO] [stdout] --> src/screenshot.rs:92:19 [INFO] [stdout] | [INFO] [stdout] 92 | biCompression: BI_RGB, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `RGBQUAD` in this scope [INFO] [stdout] --> src/screenshot.rs:99:15 [INFO] [stdout] | [INFO] [stdout] 99 | bmiColors: [RGBQUAD { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BITMAPFILEHEADER` in this scope [INFO] [stdout] --> src/screenshot.rs:108:21 [INFO] [stdout] | [INFO] [stdout] 108 | bfSize: size_of::() as u32 + bmi.bmiHeader.biSize + [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 75 | fn create_bitmap_headers(bmp: BITMAP) -> (BITMAPFILEHEADER, BITMAPINFO) { [INFO] [stdout] | ++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `BITMAPFILEHEADER` in this scope [INFO] [stdout] --> src/screenshot.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | let bmfh = BITMAPFILEHEADER { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RGBQUAD` in this scope [INFO] [stdout] --> src/screenshot.rs:109:40 [INFO] [stdout] | [INFO] [stdout] 109 | bmi.bmiHeader.biClrUsed * size_of::() as u32 + bmi.bmiHeader.biSizeImage, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 75 | fn create_bitmap_headers(bmp: BITMAP) -> (BITMAPFILEHEADER, BITMAPINFO) { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BITMAPFILEHEADER` in this scope [INFO] [stdout] --> src/screenshot.rs:108:21 [INFO] [stdout] | [INFO] [stdout] 108 | bfSize: size_of::() as u32 + bmi.bmiHeader.biSize + [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 75 | fn create_bitmap_headers(bmp: BITMAP) -> (BITMAPFILEHEADER, BITMAPINFO) { [INFO] [stdout] | ++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RGBQUAD` in this scope [INFO] [stdout] --> src/screenshot.rs:109:40 [INFO] [stdout] | [INFO] [stdout] 109 | bmi.bmiHeader.biClrUsed * size_of::() as u32 + bmi.bmiHeader.biSizeImage, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 75 | fn create_bitmap_headers(bmp: BITMAP) -> (BITMAPFILEHEADER, BITMAPINFO) { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BITMAPFILEHEADER` in this scope [INFO] [stdout] --> src/screenshot.rs:112:24 [INFO] [stdout] | [INFO] [stdout] 112 | bfOffBits: size_of::() as u32 + bmi.bmiHeader.biSize + [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 75 | fn create_bitmap_headers(bmp: BITMAP) -> (BITMAPFILEHEADER, BITMAPINFO) { [INFO] [stdout] | ++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BITMAPFILEHEADER` in this scope [INFO] [stdout] --> src/screenshot.rs:112:24 [INFO] [stdout] | [INFO] [stdout] 112 | bfOffBits: size_of::() as u32 + bmi.bmiHeader.biSize + [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 75 | fn create_bitmap_headers(bmp: BITMAP) -> (BITMAPFILEHEADER, BITMAPINFO) { [INFO] [stdout] | ++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RGBQUAD` in this scope [INFO] [stdout] --> src/screenshot.rs:113:40 [INFO] [stdout] | [INFO] [stdout] 113 | bmi.bmiHeader.biClrUsed * size_of::() as u32, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 75 | fn create_bitmap_headers(bmp: BITMAP) -> (BITMAPFILEHEADER, BITMAPINFO) { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RGBQUAD` in this scope [INFO] [stdout] --> src/screenshot.rs:113:40 [INFO] [stdout] | [INFO] [stdout] 113 | bmi.bmiHeader.biClrUsed * size_of::() as u32, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 75 | fn create_bitmap_headers(bmp: BITMAP) -> (BITMAPFILEHEADER, BITMAPINFO) { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HORZRES` in this scope [INFO] [stdout] --> src/screenshot.rs:121:42 [INFO] [stdout] | [INFO] [stdout] 121 | y: Point { x: GetDeviceCaps(screen_dc, HORZRES), y: GetDeviceCaps(screen_dc, VERTRES) }, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HORZRES` in this scope [INFO] [stdout] --> src/screenshot.rs:121:42 [INFO] [stdout] | [INFO] [stdout] 121 | y: Point { x: GetDeviceCaps(screen_dc, HORZRES), y: GetDeviceCaps(screen_dc, VERTRES) }, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `VERTRES` in this scope [INFO] [stdout] --> src/screenshot.rs:121:80 [INFO] [stdout] | [INFO] [stdout] 121 | y: Point { x: GetDeviceCaps(screen_dc, HORZRES), y: GetDeviceCaps(screen_dc, VERTRES) }, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `VERTRES` in this scope [INFO] [stdout] --> src/screenshot.rs:121:80 [INFO] [stdout] | [INFO] [stdout] 121 | y: Point { x: GetDeviceCaps(screen_dc, HORZRES), y: GetDeviceCaps(screen_dc, VERTRES) }, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateCompatibleDC` in this scope [INFO] [stdout] --> src/screenshot.rs:24:14 [INFO] [stdout] | [INFO] [stdout] 24 | let h_mem = CreateCompatibleDC(h_screen); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateCompatibleDC` in this scope [INFO] [stdout] --> src/screenshot.rs:24:14 [INFO] [stdout] | [INFO] [stdout] 24 | let h_mem = CreateCompatibleDC(h_screen); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateCompatibleBitmap` in this scope [INFO] [stdout] --> src/screenshot.rs:38:17 [INFO] [stdout] | [INFO] [stdout] 38 | let h_bitmap = CreateCompatibleBitmap(h_screen, (b.x - a.x).abs(), (b.y - a.y).abs()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateCompatibleBitmap` in this scope [INFO] [stdout] --> src/screenshot.rs:38:17 [INFO] [stdout] | [INFO] [stdout] 38 | let h_bitmap = CreateCompatibleBitmap(h_screen, (b.x - a.x).abs(), (b.y - a.y).abs()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SelectObject` in this scope [INFO] [stdout] --> src/screenshot.rs:39:16 [INFO] [stdout] | [INFO] [stdout] 39 | let old_obj = SelectObject(h_mem, h_bitmap as *mut c_void); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SelectObject` in this scope [INFO] [stdout] --> src/screenshot.rs:39:16 [INFO] [stdout] | [INFO] [stdout] 39 | let old_obj = SelectObject(h_mem, h_bitmap as *mut c_void); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `BitBlt` in this scope [INFO] [stdout] --> src/screenshot.rs:40:15 [INFO] [stdout] | [INFO] [stdout] 40 | let result = BitBlt(h_mem, 0, 0, (b.x - a.x).abs(), (b.y - a.y).abs(), h_screen, a.x, a.y, SRCCOPY); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `BitBlt` in this scope [INFO] [stdout] --> src/screenshot.rs:40:15 [INFO] [stdout] | [INFO] [stdout] 40 | let result = BitBlt(h_mem, 0, 0, (b.x - a.x).abs(), (b.y - a.y).abs(), h_screen, a.x, a.y, SRCCOPY); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetObjectW` in this scope [INFO] [stdout] --> src/screenshot.rs:46:15 [INFO] [stdout] | [INFO] [stdout] 46 | let result = GetObjectW(h_bitmap as *mut c_void, size_of::() as i32, &mut bmp as *mut BITMAP as *mut c_void); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetObjectW` in this scope [INFO] [stdout] --> src/screenshot.rs:46:15 [INFO] [stdout] | [INFO] [stdout] 46 | let result = GetObjectW(h_bitmap as *mut c_void, size_of::() as i32, &mut bmp as *mut BITMAP as *mut c_void); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetDIBits` in this scope [INFO] [stdout] --> src/screenshot.rs:58:15 [INFO] [stdout] | [INFO] [stdout] 58 | let result = GetDIBits(h_screen, h_bitmap, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetDIBits` in this scope [INFO] [stdout] --> src/screenshot.rs:58:15 [INFO] [stdout] | [INFO] [stdout] 58 | let result = GetDIBits(h_screen, h_bitmap, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SelectObject` in this scope [INFO] [stdout] --> src/screenshot.rs:67:2 [INFO] [stdout] | [INFO] [stdout] 67 | SelectObject(h_mem, old_obj); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SelectObject` in this scope [INFO] [stdout] --> src/screenshot.rs:67:2 [INFO] [stdout] | [INFO] [stdout] 67 | SelectObject(h_mem, old_obj); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DeleteDC` in this scope [INFO] [stdout] --> src/screenshot.rs:68:2 [INFO] [stdout] | [INFO] [stdout] 68 | DeleteDC(h_mem); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DeleteDC` in this scope [INFO] [stdout] --> src/screenshot.rs:68:2 [INFO] [stdout] | [INFO] [stdout] 68 | DeleteDC(h_mem); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DeleteObject` in this scope [INFO] [stdout] --> src/screenshot.rs:70:2 [INFO] [stdout] | [INFO] [stdout] 70 | DeleteObject(h_bitmap as *mut c_void); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DeleteObject` in this scope [INFO] [stdout] --> src/screenshot.rs:70:2 [INFO] [stdout] | [INFO] [stdout] 70 | DeleteObject(h_bitmap as *mut c_void); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetDeviceCaps` in this scope [INFO] [stdout] --> src/screenshot.rs:121:17 [INFO] [stdout] | [INFO] [stdout] 121 | y: Point { x: GetDeviceCaps(screen_dc, HORZRES), y: GetDeviceCaps(screen_dc, VERTRES) }, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetDeviceCaps` in this scope [INFO] [stdout] --> src/screenshot.rs:121:55 [INFO] [stdout] | [INFO] [stdout] 121 | y: Point { x: GetDeviceCaps(screen_dc, HORZRES), y: GetDeviceCaps(screen_dc, VERTRES) }, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetDeviceCaps` in this scope [INFO] [stdout] --> src/screenshot.rs:121:17 [INFO] [stdout] | [INFO] [stdout] 121 | y: Point { x: GetDeviceCaps(screen_dc, HORZRES), y: GetDeviceCaps(screen_dc, VERTRES) }, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetDeviceCaps` in this scope [INFO] [stdout] --> src/screenshot.rs:121:55 [INFO] [stdout] | [INFO] [stdout] 121 | y: Point { x: GetDeviceCaps(screen_dc, HORZRES), y: GetDeviceCaps(screen_dc, VERTRES) }, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 36 previous errors [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: aborting due to 36 previous errors [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: could not compile `screenshot` (lib test) due to 37 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `screenshot` (lib) due to 37 previous errors [INFO] running `Command { std: "docker" "inspect" "ba7540985739563cbc81e4a835d437f3dd6ab7765a1f137f4461495bacd23b91", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ba7540985739563cbc81e4a835d437f3dd6ab7765a1f137f4461495bacd23b91", kill_on_drop: false }` [INFO] [stdout] ba7540985739563cbc81e4a835d437f3dd6ab7765a1f137f4461495bacd23b91