[INFO] cloning repository https://github.com/brandonhamilton/wia-example-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/brandonhamilton/wia-example-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbrandonhamilton%2Fwia-example-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbrandonhamilton%2Fwia-example-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7d65f7578d9f04cf397ed1b1328167db5bf0ff81 [INFO] testing brandonhamilton/wia-example-rs against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbrandonhamilton%2Fwia-example-rs" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/brandonhamilton/wia-example-rs on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/brandonhamilton/wia-example-rs [INFO] finished tweaking git repo https://github.com/brandonhamilton/wia-example-rs [INFO] tweaked toml for git repo https://github.com/brandonhamilton/wia-example-rs written to /workspace/builds/worker-4/source/Cargo.toml [INFO] crate git repo https://github.com/brandonhamilton/wia-example-rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 31fc4fcef1d2e197a6c7dfc0a28204277603e50bebb806e37d93c3f20a1c2609 [INFO] running `Command { std: "docker" "start" "-a" "31fc4fcef1d2e197a6c7dfc0a28204277603e50bebb806e37d93c3f20a1c2609", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "31fc4fcef1d2e197a6c7dfc0a28204277603e50bebb806e37d93c3f20a1c2609", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "31fc4fcef1d2e197a6c7dfc0a28204277603e50bebb806e37d93c3f20a1c2609", kill_on_drop: false }` [INFO] [stdout] 31fc4fcef1d2e197a6c7dfc0a28204277603e50bebb806e37d93c3f20a1c2609 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 0b26f03bf3610633c5243852260f5843acb73003272f1cbd5d04871417f994dd [INFO] running `Command { std: "docker" "start" "-a" "0b26f03bf3610633c5243852260f5843acb73003272f1cbd5d04871417f994dd", kill_on_drop: false }` [INFO] [stderr] Compiling wia-example v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0463]: can't find crate for `winapi` [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | extern crate winapi; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winerror` [INFO] [stdout] --> src/main.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | if winerror::SUCCEEDED(hr) { [INFO] [stdout] | ^^^^^^^^ use of undeclared crate or module `winerror` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winerror` [INFO] [stdout] --> src/main.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | if winerror::SUCCEEDED(hr) { [INFO] [stdout] | ^^^^^^^^ use of undeclared crate or module `winerror` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winerror` [INFO] [stdout] --> src/main.rs:59:16 [INFO] [stdout] | [INFO] [stdout] 59 | if winerror::SUCCEEDED(hr) { [INFO] [stdout] | ^^^^^^^^ use of undeclared crate or module `winerror` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BSTR` in this scope [INFO] [stdout] --> src/main.rs:15:28 [INFO] [stdout] | [INFO] [stdout] 15 | fn create_bstr(s: &str) -> BSTR { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SysAllocStringLen` in this scope [INFO] [stdout] --> src/main.rs:22:14 [INFO] [stdout] | [INFO] [stdout] 22 | unsafe { SysAllocStringLen(slice as *const _ as *const OLECHAR, len as UINT32) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `OLECHAR` in this scope [INFO] [stdout] --> src/main.rs:22:60 [INFO] [stdout] | [INFO] [stdout] 22 | unsafe { SysAllocStringLen(slice as *const _ as *const OLECHAR, len as UINT32) } [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `UINT32` in this scope [INFO] [stdout] --> src/main.rs:22:76 [INFO] [stdout] | [INFO] [stdout] 22 | unsafe { SysAllocStringLen(slice as *const _ as *const OLECHAR, len as UINT32) } [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CoInitialize` in this scope [INFO] [stdout] --> src/main.rs:26:27 [INFO] [stdout] | [INFO] [stdout] 26 | let mut hr = unsafe { CoInitialize(null_mut()) }; [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope [INFO] [stdout] --> src/main.rs:29:35 [INFO] [stdout] | [INFO] [stdout] 29 | let mut pWiaDevMgr2: *mut c_void = null_mut(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 3 | use std::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::raw::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CoCreateInstance` in this scope [INFO] [stdout] --> src/main.rs:30:23 [INFO] [stdout] | [INFO] [stdout] 30 | hr = unsafe { CoCreateInstance( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CLSID_WiaDevMgr2` in this scope [INFO] [stdout] --> src/main.rs:31:14 [INFO] [stdout] | [INFO] [stdout] 31 | &CLSID_WiaDevMgr2, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CLSCTX_LOCAL_SERVER` in this scope [INFO] [stdout] --> src/main.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | CLSCTX_LOCAL_SERVER, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `IID_IWiaDevMgr2` in this scope [INFO] [stdout] --> src/main.rs:34:14 [INFO] [stdout] | [INFO] [stdout] 34 | &IID_IWiaDevMgr2, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `pWiaDevMgr2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IWiaDevMgr2` in this scope [INFO] [stdout] --> src/main.rs:40:38 [INFO] [stdout] | [INFO] [stdout] 40 | let pp_wia_dev_mgr: *mut IWiaDevMgr2 = pWiaDevMgr2 as *mut IWiaDevMgr2; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IWiaDevMgr2` in this scope [INFO] [stdout] --> src/main.rs:40:72 [INFO] [stdout] | [INFO] [stdout] 40 | let pp_wia_dev_mgr: *mut IWiaDevMgr2 = pWiaDevMgr2 as *mut IWiaDevMgr2; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BSTR` in this scope [INFO] [stdout] --> src/main.rs:42:26 [INFO] [stdout] | [INFO] [stdout] 42 | let folder: BSTR = create_bstr("c:\\"); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BSTR` in this scope [INFO] [stdout] --> src/main.rs:43:27 [INFO] [stdout] | [INFO] [stdout] 43 | let filename: BSTR = create_bstr("Scan"); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LONG` in this scope [INFO] [stdout] --> src/main.rs:45:32 [INFO] [stdout] | [INFO] [stdout] 45 | let mut num_files: LONG = 0; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BSTR` in this scope [INFO] [stdout] --> src/main.rs:46:38 [INFO] [stdout] | [INFO] [stdout] 46 | let mut file_paths: *mut BSTR = null_mut(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IWiaItem2` in this scope [INFO] [stdout] --> src/main.rs:47:34 [INFO] [stdout] | [INFO] [stdout] 47 | let mut p_item: *mut IWiaItem2 = 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 `CoUninitialize` in this scope [INFO] [stdout] --> src/main.rs:68:18 [INFO] [stdout] | [INFO] [stdout] 68 | unsafe { CoUninitialize(); } [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 22 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433, E0463. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `wia-example` due to 23 previous errors [INFO] running `Command { std: "docker" "inspect" "0b26f03bf3610633c5243852260f5843acb73003272f1cbd5d04871417f994dd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0b26f03bf3610633c5243852260f5843acb73003272f1cbd5d04871417f994dd", kill_on_drop: false }` [INFO] [stdout] 0b26f03bf3610633c5243852260f5843acb73003272f1cbd5d04871417f994dd