[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 against try#f47dd4da3ae8c32c9e65d307bfe640b143e674df for pr-77526 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FaQaTL%2Fscreenshot" "/workspace/builds/worker-9/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/aQaTL/screenshot on toolchain f47dd4da3ae8c32c9e65d307bfe640b143e674df [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/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-9/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: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded cfg-if v0.1.7 [INFO] [stderr] Downloaded quote v0.6.12 [INFO] [stderr] Downloaded syn v0.15.30 [INFO] [stderr] Downloaded libc v0.2.51 [INFO] [stderr] Downloaded safe-transmute v0.10.1 [INFO] [stderr] Downloaded image v0.21.0 [INFO] [stderr] Downloaded png v0.14.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9593b9b89a0ef66903aac636fcc0d76201004ef4bf916ad64ec3175dab50a998 [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" "9593b9b89a0ef66903aac636fcc0d76201004ef4bf916ad64ec3175dab50a998", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9593b9b89a0ef66903aac636fcc0d76201004ef4bf916ad64ec3175dab50a998", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9593b9b89a0ef66903aac636fcc0d76201004ef4bf916ad64ec3175dab50a998", kill_on_drop: false }` [INFO] [stdout] 9593b9b89a0ef66903aac636fcc0d76201004ef4bf916ad64ec3175dab50a998 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 09d6e444ad65f6a97af6c2c196d4e03b569b5648a96ccd10e19348cc0b12feb7 [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" "09d6e444ad65f6a97af6c2c196d4e03b569b5648a96ccd10e19348cc0b12feb7", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling num-traits v0.2.6 [INFO] [stderr] Checking cfg-if v0.1.7 [INFO] [stderr] Compiling libc v0.2.51 [INFO] [stderr] Compiling proc-macro2 v0.4.27 [INFO] [stderr] Checking nodrop v0.1.13 [INFO] [stderr] Compiling byteorder v1.3.1 [INFO] [stderr] Compiling rayon-core v1.4.1 [INFO] [stderr] Checking lazy_static v1.3.0 [INFO] [stderr] Compiling num-integer v0.1.39 [INFO] [stderr] Compiling syn v0.15.30 [INFO] [stderr] Compiling num-derive v0.2.4 [INFO] [stderr] Compiling rayon v1.0.3 [INFO] [stderr] Compiling num-iter v0.1.37 [INFO] [stderr] Checking adler32 v1.0.3 [INFO] [stderr] Compiling num-rational v0.2.1 [INFO] [stderr] Checking either v1.5.2 [INFO] [stderr] Checking bitflags v1.0.4 [INFO] [stderr] Compiling winapi v0.3.7 [INFO] [stderr] Checking crossbeam-utils v0.2.2 [INFO] [stderr] Checking gif v0.10.1 [INFO] [stderr] Checking arrayvec v0.4.10 [INFO] [stderr] Checking inflate v0.4.5 [INFO] [stderr] Checking crossbeam-epoch v0.3.1 [INFO] [stderr] Checking crossbeam-deque v0.2.0 [INFO] [stderr] Checking deflate v0.7.19 [INFO] [stderr] Compiling quote v0.6.12 [INFO] [stderr] Checking num_cpus v1.10.0 [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: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: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[E0425]: cannot find function, tuple struct or tuple variant `GetDC` in this scope [INFO] [stdout] --> src/screenshot.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | let h_screen = GetDC(null_mut()); [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 `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 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[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[E0412]: cannot find type `BITMAP` in this scope [INFO] [stdout] --> src/screenshot.rs:46:61 [INFO] [stdout] | [INFO] [stdout] 22 | unsafe fn screenshot_(rect: Option) -> Result, WinApiError> { [INFO] [stdout] | - help: you might be missing a type parameter: `` [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 `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 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[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[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[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 `ReleaseDC` in this scope [INFO] [stdout] --> src/screenshot.rs:69:2 [INFO] [stdout] | [INFO] [stdout] 69 | ReleaseDC(null_mut(), 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 `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[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[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 `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[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[E0412]: cannot find type `BITMAPINFOHEADER` in this scope [INFO] [stdout] --> src/screenshot.rs:87:22 [INFO] [stdout] | [INFO] [stdout] 75 | fn create_bitmap_headers(bmp: BITMAP) -> (BITMAPFILEHEADER, BITMAPINFO) { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 87 | biSize: size_of::() as u32, [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[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 `BITMAPFILEHEADER` in this scope [INFO] [stdout] --> src/screenshot.rs:108:21 [INFO] [stdout] | [INFO] [stdout] 75 | fn create_bitmap_headers(bmp: BITMAP) -> (BITMAPFILEHEADER, BITMAPINFO) { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 108 | bfSize: size_of::() as u32 + bmi.bmiHeader.biSize + [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] 75 | fn create_bitmap_headers(bmp: BITMAP) -> (BITMAPFILEHEADER, BITMAPINFO) { [INFO] [stdout] | - help: you might be missing a type parameter: `` [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] [INFO] [stdout] error[E0412]: cannot find type `BITMAPFILEHEADER` in this scope [INFO] [stdout] --> src/screenshot.rs:112:24 [INFO] [stdout] | [INFO] [stdout] 75 | fn create_bitmap_headers(bmp: BITMAP) -> (BITMAPFILEHEADER, BITMAPINFO) { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 112 | bfOffBits: size_of::() as u32 + bmi.bmiHeader.biSize + [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:113:40 [INFO] [stdout] | [INFO] [stdout] 75 | fn create_bitmap_headers(bmp: BITMAP) -> (BITMAPFILEHEADER, BITMAPINFO) { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 113 | bmi.bmiHeader.biClrUsed * size_of::() as u32, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HDC` in this scope [INFO] [stdout] --> src/screenshot.rs:118:33 [INFO] [stdout] | [INFO] [stdout] 118 | unsafe fn screen_res(screen_dc: HDC) -> Rect { [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 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 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 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: aborting due to 39 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[E0425]: cannot find function, tuple struct or tuple variant `GetDC` in this scope [INFO] [stdout] --> src/screenshot.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | let h_screen = GetDC(null_mut()); [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 `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 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[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[E0412]: cannot find type `BITMAP` in this scope [INFO] [stdout] --> src/screenshot.rs:46:61 [INFO] [stdout] | [INFO] [stdout] 22 | unsafe fn screenshot_(rect: Option) -> Result, WinApiError> { [INFO] [stdout] | - help: you might be missing a type parameter: `` [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 `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 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[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[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[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 `ReleaseDC` in this scope [INFO] [stdout] --> src/screenshot.rs:69:2 [INFO] [stdout] | [INFO] [stdout] 69 | ReleaseDC(null_mut(), 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 `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[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[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 `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[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[E0412]: cannot find type `BITMAPINFOHEADER` in this scope [INFO] [stdout] --> src/screenshot.rs:87:22 [INFO] [stdout] | [INFO] [stdout] 75 | fn create_bitmap_headers(bmp: BITMAP) -> (BITMAPFILEHEADER, BITMAPINFO) { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 87 | biSize: size_of::() as u32, [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[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 `BITMAPFILEHEADER` in this scope [INFO] [stdout] --> src/screenshot.rs:108:21 [INFO] [stdout] | [INFO] [stdout] 75 | fn create_bitmap_headers(bmp: BITMAP) -> (BITMAPFILEHEADER, BITMAPINFO) { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 108 | bfSize: size_of::() as u32 + bmi.bmiHeader.biSize + [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] 75 | fn create_bitmap_headers(bmp: BITMAP) -> (BITMAPFILEHEADER, BITMAPINFO) { [INFO] [stdout] | - help: you might be missing a type parameter: `` [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] [INFO] [stdout] error[E0412]: cannot find type `BITMAPFILEHEADER` in this scope [INFO] [stdout] --> src/screenshot.rs:112:24 [INFO] [stdout] | [INFO] [stdout] 75 | fn create_bitmap_headers(bmp: BITMAP) -> (BITMAPFILEHEADER, BITMAPINFO) { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 112 | bfOffBits: size_of::() as u32 + bmi.bmiHeader.biSize + [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:113:40 [INFO] [stdout] | [INFO] [stdout] 75 | fn create_bitmap_headers(bmp: BITMAP) -> (BITMAPFILEHEADER, BITMAPINFO) { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 113 | bmi.bmiHeader.biClrUsed * size_of::() as u32, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HDC` in this scope [INFO] [stdout] --> src/screenshot.rs:118:33 [INFO] [stdout] | [INFO] [stdout] 118 | unsafe fn screen_res(screen_dc: HDC) -> Rect { [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 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 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 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] [stderr] error: could not compile `screenshot` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 39 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: build failed [INFO] running `Command { std: "docker" "inspect" "09d6e444ad65f6a97af6c2c196d4e03b569b5648a96ccd10e19348cc0b12feb7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "09d6e444ad65f6a97af6c2c196d4e03b569b5648a96ccd10e19348cc0b12feb7", kill_on_drop: false }` [INFO] [stdout] 09d6e444ad65f6a97af6c2c196d4e03b569b5648a96ccd10e19348cc0b12feb7