[INFO] fetching crate backblaze-b2-client 0.1.6... [INFO] testing backblaze-b2-client-0.1.6 against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-7 [INFO] extracting crate backblaze-b2-client 0.1.6 into /workspace/builds/worker-0-tc1/source [INFO] started tweaking crates.io crate backblaze-b2-client 0.1.6 [INFO] finished tweaking crates.io crate backblaze-b2-client 0.1.6 [INFO] tweaked toml for crates.io crate backblaze-b2-client 0.1.6 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate backblaze-b2-client 0.1.6 on toolchain c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate backblaze-b2-client 0.1.6 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" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded wasi v0.14.5+wasi-0.2.4 [INFO] [stderr] Downloaded serde_with_macros v3.14.0 [INFO] [stderr] Downloaded wasip2 v1.0.0+wasi-0.2.4 [INFO] [stderr] Downloaded indexmap v2.11.1 [INFO] [stderr] Downloaded time v0.3.43 [INFO] [stderr] Downloaded serde_with v3.14.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e90fbfed90dd089a204970bac3ac3ea648abcd9d88712f8d3163fe932df56f99 [INFO] running `Command { std: "docker" "start" "-a" "e90fbfed90dd089a204970bac3ac3ea648abcd9d88712f8d3163fe932df56f99", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e90fbfed90dd089a204970bac3ac3ea648abcd9d88712f8d3163fe932df56f99", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e90fbfed90dd089a204970bac3ac3ea648abcd9d88712f8d3163fe932df56f99", kill_on_drop: false }` [INFO] [stdout] e90fbfed90dd089a204970bac3ac3ea648abcd9d88712f8d3163fe932df56f99 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6d7b8e9ed645b002dc7e088a7edfbedb8928cf7044491d34d4d646316cc2bde6 [INFO] running `Command { std: "docker" "start" "-a" "6d7b8e9ed645b002dc7e088a7edfbedb8928cf7044491d34d4d646316cc2bde6", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling unicode-ident v1.0.19 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling cfg-if v1.0.3 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling find-msvc-tools v0.1.1 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling log v0.4.28 [INFO] [stderr] Compiling bitflags v2.9.4 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling zerocopy v0.8.27 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling cc v1.2.36 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling iri-string v0.7.8 [INFO] [stderr] Compiling sharded-slab v0.1.7 [INFO] [stderr] Compiling thread_local v1.1.9 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling nu-ansi-term v0.50.1 [INFO] [stderr] Compiling indexmap v2.11.1 [INFO] [stderr] Compiling urlencoding v2.1.3 [INFO] [stderr] Compiling sha1_smol v1.0.1 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling strum v0.27.2 [INFO] [stderr] Compiling tracing-subscriber v0.3.20 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling num-complex v0.4.6 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling native-tls v0.2.14 [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.2 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling typed-builder-macro v0.20.1 [INFO] [stderr] Compiling strum_macros v0.27.2 [INFO] [stderr] Compiling async-stream v0.3.6 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling typed-builder v0.20.1 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling serde_with_macros v3.14.0 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.3 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_with v3.14.0 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tower-http v0.6.6 [INFO] [stderr] Compiling h2 v0.4.12 [INFO] [stderr] Compiling hyper v1.7.0 [INFO] [stderr] Compiling hyper-util v0.1.16 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.23 [INFO] [stderr] Compiling backblaze-b2-client v0.1.6 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 52.10s [INFO] running `Command { std: "docker" "inspect" "6d7b8e9ed645b002dc7e088a7edfbedb8928cf7044491d34d4d646316cc2bde6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6d7b8e9ed645b002dc7e088a7edfbedb8928cf7044491d34d4d646316cc2bde6", kill_on_drop: false }` [INFO] [stdout] 6d7b8e9ed645b002dc7e088a7edfbedb8928cf7044491d34d4d646316cc2bde6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4fdb4df2118ed8855582e10bf691d0b0a8757ec0c0139cc990a5ea7f41ab46e5 [INFO] running `Command { std: "docker" "start" "-a" "4fdb4df2118ed8855582e10bf691d0b0a8757ec0c0139cc990a5ea7f41ab46e5", kill_on_drop: false }` [INFO] [stderr] Compiling backblaze-b2-client v0.1.6 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 4.04s [INFO] running `Command { std: "docker" "inspect" "4fdb4df2118ed8855582e10bf691d0b0a8757ec0c0139cc990a5ea7f41ab46e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4fdb4df2118ed8855582e10bf691d0b0a8757ec0c0139cc990a5ea7f41ab46e5", kill_on_drop: false }` [INFO] [stdout] 4fdb4df2118ed8855582e10bf691d0b0a8757ec0c0139cc990a5ea7f41ab46e5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 8dc57922e0d90126dfad4a3641f4ffbfd7aebc60b8ff870fc301e5d5b1253eb6 [INFO] running `Command { std: "docker" "start" "-a" "8dc57922e0d90126dfad4a3641f4ffbfd7aebc60b8ff870fc301e5d5b1253eb6", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.28s [INFO] [stdout] [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/backblaze_b2_client-b95dcbf6dbed75f7) [INFO] [stdout] running 0 tests [INFO] [stderr] Doc-tests backblaze_b2_client [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] [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/lib.rs - (line 26) ... FAILED [INFO] [stdout] test src/throttle.rs - throttle::Throttle::per_minute (line 36) ... 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] 29 | 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] 28 + 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] 29 | 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] 29 | 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] 28 + use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] 28 + 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] 23 | 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] 21 + 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] 23 | 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] 21 + 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/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] 32 | 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] 28 | 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] 28 | 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] 37 | 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] 48 | 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] 58 | 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] 28 + use std::thread::sleep; [INFO] [stdout] | [INFO] [stdout] 28 + 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] 58 | 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] 28 + use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] 28 + use tokio::time::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:37:20 [INFO] [stdout] | [INFO] [stdout] 37 | let metadata = open_file.metadata().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let upload = client.create_upload( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | let file = upload.start().await.unwrap(); [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `upload` an explicit type [INFO] [stdout] | [INFO] [stdout] 39 | let upload: /* Type */ = client.create_upload( [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:63:16 [INFO] [stdout] | [INFO] [stdout] 63 | let file = upload.start().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0425, E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [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] 37 | 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] 36 + 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] 37 | 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] 37 | 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] 36 + use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] 36 + 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] [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.30s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "8dc57922e0d90126dfad4a3641f4ffbfd7aebc60b8ff870fc301e5d5b1253eb6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8dc57922e0d90126dfad4a3641f4ffbfd7aebc60b8ff870fc301e5d5b1253eb6", kill_on_drop: false }` [INFO] [stdout] 8dc57922e0d90126dfad4a3641f4ffbfd7aebc60b8ff870fc301e5d5b1253eb6