[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] testing aQaTL/screenshot against beta-2020-06-03 for beta-1.45-1 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FaQaTL%2Fscreenshot" "/workspace/builds/worker-2/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/aQaTL/screenshot on toolchain beta-2020-06-03 [INFO] running `"/workspace/cargo-home/bin/cargo" "+beta-2020-06-03" "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-2/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" "+beta-2020-06-03" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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=warn" "-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" "+beta-2020-06-03" "build" "--frozen"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] a1ed9a7076fa9cdc9acf7fa2049528d67a5652df5b65524bb96beeb6f3d5c140 [INFO] running `"docker" "start" "-a" "a1ed9a7076fa9cdc9acf7fa2049528d67a5652df5b65524bb96beeb6f3d5c140"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Compiling libc v0.2.51 [INFO] [stderr] Compiling syn v0.15.30 [INFO] [stderr] Compiling either v1.5.2 [INFO] [stderr] Compiling num-rational v0.2.1 [INFO] [stderr] Compiling winapi v0.3.7 [INFO] [stderr] Compiling safe-transmute v0.10.1 [INFO] [stderr] Compiling quote v0.6.12 [INFO] [stderr] Compiling crossbeam-epoch v0.3.1 [INFO] [stderr] Compiling num-iter v0.1.37 [INFO] [stderr] Compiling png v0.14.0 [INFO] [stderr] Compiling crossbeam-deque v0.2.0 [INFO] [stderr] Compiling num_cpus v1.10.0 [INFO] [stderr] Compiling rayon-core v1.4.1 [INFO] [stderr] Compiling rayon v1.0.3 [INFO] [stderr] Compiling num-derive v0.2.4 [INFO] [stderr] Compiling jpeg-decoder v0.1.15 [INFO] [stderr] Compiling tiff v0.2.2 [INFO] [stderr] Compiling image v0.21.0 [INFO] [stderr] Compiling 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::() 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) -> Result, WinApiError> { [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] ... [INFO] [stderr] 46 | let result = GetObjectW(h_bitmap as *mut c_void, size_of::() 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::() 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: `` [INFO] [stderr] ... [INFO] [stderr] 87 | biSize: size_of::() 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: `` [INFO] [stderr] ... [INFO] [stderr] 108 | bfSize: size_of::() 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: `` [INFO] [stderr] ... [INFO] [stderr] 109 | bmi.bmiHeader.biClrUsed * size_of::() 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: `` [INFO] [stderr] ... [INFO] [stderr] 112 | bfOffBits: size_of::() 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: `` [INFO] [stderr] ... [INFO] [stderr] 113 | bmi.bmiHeader.biClrUsed * size_of::() 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" "a1ed9a7076fa9cdc9acf7fa2049528d67a5652df5b65524bb96beeb6f3d5c140"` [INFO] running `"docker" "rm" "-f" "a1ed9a7076fa9cdc9acf7fa2049528d67a5652df5b65524bb96beeb6f3d5c140"` [INFO] [stdout] a1ed9a7076fa9cdc9acf7fa2049528d67a5652df5b65524bb96beeb6f3d5c140