[INFO] updating cached repository https://github.com/aQaTL/screenshot
[INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"`
[INFO] running `"git" "rev-parse" "HEAD"`
[INFO] [stdout] 959e0d2c98435b0580ae92610b1e445515d6450e
[INFO] checking aQaTL/screenshot against master#bf1f2eedda4fa02b7c9347dd849ed73ddd43dedc for pr-70917
[INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FaQaTL%2Fscreenshot" "/workspace/builds/worker-8/source"`
[INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/aQaTL/screenshot on toolchain bf1f2eedda4fa02b7c9347dd849ed73ddd43dedc
[INFO] running `"/workspace/cargo-home/bin/cargo" "+bf1f2eedda4fa02b7c9347dd849ed73ddd43dedc" "read-manifest" "--manifest-path" "Cargo.toml"`
[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-8/source/Cargo.toml
[INFO] crate git repo https://github.com/aQaTL/screenshot already has a lockfile, it will not be regenerated
[INFO] running `"/workspace/cargo-home/bin/cargo" "+bf1f2eedda4fa02b7c9347dd849ed73ddd43dedc" "fetch" "--locked" "--manifest-path" "Cargo.toml"`
[INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+bf1f2eedda4fa02b7c9347dd849ed73ddd43dedc" "check" "--frozen" "--all" "--all-targets"`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] f1359ae3a4bc96881430317f5cdc39c5bb39fca5da9278a892f3abe1c3081a3f
[INFO] running `"docker" "start" "-a" "f1359ae3a4bc96881430317f5cdc39c5bb39fca5da9278a892f3abe1c3081a3f"`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]    Compiling syn v0.15.30
[INFO] [stderr]    Compiling num-derive v0.2.4
[INFO] [stderr]    Compiling winapi v0.3.7
[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] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]  --> src/screenshot.rs:2:13
[INFO] [stderr]   |
[INFO] [stderr] 2 | use winapi::um::wingdi::*;
[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/screenshot.rs:4:13
[INFO] [stderr]   |
[INFO] [stderr] 4 | use winapi::um::winuser::{GetDC, ReleaseDC};
[INFO] [stderr]   |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]  --> src/screenshot.rs:5:13
[INFO] [stderr]   |
[INFO] [stderr] 5 | use winapi::shared::windef::HDC;
[INFO] [stderr]   |             ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0432]: unresolved import `winapi::ctypes`
[INFO] [stderr]  --> src/screenshot.rs:3:13
[INFO] [stderr]   |
[INFO] [stderr] 3 | use winapi::ctypes::c_void;
[INFO] [stderr]   |             ^^^^^^ could not find `ctypes` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetDC` in this scope
[INFO] [stderr]   --> src/screenshot.rs:23:17
[INFO] [stderr]    |
[INFO] [stderr] 23 |     let h_screen = GetDC(null_mut());
[INFO] [stderr]    |                    ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `CreateCompatibleDC` in this scope
[INFO] [stderr]   --> src/screenshot.rs:24:14
[INFO] [stderr]    |
[INFO] [stderr] 24 |     let h_mem = CreateCompatibleDC(h_screen);
[INFO] [stderr]    |                 ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `CreateCompatibleBitmap` in this scope
[INFO] [stderr]   --> src/screenshot.rs:38:17
[INFO] [stderr]    |
[INFO] [stderr] 38 |     let h_bitmap = CreateCompatibleBitmap(h_screen, (b.x - a.x).abs(), (b.y - a.y).abs());
[INFO] [stderr]    |                    ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SelectObject` in this scope
[INFO] [stderr]   --> src/screenshot.rs:39:16
[INFO] [stderr]    |
[INFO] [stderr] 39 |     let old_obj = SelectObject(h_mem, h_bitmap as *mut c_void);
[INFO] [stderr]    |                   ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `BitBlt` in this scope
[INFO] [stderr]   --> src/screenshot.rs:40:15
[INFO] [stderr]    |
[INFO] [stderr] 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] [stderr]    |                  ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `SRCCOPY` in this scope
[INFO] [stderr]   --> src/screenshot.rs:40:93
[INFO] [stderr]    |
[INFO] [stderr] 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] [stderr]    |                                                                                                ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `BITMAP` in this scope
[INFO] [stderr]   --> src/screenshot.rs:45:16
[INFO] [stderr]    |
[INFO] [stderr] 45 |     let mut bmp = BITMAP { bmType: 0, bmWidth: 0, bmHeight: 0, bmWidthBytes: 0, bmPlanes: 0, bmBitsPixel: 0, bmBits: null_mut() };
[INFO] [stderr]    |                   ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetObjectW` in this scope
[INFO] [stderr]   --> src/screenshot.rs:46:15
[INFO] [stderr]    |
[INFO] [stderr] 46 |     let result = GetObjectW(h_bitmap as *mut c_void, size_of::<BITMAP>() as i32, &mut bmp as *mut BITMAP as *mut c_void);
[INFO] [stderr]    |                  ^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BITMAP` in this scope
[INFO] [stderr]   --> src/screenshot.rs:46:61
[INFO] [stderr]    |
[INFO] [stderr] 22 | unsafe fn screenshot_(rect: Option<Rect>) -> Result<Vec<u8>, WinApiError> {
[INFO] [stderr]    |                      - help: you might be missing a type parameter: `<BITMAP>`
[INFO] [stderr] ...
[INFO] [stderr] 46 |     let result = GetObjectW(h_bitmap as *mut c_void, size_of::<BITMAP>() as i32, &mut bmp as *mut BITMAP as *mut c_void);
[INFO] [stderr]    |                                                                ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BITMAP` in this scope
[INFO] [stderr]   --> src/screenshot.rs:46:96
[INFO] [stderr]    |
[INFO] [stderr] 46 |     let result = GetObjectW(h_bitmap as *mut c_void, size_of::<BITMAP>() as i32, &mut bmp as *mut BITMAP as *mut c_void);
[INFO] [stderr]    |                                                                                                   ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetDIBits` in this scope
[INFO] [stderr]   --> src/screenshot.rs:58:15
[INFO] [stderr]    |
[INFO] [stderr] 58 |     let result = GetDIBits(h_screen, h_bitmap,
[INFO] [stderr]    |                  ^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BITMAPINFO` in this scope
[INFO] [stderr]   --> src/screenshot.rs:61:27
[INFO] [stderr]    |
[INFO] [stderr] 61 |                            &mut bmi as *mut BITMAPINFO,
[INFO] [stderr]    |                                             ^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `DIB_RGB_COLORS` in this scope
[INFO] [stderr]   --> src/screenshot.rs:62:10
[INFO] [stderr]    |
[INFO] [stderr] 62 |                            DIB_RGB_COLORS);
[INFO] [stderr]    |                            ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SelectObject` in this scope
[INFO] [stderr]   --> src/screenshot.rs:67:2
[INFO] [stderr]    |
[INFO] [stderr] 67 |     SelectObject(h_mem, old_obj);
[INFO] [stderr]    |     ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `DeleteDC` in this scope
[INFO] [stderr]   --> src/screenshot.rs:68:2
[INFO] [stderr]    |
[INFO] [stderr] 68 |     DeleteDC(h_mem);
[INFO] [stderr]    |     ^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `ReleaseDC` in this scope
[INFO] [stderr]   --> src/screenshot.rs:69:2
[INFO] [stderr]    |
[INFO] [stderr] 69 |     ReleaseDC(null_mut(), h_screen);
[INFO] [stderr]    |     ^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `DeleteObject` in this scope
[INFO] [stderr]   --> src/screenshot.rs:70:2
[INFO] [stderr]    |
[INFO] [stderr] 70 |     DeleteObject(h_bitmap as *mut c_void);
[INFO] [stderr]    |     ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BITMAP` in this scope
[INFO] [stderr]   --> src/screenshot.rs:75:31
[INFO] [stderr]    |
[INFO] [stderr] 75 | fn create_bitmap_headers(bmp: BITMAP) -> (BITMAPFILEHEADER, BITMAPINFO) {
[INFO] [stderr]    |                               ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BITMAPFILEHEADER` in this scope
[INFO] [stderr]   --> src/screenshot.rs:75:43
[INFO] [stderr]    |
[INFO] [stderr] 75 | fn create_bitmap_headers(bmp: BITMAP) -> (BITMAPFILEHEADER, BITMAPINFO) {
[INFO] [stderr]    |                                           ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BITMAPINFO` in this scope
[INFO] [stderr]   --> src/screenshot.rs:75:61
[INFO] [stderr]    |
[INFO] [stderr] 75 | fn create_bitmap_headers(bmp: BITMAP) -> (BITMAPFILEHEADER, BITMAPINFO) {
[INFO] [stderr]    |                                                             ^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `BITMAPINFO` in this scope
[INFO] [stderr]   --> src/screenshot.rs:85:12
[INFO] [stderr]    |
[INFO] [stderr] 85 |     let bmi = BITMAPINFO {
[INFO] [stderr]    |               ^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `BITMAPINFOHEADER` in this scope
[INFO] [stderr]   --> src/screenshot.rs:86:14
[INFO] [stderr]    |
[INFO] [stderr] 86 |         bmiHeader: BITMAPINFOHEADER {
[INFO] [stderr]    |                    ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BITMAPINFOHEADER` in this scope
[INFO] [stderr]   --> src/screenshot.rs:87:22
[INFO] [stderr]    |
[INFO] [stderr] 75 | fn create_bitmap_headers(bmp: BITMAP) -> (BITMAPFILEHEADER, BITMAPINFO) {
[INFO] [stderr]    |                         - help: you might be missing a type parameter: `<BITMAPINFOHEADER>`
[INFO] [stderr] ...
[INFO] [stderr] 87 |             biSize: size_of::<BITMAPINFOHEADER>() as u32,
[INFO] [stderr]    |                               ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `BI_RGB` in this scope
[INFO] [stderr]   --> src/screenshot.rs:92:19
[INFO] [stderr]    |
[INFO] [stderr] 92 |             biCompression: BI_RGB,
[INFO] [stderr]    |                            ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `RGBQUAD` in this scope
[INFO] [stderr]   --> src/screenshot.rs:99:15
[INFO] [stderr]    |
[INFO] [stderr] 99 |         bmiColors: [RGBQUAD {
[INFO] [stderr]    |                     ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `BITMAPFILEHEADER` in this scope
[INFO] [stderr]    --> src/screenshot.rs:106:13
[INFO] [stderr]     |
[INFO] [stderr] 106 |     let bmfh = BITMAPFILEHEADER {
[INFO] [stderr]     |                ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BITMAPFILEHEADER` in this scope
[INFO] [stderr]    --> src/screenshot.rs:108:21
[INFO] [stderr]     |
[INFO] [stderr] 75  | fn create_bitmap_headers(bmp: BITMAP) -> (BITMAPFILEHEADER, BITMAPINFO) {
[INFO] [stderr]     |                         - help: you might be missing a type parameter: `<BITMAPFILEHEADER>`
[INFO] [stderr] ...
[INFO] [stderr] 108 |         bfSize: size_of::<BITMAPFILEHEADER>() as u32 + bmi.bmiHeader.biSize +
[INFO] [stderr]     |                           ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `RGBQUAD` in this scope
[INFO] [stderr]    --> src/screenshot.rs:109:40
[INFO] [stderr]     |
[INFO] [stderr] 75  | fn create_bitmap_headers(bmp: BITMAP) -> (BITMAPFILEHEADER, BITMAPINFO) {
[INFO] [stderr]     |                         - help: you might be missing a type parameter: `<RGBQUAD>`
[INFO] [stderr] ...
[INFO] [stderr] 109 |             bmi.bmiHeader.biClrUsed * size_of::<RGBQUAD>() as u32 + bmi.bmiHeader.biSizeImage,
[INFO] [stderr]     |                                                 ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BITMAPFILEHEADER` in this scope
[INFO] [stderr]    --> src/screenshot.rs:112:24
[INFO] [stderr]     |
[INFO] [stderr] 75  | fn create_bitmap_headers(bmp: BITMAP) -> (BITMAPFILEHEADER, BITMAPINFO) {
[INFO] [stderr]     |                         - help: you might be missing a type parameter: `<BITMAPFILEHEADER>`
[INFO] [stderr] ...
[INFO] [stderr] 112 |         bfOffBits: size_of::<BITMAPFILEHEADER>() as u32 + bmi.bmiHeader.biSize +
[INFO] [stderr]     |                              ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `RGBQUAD` in this scope
[INFO] [stderr]    --> src/screenshot.rs:113:40
[INFO] [stderr]     |
[INFO] [stderr] 75  | fn create_bitmap_headers(bmp: BITMAP) -> (BITMAPFILEHEADER, BITMAPINFO) {
[INFO] [stderr]     |                         - help: you might be missing a type parameter: `<RGBQUAD>`
[INFO] [stderr] ...
[INFO] [stderr] 113 |             bmi.bmiHeader.biClrUsed * size_of::<RGBQUAD>() as u32,
[INFO] [stderr]     |                                                 ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HDC` in this scope
[INFO] [stderr]    --> src/screenshot.rs:118:33
[INFO] [stderr]     |
[INFO] [stderr] 118 | unsafe fn screen_res(screen_dc: HDC) -> Rect {
[INFO] [stderr]     |                                 ^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetDeviceCaps` in this scope
[INFO] [stderr]    --> src/screenshot.rs:121:17
[INFO] [stderr]     |
[INFO] [stderr] 121 |         y: Point { x: GetDeviceCaps(screen_dc, HORZRES), y: GetDeviceCaps(screen_dc, VERTRES) },
[INFO] [stderr]     |                       ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `HORZRES` in this scope
[INFO] [stderr]    --> src/screenshot.rs:121:42
[INFO] [stderr]     |
[INFO] [stderr] 121 |         y: Point { x: GetDeviceCaps(screen_dc, HORZRES), y: GetDeviceCaps(screen_dc, VERTRES) },
[INFO] [stderr]     |                                                ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetDeviceCaps` in this scope
[INFO] [stderr]    --> src/screenshot.rs:121:55
[INFO] [stderr]     |
[INFO] [stderr] 121 |         y: Point { x: GetDeviceCaps(screen_dc, HORZRES), y: GetDeviceCaps(screen_dc, VERTRES) },
[INFO] [stderr]     |                                                             ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `VERTRES` in this scope
[INFO] [stderr]    --> src/screenshot.rs:121:80
[INFO] [stderr]     |
[INFO] [stderr] 121 |         y: Point { x: GetDeviceCaps(screen_dc, HORZRES), y: GetDeviceCaps(screen_dc, VERTRES) },
[INFO] [stderr]     |                                                                                      ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error: aborting due to 39 previous errors
[INFO] [stderr] 
[INFO] [stderr] Some errors have detailed explanations: E0412, E0422, E0425, E0432, E0433.
[INFO] [stderr] For more information about an error, try `rustc --explain E0412`.
[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] [stderr] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stderr]  --> src/screenshot.rs:2:13
[INFO] [stderr]   |
[INFO] [stderr] 2 | use winapi::um::wingdi::*;
[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/screenshot.rs:4:13
[INFO] [stderr]   |
[INFO] [stderr] 4 | use winapi::um::winuser::{GetDC, ReleaseDC};
[INFO] [stderr]   |             ^^ could not find `um` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `shared` in `winapi`
[INFO] [stderr]  --> src/screenshot.rs:5:13
[INFO] [stderr]   |
[INFO] [stderr] 5 | use winapi::shared::windef::HDC;
[INFO] [stderr]   |             ^^^^^^ could not find `shared` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0432]: unresolved import `winapi::ctypes`
[INFO] [stderr]  --> src/screenshot.rs:3:13
[INFO] [stderr]   |
[INFO] [stderr] 3 | use winapi::ctypes::c_void;
[INFO] [stderr]   |             ^^^^^^ could not find `ctypes` in `winapi`
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetDC` in this scope
[INFO] [stderr]   --> src/screenshot.rs:23:17
[INFO] [stderr]    |
[INFO] [stderr] 23 |     let h_screen = GetDC(null_mut());
[INFO] [stderr]    |                    ^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `CreateCompatibleDC` in this scope
[INFO] [stderr]   --> src/screenshot.rs:24:14
[INFO] [stderr]    |
[INFO] [stderr] 24 |     let h_mem = CreateCompatibleDC(h_screen);
[INFO] [stderr]    |                 ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `CreateCompatibleBitmap` in this scope
[INFO] [stderr]   --> src/screenshot.rs:38:17
[INFO] [stderr]    |
[INFO] [stderr] 38 |     let h_bitmap = CreateCompatibleBitmap(h_screen, (b.x - a.x).abs(), (b.y - a.y).abs());
[INFO] [stderr]    |                    ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SelectObject` in this scope
[INFO] [stderr]   --> src/screenshot.rs:39:16
[INFO] [stderr]    |
[INFO] [stderr] 39 |     let old_obj = SelectObject(h_mem, h_bitmap as *mut c_void);
[INFO] [stderr]    |                   ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `BitBlt` in this scope
[INFO] [stderr]   --> src/screenshot.rs:40:15
[INFO] [stderr]    |
[INFO] [stderr] 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] [stderr]    |                  ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `SRCCOPY` in this scope
[INFO] [stderr]   --> src/screenshot.rs:40:93
[INFO] [stderr]    |
[INFO] [stderr] 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] [stderr]    |                                                                                                ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `BITMAP` in this scope
[INFO] [stderr]   --> src/screenshot.rs:45:16
[INFO] [stderr]    |
[INFO] [stderr] 45 |     let mut bmp = BITMAP { bmType: 0, bmWidth: 0, bmHeight: 0, bmWidthBytes: 0, bmPlanes: 0, bmBitsPixel: 0, bmBits: null_mut() };
[INFO] [stderr]    |                   ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetObjectW` in this scope
[INFO] [stderr]   --> src/screenshot.rs:46:15
[INFO] [stderr]    |
[INFO] [stderr] 46 |     let result = GetObjectW(h_bitmap as *mut c_void, size_of::<BITMAP>() as i32, &mut bmp as *mut BITMAP as *mut c_void);
[INFO] [stderr]    |                  ^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BITMAP` in this scope
[INFO] [stderr]   --> src/screenshot.rs:46:61
[INFO] [stderr]    |
[INFO] [stderr] 22 | unsafe fn screenshot_(rect: Option<Rect>) -> Result<Vec<u8>, WinApiError> {
[INFO] [stderr]    |                      - help: you might be missing a type parameter: `<BITMAP>`
[INFO] [stderr] ...
[INFO] [stderr] 46 |     let result = GetObjectW(h_bitmap as *mut c_void, size_of::<BITMAP>() as i32, &mut bmp as *mut BITMAP as *mut c_void);
[INFO] [stderr]    |                                                                ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BITMAP` in this scope
[INFO] [stderr]   --> src/screenshot.rs:46:96
[INFO] [stderr]    |
[INFO] [stderr] 46 |     let result = GetObjectW(h_bitmap as *mut c_void, size_of::<BITMAP>() as i32, &mut bmp as *mut BITMAP as *mut c_void);
[INFO] [stderr]    |                                                                                                   ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetDIBits` in this scope
[INFO] [stderr]   --> src/screenshot.rs:58:15
[INFO] [stderr]    |
[INFO] [stderr] 58 |     let result = GetDIBits(h_screen, h_bitmap,
[INFO] [stderr]    |                  ^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BITMAPINFO` in this scope
[INFO] [stderr]   --> src/screenshot.rs:61:27
[INFO] [stderr]    |
[INFO] [stderr] 61 |                            &mut bmi as *mut BITMAPINFO,
[INFO] [stderr]    |                                             ^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `DIB_RGB_COLORS` in this scope
[INFO] [stderr]   --> src/screenshot.rs:62:10
[INFO] [stderr]    |
[INFO] [stderr] 62 |                            DIB_RGB_COLORS);
[INFO] [stderr]    |                            ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `SelectObject` in this scope
[INFO] [stderr]   --> src/screenshot.rs:67:2
[INFO] [stderr]    |
[INFO] [stderr] 67 |     SelectObject(h_mem, old_obj);
[INFO] [stderr]    |     ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `DeleteDC` in this scope
[INFO] [stderr]   --> src/screenshot.rs:68:2
[INFO] [stderr]    |
[INFO] [stderr] 68 |     DeleteDC(h_mem);
[INFO] [stderr]    |     ^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `ReleaseDC` in this scope
[INFO] [stderr]   --> src/screenshot.rs:69:2
[INFO] [stderr]    |
[INFO] [stderr] 69 |     ReleaseDC(null_mut(), h_screen);
[INFO] [stderr]    |     ^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `DeleteObject` in this scope
[INFO] [stderr]   --> src/screenshot.rs:70:2
[INFO] [stderr]    |
[INFO] [stderr] 70 |     DeleteObject(h_bitmap as *mut c_void);
[INFO] [stderr]    |     ^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BITMAP` in this scope
[INFO] [stderr]   --> src/screenshot.rs:75:31
[INFO] [stderr]    |
[INFO] [stderr] 75 | fn create_bitmap_headers(bmp: BITMAP) -> (BITMAPFILEHEADER, BITMAPINFO) {
[INFO] [stderr]    |                               ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BITMAPFILEHEADER` in this scope
[INFO] [stderr]   --> src/screenshot.rs:75:43
[INFO] [stderr]    |
[INFO] [stderr] 75 | fn create_bitmap_headers(bmp: BITMAP) -> (BITMAPFILEHEADER, BITMAPINFO) {
[INFO] [stderr]    |                                           ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BITMAPINFO` in this scope
[INFO] [stderr]   --> src/screenshot.rs:75:61
[INFO] [stderr]    |
[INFO] [stderr] 75 | fn create_bitmap_headers(bmp: BITMAP) -> (BITMAPFILEHEADER, BITMAPINFO) {
[INFO] [stderr]    |                                                             ^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `BITMAPINFO` in this scope
[INFO] [stderr]   --> src/screenshot.rs:85:12
[INFO] [stderr]    |
[INFO] [stderr] 85 |     let bmi = BITMAPINFO {
[INFO] [stderr]    |               ^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `BITMAPINFOHEADER` in this scope
[INFO] [stderr]   --> src/screenshot.rs:86:14
[INFO] [stderr]    |
[INFO] [stderr] 86 |         bmiHeader: BITMAPINFOHEADER {
[INFO] [stderr]    |                    ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BITMAPINFOHEADER` in this scope
[INFO] [stderr]   --> src/screenshot.rs:87:22
[INFO] [stderr]    |
[INFO] [stderr] 75 | fn create_bitmap_headers(bmp: BITMAP) -> (BITMAPFILEHEADER, BITMAPINFO) {
[INFO] [stderr]    |                         - help: you might be missing a type parameter: `<BITMAPINFOHEADER>`
[INFO] [stderr] ...
[INFO] [stderr] 87 |             biSize: size_of::<BITMAPINFOHEADER>() as u32,
[INFO] [stderr]    |                               ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `BI_RGB` in this scope
[INFO] [stderr]   --> src/screenshot.rs:92:19
[INFO] [stderr]    |
[INFO] [stderr] 92 |             biCompression: BI_RGB,
[INFO] [stderr]    |                            ^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `RGBQUAD` in this scope
[INFO] [stderr]   --> src/screenshot.rs:99:15
[INFO] [stderr]    |
[INFO] [stderr] 99 |         bmiColors: [RGBQUAD {
[INFO] [stderr]    |                     ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0422]: cannot find struct, variant or union type `BITMAPFILEHEADER` in this scope
[INFO] [stderr]    --> src/screenshot.rs:106:13
[INFO] [stderr]     |
[INFO] [stderr] 106 |     let bmfh = BITMAPFILEHEADER {
[INFO] [stderr]     |                ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BITMAPFILEHEADER` in this scope
[INFO] [stderr]    --> src/screenshot.rs:108:21
[INFO] [stderr]     |
[INFO] [stderr] 75  | fn create_bitmap_headers(bmp: BITMAP) -> (BITMAPFILEHEADER, BITMAPINFO) {
[INFO] [stderr]     |                         - help: you might be missing a type parameter: `<BITMAPFILEHEADER>`
[INFO] [stderr] ...
[INFO] [stderr] 108 |         bfSize: size_of::<BITMAPFILEHEADER>() as u32 + bmi.bmiHeader.biSize +
[INFO] [stderr]     |                           ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `RGBQUAD` in this scope
[INFO] [stderr]    --> src/screenshot.rs:109:40
[INFO] [stderr]     |
[INFO] [stderr] 75  | fn create_bitmap_headers(bmp: BITMAP) -> (BITMAPFILEHEADER, BITMAPINFO) {
[INFO] [stderr]     |                         - help: you might be missing a type parameter: `<RGBQUAD>`
[INFO] [stderr] ...
[INFO] [stderr] 109 |             bmi.bmiHeader.biClrUsed * size_of::<RGBQUAD>() as u32 + bmi.bmiHeader.biSizeImage,
[INFO] [stderr]     |                                                 ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `BITMAPFILEHEADER` in this scope
[INFO] [stderr]    --> src/screenshot.rs:112:24
[INFO] [stderr]     |
[INFO] [stderr] 75  | fn create_bitmap_headers(bmp: BITMAP) -> (BITMAPFILEHEADER, BITMAPINFO) {
[INFO] [stderr]     |                         - help: you might be missing a type parameter: `<BITMAPFILEHEADER>`
[INFO] [stderr] ...
[INFO] [stderr] 112 |         bfOffBits: size_of::<BITMAPFILEHEADER>() as u32 + bmi.bmiHeader.biSize +
[INFO] [stderr]     |                              ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `RGBQUAD` in this scope
[INFO] [stderr]    --> src/screenshot.rs:113:40
[INFO] [stderr]     |
[INFO] [stderr] 75  | fn create_bitmap_headers(bmp: BITMAP) -> (BITMAPFILEHEADER, BITMAPINFO) {
[INFO] [stderr]     |                         - help: you might be missing a type parameter: `<RGBQUAD>`
[INFO] [stderr] ...
[INFO] [stderr] 113 |             bmi.bmiHeader.biClrUsed * size_of::<RGBQUAD>() as u32,
[INFO] [stderr]     |                                                 ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `HDC` in this scope
[INFO] [stderr]    --> src/screenshot.rs:118:33
[INFO] [stderr]     |
[INFO] [stderr] 118 | unsafe fn screen_res(screen_dc: HDC) -> Rect {
[INFO] [stderr]     |                                 ^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetDeviceCaps` in this scope
[INFO] [stderr]    --> src/screenshot.rs:121:17
[INFO] [stderr]     |
[INFO] [stderr] 121 |         y: Point { x: GetDeviceCaps(screen_dc, HORZRES), y: GetDeviceCaps(screen_dc, VERTRES) },
[INFO] [stderr]     |                       ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `HORZRES` in this scope
[INFO] [stderr]    --> src/screenshot.rs:121:42
[INFO] [stderr]     |
[INFO] [stderr] 121 |         y: Point { x: GetDeviceCaps(screen_dc, HORZRES), y: GetDeviceCaps(screen_dc, VERTRES) },
[INFO] [stderr]     |                                                ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `GetDeviceCaps` in this scope
[INFO] [stderr]    --> src/screenshot.rs:121:55
[INFO] [stderr]     |
[INFO] [stderr] 121 |         y: Point { x: GetDeviceCaps(screen_dc, HORZRES), y: GetDeviceCaps(screen_dc, VERTRES) },
[INFO] [stderr]     |                                                             ^^^^^^^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find value `VERTRES` in this scope
[INFO] [stderr]    --> src/screenshot.rs:121:80
[INFO] [stderr]     |
[INFO] [stderr] 121 |         y: Point { x: GetDeviceCaps(screen_dc, HORZRES), y: GetDeviceCaps(screen_dc, VERTRES) },
[INFO] [stderr]     |                                                                                      ^^^^^^^ not found in this scope
[INFO] [stderr] 
[INFO] [stderr] error: aborting due to 39 previous errors
[INFO] [stderr] 
[INFO] [stderr] Some errors have detailed explanations: E0412, E0422, E0425, E0432, E0433.
[INFO] [stderr] For more information about an error, try `rustc --explain E0412`.
[INFO] [stderr] error: could not compile `screenshot`.
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] running `"docker" "inspect" "f1359ae3a4bc96881430317f5cdc39c5bb39fca5da9278a892f3abe1c3081a3f"`
[INFO] running `"docker" "rm" "-f" "f1359ae3a4bc96881430317f5cdc39c5bb39fca5da9278a892f3abe1c3081a3f"`
[INFO] [stdout] f1359ae3a4bc96881430317f5cdc39c5bb39fca5da9278a892f3abe1c3081a3f
