[INFO] fetching crate backblaze-b2-client 0.1.5... [INFO] testing backblaze-b2-client-0.1.5 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate backblaze-b2-client 0.1.5 into /workspace/builds/worker-4-tc2/source [INFO] started tweaking crates.io crate backblaze-b2-client 0.1.5 [INFO] finished tweaking crates.io crate backblaze-b2-client 0.1.5 [INFO] tweaked toml for crates.io crate backblaze-b2-client 0.1.5 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate backblaze-b2-client 0.1.5 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate backblaze-b2-client 0.1.5 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 02e4491a15e19bfb3004b9c6631504b1bf329d95dd6b62329bb31e2fdb835fa9 [INFO] running `Command { std: "docker" "start" "-a" "02e4491a15e19bfb3004b9c6631504b1bf329d95dd6b62329bb31e2fdb835fa9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "02e4491a15e19bfb3004b9c6631504b1bf329d95dd6b62329bb31e2fdb835fa9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "02e4491a15e19bfb3004b9c6631504b1bf329d95dd6b62329bb31e2fdb835fa9", kill_on_drop: false }` [INFO] [stdout] 02e4491a15e19bfb3004b9c6631504b1bf329d95dd6b62329bb31e2fdb835fa9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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" "RUSTDOCFLAGS=--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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c86ee69d6253d711f4db2f2a4dc418b528bae08c5c60afcff7a042dd499c31ac [INFO] running `Command { std: "docker" "start" "-a" "c86ee69d6253d711f4db2f2a4dc418b528bae08c5c60afcff7a042dd499c31ac", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-ident v1.0.7 [INFO] [stderr] Compiling libc v0.2.170 [INFO] [stderr] Compiling smallvec v1.14.0 [INFO] [stderr] Compiling once_cell v1.20.3 [INFO] [stderr] Compiling slab v0.4.8 [INFO] [stderr] Compiling lock_api v0.4.9 [INFO] [stderr] Compiling parking_lot_core v0.9.7 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling pkg-config v0.3.26 [INFO] [stderr] Compiling cc v1.2.16 [INFO] [stderr] Compiling litemap v0.7.5 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling http v1.2.0 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling openssl v0.10.45 [INFO] [stderr] Compiling zerocopy v0.8.23 [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling getrandom v0.3.1 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling try-lock v0.2.4 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling ryu v1.0.13 [INFO] [stderr] Compiling rustversion v1.0.11 [INFO] [stderr] Compiling overload v0.1.1 [INFO] [stderr] Compiling rustls-pki-types v1.11.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling nu-ansi-term v0.46.0 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling sharded-slab v0.1.7 [INFO] [stderr] Compiling thread_local v1.1.8 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling quote v1.0.39 [INFO] [stderr] Compiling num-complex v0.4.6 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling encoding_rs v0.8.32 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling syn v2.0.99 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling signal-hook-registry v1.4.1 [INFO] [stderr] Compiling socket2 v0.5.8 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling indexmap v2.7.1 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling rustls-pemfile v2.2.0 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling ipnet v2.7.1 [INFO] [stderr] Compiling tracing-subscriber v0.3.19 [INFO] [stderr] Compiling strum v0.27.1 [INFO] [stderr] Compiling sha1_smol v1.0.1 [INFO] [stderr] Compiling openssl-sys v0.9.80 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling num-rational v0.4.2 [INFO] [stderr] Compiling num v0.4.3 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling rand v0.9.0 [INFO] [stderr] Compiling openssl-macros v0.1.0 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling darling_core v0.20.10 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling typed-builder-macro v0.20.1 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling strum_macros v0.27.1 [INFO] [stderr] Compiling tokio v1.44.1 [INFO] [stderr] Compiling async-stream v0.3.6 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling typed-builder v0.20.1 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling darling_macro v0.20.10 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling darling v0.20.10 [INFO] [stderr] Compiling serde_with_macros v3.12.0 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling http-body-util v0.1.2 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling tokio-util v0.7.13 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_with v3.12.0 [INFO] [stderr] Compiling h2 v0.4.8 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling hyper-util v0.1.10 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.14 [INFO] [stderr] Compiling backblaze-b2-client v0.1.5 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 52.14s [INFO] running `Command { std: "docker" "inspect" "c86ee69d6253d711f4db2f2a4dc418b528bae08c5c60afcff7a042dd499c31ac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c86ee69d6253d711f4db2f2a4dc418b528bae08c5c60afcff7a042dd499c31ac", kill_on_drop: false }` [INFO] [stdout] c86ee69d6253d711f4db2f2a4dc418b528bae08c5c60afcff7a042dd499c31ac [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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" "RUSTDOCFLAGS=--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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6588bdb0a7410f09b6a3b74ae2aede6932e7052a6c6c82199f4dcf1f4e94c604 [INFO] running `Command { std: "docker" "start" "-a" "6588bdb0a7410f09b6a3b74ae2aede6932e7052a6c6c82199f4dcf1f4e94c604", kill_on_drop: false }` [INFO] [stderr] Compiling backblaze-b2-client v0.1.5 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 4.17s [INFO] running `Command { std: "docker" "inspect" "6588bdb0a7410f09b6a3b74ae2aede6932e7052a6c6c82199f4dcf1f4e94c604", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6588bdb0a7410f09b6a3b74ae2aede6932e7052a6c6c82199f4dcf1f4e94c604", kill_on_drop: false }` [INFO] [stdout] 6588bdb0a7410f09b6a3b74ae2aede6932e7052a6c6c82199f4dcf1f4e94c604 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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" "RUSTDOCFLAGS=--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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 1899be9dca7fa8bea6b3eae7c844086d3402f2c7747667f5d5d943557c95dcc9 [INFO] running `Command { std: "docker" "start" "-a" "1899be9dca7fa8bea6b3eae7c844086d3402f2c7747667f5d5d943557c95dcc9", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.30s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/backblaze_b2_client-b8bd077c452219e1) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests backblaze_b2_client [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test src/throttle.rs - throttle::Throttle::per_second (line 28) ... FAILED [INFO] [stdout] test src/tasks/upload/options.rs - tasks::upload::options::FileUploadOptions::speed_throttle (line 21) ... FAILED [INFO] [stdout] test src/throttle.rs - throttle::Throttle::per_minute (line 36) ... FAILED [INFO] [stdout] test src/lib.rs - (line 26) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/throttle.rs - throttle::Throttle::per_second (line 28) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Throttle` [INFO] [stdout] --> src/throttle.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 3 | Throttle::new(max_per_period, Duration::from_secs(1)) [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Throttle` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use backblaze_b2_client::throttle::Throttle; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `max_per_period` in this scope [INFO] [stdout] --> src/throttle.rs:29:15 [INFO] [stdout] | [INFO] [stdout] 3 | Throttle::new(max_per_period, Duration::from_secs(1)) [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration` [INFO] [stdout] --> src/throttle.rs:29:31 [INFO] [stdout] | [INFO] [stdout] 3 | Throttle::new(max_per_period, Duration::from_secs(1)) [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Duration` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 2 + use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] 2 + use tokio::time::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/tasks/upload/options.rs - tasks::upload::options::FileUploadOptions::speed_throttle (line 21) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Throttle` [INFO] [stdout] --> src/tasks/upload/options.rs:23:16 [INFO] [stdout] | [INFO] [stdout] 4 | let throttle = Throttle::per_second(SizeUnit::MEBIBYTE * 5); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Throttle` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use backblaze_b2_client::throttle::Throttle; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SizeUnit` [INFO] [stdout] --> src/tasks/upload/options.rs:23:37 [INFO] [stdout] | [INFO] [stdout] 4 | let throttle = Throttle::per_second(SizeUnit::MEBIBYTE * 5); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `SizeUnit` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use backblaze_b2_client::util::SizeUnit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/throttle.rs - throttle::Throttle::per_minute (line 36) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Throttle` [INFO] [stdout] --> src/throttle.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 3 | Throttle::new(max_per_period, Duration::from_secs(60)) [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Throttle` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use backblaze_b2_client::throttle::Throttle; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `max_per_period` in this scope [INFO] [stdout] --> src/throttle.rs:37:15 [INFO] [stdout] | [INFO] [stdout] 3 | Throttle::new(max_per_period, Duration::from_secs(60)) [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration` [INFO] [stdout] --> src/throttle.rs:37:31 [INFO] [stdout] | [INFO] [stdout] 3 | Throttle::new(max_per_period, Duration::from_secs(60)) [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Duration` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 2 + use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] 2 + use tokio::time::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 26) stdout ---- [INFO] [stdout] error: the `async` keyword is missing from the function declaration [INFO] [stdout] --> src/lib.rs:32:1 [INFO] [stdout] | [INFO] [stdout] 8 | fn main() { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `backblaze_b2_client::B2Client` [INFO] [stdout] --> src/lib.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 4 | use backblaze_b2_client::B2Client; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `B2Client` in the root [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct instead [INFO] [stdout] | [INFO] [stdout] 4 | use backblaze_b2_client::client::B2Client; [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `open_file` in this scope [INFO] [stdout] --> src/lib.rs:37:20 [INFO] [stdout] | [INFO] [stdout] 13 | let metadata = open_file.metadata().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `file_handle` in this scope [INFO] [stdout] --> src/lib.rs:48:28 [INFO] [stdout] | [INFO] [stdout] 24 | let file_handle_copy = file_handle.clone(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `sleep` in this scope [INFO] [stdout] --> src/lib.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 34 | sleep(Duration::from_millis(500)).await; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 4 + use std::thread::sleep; [INFO] [stdout] | [INFO] [stdout] 4 + use tokio::time::sleep; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration` [INFO] [stdout] --> src/lib.rs:58:19 [INFO] [stdout] | [INFO] [stdout] 34 | sleep(Duration::from_millis(500)).await; [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Duration` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 4 + use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] 4 + use tokio::time::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 26) [INFO] [stdout] src/tasks/upload/options.rs - tasks::upload::options::FileUploadOptions::speed_throttle (line 21) [INFO] [stdout] src/throttle.rs - throttle::Throttle::per_minute (line 36) [INFO] [stdout] src/throttle.rs - throttle::Throttle::per_second (line 28) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 4 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.31s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "1899be9dca7fa8bea6b3eae7c844086d3402f2c7747667f5d5d943557c95dcc9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1899be9dca7fa8bea6b3eae7c844086d3402f2c7747667f5d5d943557c95dcc9", kill_on_drop: false }` [INFO] [stdout] 1899be9dca7fa8bea6b3eae7c844086d3402f2c7747667f5d5d943557c95dcc9