[INFO] fetching crate monitor-control-win 0.1.1... [INFO] checking monitor-control-win-0.1.1 against master#5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f for pr-87248 [INFO] extracting crate monitor-control-win 0.1.1 into /workspace/builds/worker-0/source [INFO] validating manifest of crates.io crate monitor-control-win 0.1.1 on toolchain 5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate monitor-control-win 0.1.1 [INFO] finished tweaking crates.io crate monitor-control-win 0.1.1 [INFO] tweaked toml for crates.io crate monitor-control-win 0.1.1 written to /workspace/builds/worker-0/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3581c6045d680715c7db02566fcacf5eb3fa635b82a45c285142f4855b31e839 [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" "3581c6045d680715c7db02566fcacf5eb3fa635b82a45c285142f4855b31e839", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3581c6045d680715c7db02566fcacf5eb3fa635b82a45c285142f4855b31e839", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3581c6045d680715c7db02566fcacf5eb3fa635b82a45c285142f4855b31e839", kill_on_drop: false }` [INFO] [stdout] 3581c6045d680715c7db02566fcacf5eb3fa635b82a45c285142f4855b31e839 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b133b7534a3d7c55bd56a9ddcfa9a2c4d3b7f8ac96d0e621bb7310def9d7264a [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" "b133b7534a3d7c55bd56a9ddcfa9a2c4d3b7f8ac96d0e621bb7310def9d7264a", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.98 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling xml-rs v0.8.3 [INFO] [stderr] Compiling syn v1.0.74 [INFO] [stderr] Checking smallvec v1.6.1 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling nix v0.18.0 [INFO] [stderr] Compiling winapi v0.3.9 [INFO] [stderr] Checking xdg v2.2.0 [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Checking utfx v0.1.0 [INFO] [stderr] Checking pin-project-lite v0.2.7 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking libloading v0.7.0 [INFO] [stderr] Checking libloading v0.6.7 [INFO] [stderr] Checking instant v0.1.10 [INFO] [stderr] Checking tracing-core v0.1.18 [INFO] [stderr] Checking walkdir v2.3.2 [INFO] [stderr] Checking lock_api v0.4.4 [INFO] [stderr] Checking memchr v2.4.0 [INFO] [stderr] Checking dlib v0.5.0 [INFO] [stderr] Checking dlib v0.4.2 [INFO] [stderr] Checking andrew v0.3.1 [INFO] [stderr] Compiling nom v6.1.2 [INFO] [stderr] Compiling wayland-sys v0.28.6 [INFO] [stderr] Compiling x11-dl v2.18.5 [INFO] [stderr] Compiling wayland-scanner v0.28.6 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking nix v0.20.0 [INFO] [stderr] Checking net2 v0.2.37 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking parking_lot_core v0.8.3 [INFO] [stderr] Checking memmap2 v0.1.0 [INFO] [stderr] Checking raw-window-handle v0.3.3 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Checking parking_lot v0.11.1 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Checking xcursor v0.3.3 [INFO] [stderr] Compiling wayland-client v0.28.6 [INFO] [stderr] Compiling wayland-protocols v0.28.6 [INFO] [stderr] Checking mio-extras v2.0.6 [INFO] [stderr] Checking calloop v0.6.5 [INFO] [stderr] Checking wayland-commons v0.28.6 [INFO] [stderr] Compiling thiserror-impl v1.0.26 [INFO] [stderr] Compiling tracing-attributes v0.1.15 [INFO] [stderr] Checking wayland-cursor v0.28.6 [INFO] [stderr] Checking thiserror v1.0.26 [INFO] [stderr] Checking registry v1.2.0 [INFO] [stderr] Checking tracing v0.1.26 [INFO] [stderr] Checking monitor-control-win v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/lib.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | shared::{ [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/lib.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | um::{ [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `registry::Hive`, `registry::RegKey`, `registry::Security` [INFO] [stdout] --> src/lib.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | use registry::{Hive, RegKey, Security}; [INFO] [stdout] | ^^^^ ^^^^^^ ^^^^^^^^ no `Security` in the root [INFO] [stdout] | | | [INFO] [stdout] | | no `RegKey` in the root [INFO] [stdout] | no `Hive` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BOOL` [INFO] [stdout] --> src/lib.rs:132:13 [INFO] [stdout] | [INFO] [stdout] 132 | BOOL::from(true) // continue enumerating [INFO] [stdout] | ^^^^ use of undeclared type `BOOL` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `value` in `registry` [INFO] [stdout] --> src/lib.rs:186:23 [INFO] [stdout] | [INFO] [stdout] 186 | registry::value::Data::Binary(bytes) => bytes, [INFO] [stdout] | ^^^^^ could not find `value` in `registry` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `key` in `registry` [INFO] [stdout] --> src/lib.rs:207:74 [INFO] [stdout] | [INFO] [stdout] 207 | fn driver_key(driver_id: &str) -> Result { [INFO] [stdout] | ^^^ could not find `key` in `registry` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `key` in `registry` [INFO] [stdout] --> src/lib.rs:248:27 [INFO] [stdout] | [INFO] [stdout] 248 | Key(#[from] registry::key::Error), [INFO] [stdout] | ^^^ could not find `key` in `registry` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `value` in `registry` [INFO] [stdout] --> src/lib.rs:250:29 [INFO] [stdout] | [INFO] [stdout] 250 | Value(#[from] registry::value::Error), [INFO] [stdout] | ^^^^^ could not find `value` in `registry` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `iter` in `registry` [INFO] [stdout] --> src/lib.rs:252:31 [INFO] [stdout] | [INFO] [stdout] 252 | KeyIter(#[from] registry::iter::keys::Error), [INFO] [stdout] | ^^^^ could not find `iter` in `registry` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HWND` in this scope [INFO] [stdout] --> src/lib.rs:90:33 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn intersecting(window: HWND) -> Result, MonitorError> { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetWindowDC` in this scope [INFO] [stdout] --> src/lib.rs:93:28 [INFO] [stdout] | [INFO] [stdout] 93 | let hdc = unsafe { GetWindowDC(window) }; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HMONITOR` in this scope [INFO] [stdout] --> src/lib.rs:100:34 [INFO] [stdout] | [INFO] [stdout] 100 | extern "system" fn cb(h: HMONITOR, _ctx: HDC, _rect: *mut RECT, list_ptr: LPARAM) -> BOOL { [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/lib.rs:100:50 [INFO] [stdout] | [INFO] [stdout] 100 | extern "system" fn cb(h: HMONITOR, _ctx: HDC, _rect: *mut RECT, list_ptr: LPARAM) -> BOOL { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RECT` in this scope [INFO] [stdout] --> src/lib.rs:100:67 [INFO] [stdout] | [INFO] [stdout] 100 | extern "system" fn cb(h: HMONITOR, _ctx: HDC, _rect: *mut RECT, list_ptr: LPARAM) -> BOOL { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPARAM` in this scope [INFO] [stdout] --> src/lib.rs:100:83 [INFO] [stdout] | [INFO] [stdout] 100 | extern "system" fn cb(h: HMONITOR, _ctx: HDC, _rect: *mut RECT, list_ptr: LPARAM) -> BOOL { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BOOL` in this scope [INFO] [stdout] --> src/lib.rs:100:94 [INFO] [stdout] | [INFO] [stdout] 100 | extern "system" fn cb(h: HMONITOR, _ctx: HDC, _rect: *mut RECT, list_ptr: LPARAM) -> BOOL { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `MONITORINFOEXW` in this scope [INFO] [stdout] --> src/lib.rs:101:28 [INFO] [stdout] | [INFO] [stdout] 101 | let mut info = MONITORINFOEXW { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MONITORINFOEXW` in this scope [INFO] [stdout] --> src/lib.rs:102:40 [INFO] [stdout] | [INFO] [stdout] 100 | extern "system" fn cb(h: HMONITOR, _ctx: HDC, _rect: *mut RECT, list_ptr: LPARAM) -> BOOL { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 101 | let mut info = MONITORINFOEXW { [INFO] [stdout] 102 | cbSize: mem::size_of::() as u32, [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetMonitorInfoW` in this scope [INFO] [stdout] --> src/lib.rs:106:17 [INFO] [stdout] | [INFO] [stdout] 106 | GetMonitorInfoW(h, &mut info as *mut MONITORINFOEXW as *mut MONITORINFO); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MONITORINFOEXW` in this scope [INFO] [stdout] --> src/lib.rs:106:54 [INFO] [stdout] | [INFO] [stdout] 106 | GetMonitorInfoW(h, &mut info as *mut MONITORINFOEXW as *mut MONITORINFO); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MONITORINFO` in this scope [INFO] [stdout] --> src/lib.rs:106:77 [INFO] [stdout] | [INFO] [stdout] 106 | GetMonitorInfoW(h, &mut info as *mut MONITORINFOEXW as *mut MONITORINFO); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `DISPLAY_DEVICEW` in this scope [INFO] [stdout] --> src/lib.rs:109:38 [INFO] [stdout] | [INFO] [stdout] 109 | let mut interface_name = DISPLAY_DEVICEW { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DISPLAY_DEVICEW` in this scope [INFO] [stdout] --> src/lib.rs:110:36 [INFO] [stdout] | [INFO] [stdout] 100 | extern "system" fn cb(h: HMONITOR, _ctx: HDC, _rect: *mut RECT, list_ptr: LPARAM) -> BOOL { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 110 | cb: mem::size_of::() as u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `EnumDisplayDevicesW` in this scope [INFO] [stdout] --> src/lib.rs:114:17 [INFO] [stdout] | [INFO] [stdout] 114 | EnumDisplayDevicesW( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `EDD_GET_DEVICE_INTERFACE_NAME` in this scope [INFO] [stdout] --> src/lib.rs:118:21 [INFO] [stdout] | [INFO] [stdout] 118 | EDD_GET_DEVICE_INTERFACE_NAME, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPARAM` in this scope [INFO] [stdout] --> src/lib.rs:136:60 [INFO] [stdout] | [INFO] [stdout] 136 | let monitors_ptr = &mut monitors as *mut Vec<_> as LPARAM; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `EnumDisplayMonitors` in this scope [INFO] [stdout] --> src/lib.rs:138:13 [INFO] [stdout] | [INFO] [stdout] 138 | EnumDisplayMonitors(ptr::null_mut(), ptr::null_mut(), Some(cb), monitors_ptr); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RegKey` in crate `registry` [INFO] [stdout] --> src/lib.rs:207:56 [INFO] [stdout] | [INFO] [stdout] 207 | fn driver_key(driver_id: &str) -> Result { [INFO] [stdout] | ^^^^^^ not found in `registry` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/lib.rs:272:29 [INFO] [stdout] | [INFO] [stdout] 272 | let code = unsafe { GetLastError() }; [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 29 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 `monitor-control-win` due to 30 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "b133b7534a3d7c55bd56a9ddcfa9a2c4d3b7f8ac96d0e621bb7310def9d7264a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b133b7534a3d7c55bd56a9ddcfa9a2c4d3b7f8ac96d0e621bb7310def9d7264a", kill_on_drop: false }` [INFO] [stdout] b133b7534a3d7c55bd56a9ddcfa9a2c4d3b7f8ac96d0e621bb7310def9d7264a