[INFO] cloning repository https://github.com/GuyTabak/bits-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/GuyTabak/bits-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGuyTabak%2Fbits-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGuyTabak%2Fbits-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7693effb67494d474ad18495402442b07406e8b0 [INFO] checking GuyTabak/bits-rs against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGuyTabak%2Fbits-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/GuyTabak/bits-rs on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/GuyTabak/bits-rs [INFO] finished tweaking git repo https://github.com/GuyTabak/bits-rs [INFO] tweaked toml for git repo https://github.com/GuyTabak/bits-rs written to /workspace/builds/worker-4/source/Cargo.toml [INFO] crate git repo https://github.com/GuyTabak/bits-rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "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] dba33e910cf0fd78486b6cdcef406bd397a538f5a7d794a007d16989ebc765fe [INFO] running `Command { std: "docker" "start" "-a" "dba33e910cf0fd78486b6cdcef406bd397a538f5a7d794a007d16989ebc765fe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dba33e910cf0fd78486b6cdcef406bd397a538f5a7d794a007d16989ebc765fe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dba33e910cf0fd78486b6cdcef406bd397a538f5a7d794a007d16989ebc765fe", kill_on_drop: false }` [INFO] [stdout] dba33e910cf0fd78486b6cdcef406bd397a538f5a7d794a007d16989ebc765fe [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=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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 83426575e3c53d7bc6f85f64aa36f5a1010cbebdf6f862ab45fd33bc2c4f215c [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" "83426575e3c53d7bc6f85f64aa36f5a1010cbebdf6f862ab45fd33bc2c4f215c", kill_on_drop: false }` [INFO] [stderr] Checking matches v0.1.8 [INFO] [stderr] Checking tinyvec v0.3.4 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking unicode-bidi v0.3.4 [INFO] [stderr] Checking form_urlencoded v1.0.0 [INFO] [stderr] Checking unicode-normalization v0.1.13 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Checking url v2.2.0 [INFO] [stderr] Checking bits v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::ctypes::c_void; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/lib.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::shared::guiddef::GUID; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/lib.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use winapi::shared::winerror::SUCCEEDED; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/lib.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use winapi::shared::wtypesbase::CLSCTX_LOCAL_SERVER; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/lib.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use winapi::um::bits::{BackgroundCopyManager, BG_JOB_TYPE_DOWNLOAD, IBackgroundCopyJob, IBackgroundCopyManager}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/lib.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::um::combaseapi::{CoCreateInstance, CoInitializeEx}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/lib.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use winapi::um::commctrl::HRESULT; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/lib.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use winapi::um::objbase::COINIT_APARTMENTTHREADED; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/lib.rs:16:14 [INFO] [stdout] | [INFO] [stdout] 16 | use std::os::windows::ffi::OsStrExt; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/lib.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | use winapi::_core::time::Duration; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi` [INFO] [stdout] --> src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use winapi::{Class, Interface}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::ctypes::c_void; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/lib.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::shared::guiddef::GUID; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/lib.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use winapi::shared::winerror::SUCCEEDED; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/lib.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use winapi::shared::wtypesbase::CLSCTX_LOCAL_SERVER; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/lib.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use winapi::um::bits::{BackgroundCopyManager, BG_JOB_TYPE_DOWNLOAD, IBackgroundCopyJob, IBackgroundCopyManager}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/lib.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::um::combaseapi::{CoCreateInstance, CoInitializeEx}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/lib.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use winapi::um::commctrl::HRESULT; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/lib.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use winapi::um::objbase::COINIT_APARTMENTTHREADED; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/lib.rs:16:14 [INFO] [stdout] | [INFO] [stdout] 16 | use std::os::windows::ffi::OsStrExt; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi` [INFO] [stdout] --> src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use winapi::{Class, Interface}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BackgroundCopyManager` [INFO] [stdout] --> src/lib.rs:35:27 [INFO] [stdout] | [INFO] [stdout] 35 | ... CoCreateInstance(&BackgroundCopyManager::uuidof(), null_mut(), CLSCTX_LOCAL_SERVER, &IBackgroundCopyManager::uuidof(), &mut g_pbcm ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `BackgroundCopyManager` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `IBackgroundCopyManager` [INFO] [stdout] --> src/lib.rs:35:94 [INFO] [stdout] | [INFO] [stdout] 35 | ...ll_mut(), CLSCTX_LOCAL_SERVER, &IBackgroundCopyManager::uuidof(), &mut g_pbcm as *mut *mut IBackgroundCopyManager as *mut *mut c_void) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `IBackgroundCopyManager` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BackgroundCopyManager` [INFO] [stdout] --> src/lib.rs:35:27 [INFO] [stdout] | [INFO] [stdout] 35 | ... CoCreateInstance(&BackgroundCopyManager::uuidof(), null_mut(), CLSCTX_LOCAL_SERVER, &IBackgroundCopyManager::uuidof(), &mut g_pbcm ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `BackgroundCopyManager` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `IBackgroundCopyManager` [INFO] [stdout] --> src/lib.rs:35:94 [INFO] [stdout] | [INFO] [stdout] 35 | ...ll_mut(), CLSCTX_LOCAL_SERVER, &IBackgroundCopyManager::uuidof(), &mut g_pbcm as *mut *mut IBackgroundCopyManager as *mut *mut c_void) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `IBackgroundCopyManager` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IBackgroundCopyManager` in this scope [INFO] [stdout] --> src/lib.rs:21:37 [INFO] [stdout] | [INFO] [stdout] 21 | fn connect_to_bits() -> Result<*mut IBackgroundCopyManager, String> { [INFO] [stdout] | - ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HRESULT` in this scope [INFO] [stdout] --> src/lib.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | let mut hr: HRESULT; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IBackgroundCopyManager` in this scope [INFO] [stdout] --> src/lib.rs:23:26 [INFO] [stdout] | [INFO] [stdout] 23 | let mut g_pbcm: *mut IBackgroundCopyManager = unsafe { std::mem::zeroed() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CoInitializeEx` in this scope [INFO] [stdout] --> src/lib.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | CoInitializeEx(null_mut(), COINIT_APARTMENTTHREADED) [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `COINIT_APARTMENTTHREADED` in this scope [INFO] [stdout] --> src/lib.rs:27:36 [INFO] [stdout] | [INFO] [stdout] 27 | CoInitializeEx(null_mut(), COINIT_APARTMENTTHREADED) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SUCCEEDED` in this scope [INFO] [stdout] --> src/lib.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | if !SUCCEEDED(hr) { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CoCreateInstance` in this scope [INFO] [stdout] --> src/lib.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | ... CoCreateInstance(&BackgroundCopyManager::uuidof(), null_mut(), CLSCTX_LOCAL_SERVER, &IBackgroundCopyManager::uuidof(), &mut g_pbcm ... [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/lib.rs:35:72 [INFO] [stdout] | [INFO] [stdout] 35 | ... CoCreateInstance(&BackgroundCopyManager::uuidof(), null_mut(), CLSCTX_LOCAL_SERVER, &IBackgroundCopyManager::uuidof(), &mut g_pbcm ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IBackgroundCopyManager` in this scope [INFO] [stdout] --> src/lib.rs:35:153 [INFO] [stdout] | [INFO] [stdout] 35 | ...Manager::uuidof(), &mut g_pbcm as *mut *mut IBackgroundCopyManager as *mut *mut c_void) [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/lib.rs:35:189 [INFO] [stdout] | [INFO] [stdout] 35 | ...cm as *mut *mut IBackgroundCopyManager as *mut *mut c_void) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 1 | use std::os::raw::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SUCCEEDED` in this scope [INFO] [stdout] --> src/lib.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | if !SUCCEEDED(hr) { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IBackgroundCopyManager` in this scope [INFO] [stdout] --> src/lib.rs:21:37 [INFO] [stdout] | [INFO] [stdout] 21 | fn connect_to_bits() -> Result<*mut IBackgroundCopyManager, String> { [INFO] [stdout] | - ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HRESULT` in this scope [INFO] [stdout] --> src/lib.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | let mut hr: HRESULT; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IBackgroundCopyManager` in this scope [INFO] [stdout] --> src/lib.rs:23:26 [INFO] [stdout] | [INFO] [stdout] 23 | let mut g_pbcm: *mut IBackgroundCopyManager = unsafe { std::mem::zeroed() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CoInitializeEx` in this scope [INFO] [stdout] --> src/lib.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | CoInitializeEx(null_mut(), COINIT_APARTMENTTHREADED) [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `COINIT_APARTMENTTHREADED` in this scope [INFO] [stdout] --> src/lib.rs:27:36 [INFO] [stdout] | [INFO] [stdout] 27 | CoInitializeEx(null_mut(), COINIT_APARTMENTTHREADED) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SUCCEEDED` in this scope [INFO] [stdout] --> src/lib.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | if !SUCCEEDED(hr) { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CoCreateInstance` in this scope [INFO] [stdout] --> src/lib.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | ... CoCreateInstance(&BackgroundCopyManager::uuidof(), null_mut(), CLSCTX_LOCAL_SERVER, &IBackgroundCopyManager::uuidof(), &mut g_pbcm ... [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/lib.rs:35:72 [INFO] [stdout] | [INFO] [stdout] 35 | ... CoCreateInstance(&BackgroundCopyManager::uuidof(), null_mut(), CLSCTX_LOCAL_SERVER, &IBackgroundCopyManager::uuidof(), &mut g_pbcm ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IBackgroundCopyManager` in this scope [INFO] [stdout] --> src/lib.rs:35:153 [INFO] [stdout] | [INFO] [stdout] 35 | ...Manager::uuidof(), &mut g_pbcm as *mut *mut IBackgroundCopyManager as *mut *mut c_void) [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/lib.rs:35:189 [INFO] [stdout] | [INFO] [stdout] 35 | ...cm as *mut *mut IBackgroundCopyManager as *mut *mut c_void) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 1 | use std::os::raw::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SUCCEEDED` in this scope [INFO] [stdout] --> src/lib.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | if !SUCCEEDED(hr) { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IBackgroundCopyManager` in this scope [INFO] [stdout] --> src/lib.rs:45:33 [INFO] [stdout] | [INFO] [stdout] 45 | fn create_bits_job(g_pbcm: *mut IBackgroundCopyManager) -> Result<*mut IBackgroundCopyJob, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IBackgroundCopyJob` in this scope [INFO] [stdout] --> src/lib.rs:45:72 [INFO] [stdout] | [INFO] [stdout] 45 | fn create_bits_job(g_pbcm: *mut IBackgroundCopyManager) -> Result<*mut IBackgroundCopyJob, String> { [INFO] [stdout] | - ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HRESULT` in this scope [INFO] [stdout] --> src/lib.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | let hr: HRESULT; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `GUID` in this scope [INFO] [stdout] --> src/lib.rs:47:21 [INFO] [stdout] | [INFO] [stdout] 47 | let mut job_id: GUID = unsafe { std::mem::zeroed() }; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IBackgroundCopyJob` in this scope [INFO] [stdout] --> src/lib.rs:48:25 [INFO] [stdout] | [INFO] [stdout] 48 | let mut p_job: *mut IBackgroundCopyJob = unsafe { std::mem::zeroed() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `BG_JOB_TYPE_DOWNLOAD` in this scope [INFO] [stdout] --> src/lib.rs:52:42 [INFO] [stdout] | [INFO] [stdout] 52 | (&mut *g_pbcm).CreateJob(&mut 9, BG_JOB_TYPE_DOWNLOAD, &mut job_id, &mut p_job) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SUCCEEDED` in this scope [INFO] [stdout] --> src/lib.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | if !SUCCEEDED(hr) { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IBackgroundCopyJob` in this scope [INFO] [stdout] --> src/lib.rs:62:28 [INFO] [stdout] | [INFO] [stdout] 62 | fn add_file(bits_job: *mut IBackgroundCopyJob, file_url: &str, save_path: &str) -> Result<(), String>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HRESULT` in this scope [INFO] [stdout] --> src/lib.rs:64:13 [INFO] [stdout] | [INFO] [stdout] 64 | let hr: HRESULT; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SUCCEEDED` in this scope [INFO] [stdout] --> src/lib.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | if !SUCCEEDED(hr){ [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IBackgroundCopyJob` in this scope [INFO] [stdout] --> src/lib.rs:75:29 [INFO] [stdout] | [INFO] [stdout] 75 | fn start_job(bits_job: *mut IBackgroundCopyJob) -> Result<(), String>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HRESULT` in this scope [INFO] [stdout] --> src/lib.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | let hr: HRESULT; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SUCCEEDED` in this scope [INFO] [stdout] --> src/lib.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | if !SUCCEEDED(hr){ [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IBackgroundCopyJob` in this scope [INFO] [stdout] --> src/lib.rs:86:32 [INFO] [stdout] | [INFO] [stdout] 86 | fn complete_job(bits_job: *mut IBackgroundCopyJob) -> Result<(), String>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HRESULT` in this scope [INFO] [stdout] --> src/lib.rs:87:13 [INFO] [stdout] | [INFO] [stdout] 87 | let hr: HRESULT; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SUCCEEDED` in this scope [INFO] [stdout] --> src/lib.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | if !SUCCEEDED(hr){ [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration` [INFO] [stdout] --> src/lib.rs:114:15 [INFO] [stdout] | [INFO] [stdout] 114 | sleep(Duration::from_secs(10)); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 103 | use core::time::Duration; [INFO] [stdout] | [INFO] [stdout] 103 | use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IBackgroundCopyManager` in this scope [INFO] [stdout] --> src/lib.rs:45:33 [INFO] [stdout] | [INFO] [stdout] 45 | fn create_bits_job(g_pbcm: *mut IBackgroundCopyManager) -> Result<*mut IBackgroundCopyJob, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IBackgroundCopyJob` in this scope [INFO] [stdout] --> src/lib.rs:45:72 [INFO] [stdout] | [INFO] [stdout] 45 | fn create_bits_job(g_pbcm: *mut IBackgroundCopyManager) -> Result<*mut IBackgroundCopyJob, String> { [INFO] [stdout] | - ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HRESULT` in this scope [INFO] [stdout] --> src/lib.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | let hr: HRESULT; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `GUID` in this scope [INFO] [stdout] --> src/lib.rs:47:21 [INFO] [stdout] | [INFO] [stdout] 47 | let mut job_id: GUID = unsafe { std::mem::zeroed() }; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IBackgroundCopyJob` in this scope [INFO] [stdout] --> src/lib.rs:48:25 [INFO] [stdout] | [INFO] [stdout] 48 | let mut p_job: *mut IBackgroundCopyJob = unsafe { std::mem::zeroed() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `BG_JOB_TYPE_DOWNLOAD` in this scope [INFO] [stdout] --> src/lib.rs:52:42 [INFO] [stdout] | [INFO] [stdout] 52 | (&mut *g_pbcm).CreateJob(&mut 9, BG_JOB_TYPE_DOWNLOAD, &mut job_id, &mut p_job) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SUCCEEDED` in this scope [INFO] [stdout] --> src/lib.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | if !SUCCEEDED(hr) { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IBackgroundCopyJob` in this scope [INFO] [stdout] --> src/lib.rs:62:28 [INFO] [stdout] | [INFO] [stdout] 62 | fn add_file(bits_job: *mut IBackgroundCopyJob, file_url: &str, save_path: &str) -> Result<(), String>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HRESULT` in this scope [INFO] [stdout] --> src/lib.rs:64:13 [INFO] [stdout] | [INFO] [stdout] 64 | let hr: HRESULT; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SUCCEEDED` in this scope [INFO] [stdout] --> src/lib.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | if !SUCCEEDED(hr){ [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IBackgroundCopyJob` in this scope [INFO] [stdout] --> src/lib.rs:75:29 [INFO] [stdout] | [INFO] [stdout] 75 | fn start_job(bits_job: *mut IBackgroundCopyJob) -> Result<(), String>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HRESULT` in this scope [INFO] [stdout] --> src/lib.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | let hr: HRESULT; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SUCCEEDED` in this scope [INFO] [stdout] --> src/lib.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | if !SUCCEEDED(hr){ [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IBackgroundCopyJob` in this scope [INFO] [stdout] --> src/lib.rs:86:32 [INFO] [stdout] | [INFO] [stdout] 86 | fn complete_job(bits_job: *mut IBackgroundCopyJob) -> Result<(), String>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HRESULT` in this scope [INFO] [stdout] --> src/lib.rs:87:13 [INFO] [stdout] | [INFO] [stdout] 87 | let hr: HRESULT; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SUCCEEDED` in this scope [INFO] [stdout] --> src/lib.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | if !SUCCEEDED(hr){ [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode_wide` found for reference `&OsStr` in the current scope [INFO] [stdout] --> src/lib.rs:98:21 [INFO] [stdout] | [INFO] [stdout] 98 | OsStr::new(str).encode_wide(). chain(Some(0).into_iter()).collect() [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&OsStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 40 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `bits` [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[E0599]: no method named `encode_wide` found for reference `&OsStr` in the current scope [INFO] [stdout] --> src/lib.rs:98:21 [INFO] [stdout] | [INFO] [stdout] 98 | OsStr::new(str).encode_wide(). chain(Some(0).into_iter()).collect() [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&OsStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 42 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0432, E0433, E0599. [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" "83426575e3c53d7bc6f85f64aa36f5a1010cbebdf6f862ab45fd33bc2c4f215c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "83426575e3c53d7bc6f85f64aa36f5a1010cbebdf6f862ab45fd33bc2c4f215c", kill_on_drop: false }` [INFO] [stdout] 83426575e3c53d7bc6f85f64aa36f5a1010cbebdf6f862ab45fd33bc2c4f215c