[INFO] fetching crate cloudflare-r2-rs 0.6.8... [INFO] testing cloudflare-r2-rs-0.6.8 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate cloudflare-r2-rs 0.6.8 into /workspace/builds/worker-6-tc2/source [INFO] started tweaking crates.io crate cloudflare-r2-rs 0.6.8 [INFO] finished tweaking crates.io crate cloudflare-r2-rs 0.6.8 [INFO] tweaked toml for crates.io crate cloudflare-r2-rs 0.6.8 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate cloudflare-r2-rs 0.6.8 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 cloudflare-r2-rs 0.6.8 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-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] fae32f32ee3bbae189b8a6ddb44175951d2bee90783b335f08303ca72938cec7 [INFO] running `Command { std: "docker" "start" "-a" "fae32f32ee3bbae189b8a6ddb44175951d2bee90783b335f08303ca72938cec7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fae32f32ee3bbae189b8a6ddb44175951d2bee90783b335f08303ca72938cec7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fae32f32ee3bbae189b8a6ddb44175951d2bee90783b335f08303ca72938cec7", kill_on_drop: false }` [INFO] [stdout] fae32f32ee3bbae189b8a6ddb44175951d2bee90783b335f08303ca72938cec7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 3fb7c766ce146718744ab6b1a0636d74eb8d427dd1e6f758e3970b9052a9d770 [INFO] running `Command { std: "docker" "start" "-a" "3fb7c766ce146718744ab6b1a0636d74eb8d427dd1e6f758e3970b9052a9d770", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.167 [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Compiling pin-project-lite v0.2.15 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling outref v0.5.1 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling semver v1.0.23 [INFO] [stderr] Compiling time v0.3.37 [INFO] [stderr] Compiling cc v1.2.2 [INFO] [stderr] Compiling const-oid v0.9.6 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling foldhash v0.1.3 [INFO] [stderr] Compiling base64ct v1.6.0 [INFO] [stderr] Compiling cpufeatures v0.2.16 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling base64-simd v0.8.0 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling der v0.6.1 [INFO] [stderr] Compiling base16ct v0.1.1 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling bytes-utils v0.1.4 [INFO] [stderr] Compiling rustls-native-certs v0.6.3 [INFO] [stderr] Compiling fastrand v2.2.0 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling indexmap v2.7.0 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling uuid v1.11.0 [INFO] [stderr] Compiling regex-lite v0.1.6 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling aws-smithy-xml v0.60.9 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling lru v0.12.5 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling aws-types v1.3.3 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling spki v0.6.0 [INFO] [stderr] Compiling syn v2.0.90 [INFO] [stderr] Compiling crc32c v0.6.8 [INFO] [stderr] Compiling pkcs8 v0.9.0 [INFO] [stderr] Compiling sec1 v0.3.0 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling socket2 v0.5.8 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling http-body-util v0.1.2 [INFO] [stderr] Compiling crypto-bigint v0.4.9 [INFO] [stderr] Compiling ff v0.12.1 [INFO] [stderr] Compiling signature v1.6.4 [INFO] [stderr] Compiling crypto-bigint v0.5.5 [INFO] [stderr] Compiling tokio v1.42.0 [INFO] [stderr] Compiling group v0.12.1 [INFO] [stderr] Compiling elliptic-curve v0.12.3 [INFO] [stderr] Compiling rfc6979 v0.3.1 [INFO] [stderr] Compiling ecdsa v0.14.8 [INFO] [stderr] Compiling p256 v0.11.1 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling zerofrom-derive v0.1.5 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling tokio-util v0.7.13 [INFO] [stderr] Compiling aws-smithy-async v1.2.1 [INFO] [stderr] Compiling zerofrom v0.1.5 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling aws-smithy-types v1.2.9 [INFO] [stderr] Compiling h2 v0.3.26 [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 tokio-rustls v0.24.1 [INFO] [stderr] Compiling aws-smithy-runtime-api v1.7.3 [INFO] [stderr] Compiling aws-smithy-eventstream v0.60.5 [INFO] [stderr] Compiling aws-smithy-json v0.61.1 [INFO] [stderr] Compiling aws-smithy-query v0.60.7 [INFO] [stderr] Compiling aws-smithy-json v0.60.7 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling aws-smithy-http v0.60.11 [INFO] [stderr] Compiling aws-credential-types v1.2.1 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling aws-sigv4 v1.2.6 [INFO] [stderr] Compiling aws-smithy-checksums v0.60.13 [INFO] [stderr] Compiling hyper v0.14.31 [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-rustls v0.24.2 [INFO] [stderr] Compiling aws-smithy-runtime v1.7.4 [INFO] [stderr] Compiling aws-runtime v1.4.4 [INFO] [stderr] Compiling aws-sdk-sso v1.50.0 [INFO] [stderr] Compiling aws-sdk-ssooidc v1.51.0 [INFO] [stderr] Compiling aws-sdk-sts v1.51.0 [INFO] [stderr] Compiling aws-sdk-s3 v1.65.0 [INFO] [stderr] Compiling aws-config v1.5.10 [INFO] [stderr] Compiling cloudflare-r2-rs v0.6.8 (/opt/rustwide/workdir) [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/r2.rs:55:16 [INFO] [stdout] | [INFO] [stdout] 55 | S3_CONFIG.clone_from(&s3_config); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/r2.rs:92:16 [INFO] [stdout] | [INFO] [stdout] 92 | S3_CONFIG.clone_from(&s3_config); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 30s [INFO] running `Command { std: "docker" "inspect" "3fb7c766ce146718744ab6b1a0636d74eb8d427dd1e6f758e3970b9052a9d770", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3fb7c766ce146718744ab6b1a0636d74eb8d427dd1e6f758e3970b9052a9d770", kill_on_drop: false }` [INFO] [stdout] 3fb7c766ce146718744ab6b1a0636d74eb8d427dd1e6f758e3970b9052a9d770 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] ecf7f01f3f55abc5a5bf2ea352f7f8f2cba3af7ddc11fd25b9b566d47a376433 [INFO] running `Command { std: "docker" "start" "-a" "ecf7f01f3f55abc5a5bf2ea352f7f8f2cba3af7ddc11fd25b9b566d47a376433", kill_on_drop: false }` [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/r2.rs:55:16 [INFO] [stdout] | [INFO] [stdout] 55 | S3_CONFIG.clone_from(&s3_config); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/r2.rs:92:16 [INFO] [stdout] | [INFO] [stdout] 92 | S3_CONFIG.clone_from(&s3_config); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling cloudflare-r2-rs v0.6.8 (/opt/rustwide/workdir) [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/r2.rs:55:16 [INFO] [stdout] | [INFO] [stdout] 55 | S3_CONFIG.clone_from(&s3_config); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/r2.rs:92:16 [INFO] [stdout] | [INFO] [stdout] 92 | S3_CONFIG.clone_from(&s3_config); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.33s [INFO] running `Command { std: "docker" "inspect" "ecf7f01f3f55abc5a5bf2ea352f7f8f2cba3af7ddc11fd25b9b566d47a376433", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ecf7f01f3f55abc5a5bf2ea352f7f8f2cba3af7ddc11fd25b9b566d47a376433", kill_on_drop: false }` [INFO] [stdout] ecf7f01f3f55abc5a5bf2ea352f7f8f2cba3af7ddc11fd25b9b566d47a376433 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] d7b8a4fd918641ad72ddc8dfa25dcad9a2726911790d34bb0e270f19ffc5a231 [INFO] running `Command { std: "docker" "start" "-a" "d7b8a4fd918641ad72ddc8dfa25dcad9a2726911790d34bb0e270f19ffc5a231", kill_on_drop: false }` [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/r2.rs:55:16 [INFO] [stderr] | [INFO] [stderr] 55 | S3_CONFIG.clone_from(&s3_config); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stderr] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/r2.rs:92:16 [INFO] [stderr] | [INFO] [stderr] 92 | S3_CONFIG.clone_from(&s3_config); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stderr] [INFO] [stderr] warning: `cloudflare-r2-rs` (lib) generated 2 warnings [INFO] [stderr] warning: `cloudflare-r2-rs` (lib test) generated 2 warnings (2 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.23s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/cloudflare_r2_rs-37bf1f7e9fe24885) [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 cloudflare_r2_rs [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test src/lib.rs - r2 (line 3) ... FAILED [INFO] [stdout] test src/r2.rs - r2::R2Manager::upload (line 146) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - r2 (line 3) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `R2Manager` [INFO] [stdout] --> src/lib.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 4 | let r2_manager = R2Manager::new( [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `R2Manager` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use cloudflare_r2_rs::r2::R2Manager; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `R2Manager` [INFO] [stdout] --> src/lib.rs:17:20 [INFO] [stdout] | [INFO] [stdout] 16 | let _r2_manager2 = R2Manager::new_with_region( [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `R2Manager` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use cloudflare_r2_rs::r2::R2Manager; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_3_0() { [INFO] [stdout] | --------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 21 | "").await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:25:83 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_3_0() { [INFO] [stdout] | --------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 24 | r2_manager.upload("test", b"Hello world", Some("max-age=60"), Some("text/plain")).await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:26:36 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_3_0() { [INFO] [stdout] | --------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 25 | let bytes = r2_manager.get("test").await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] [stdout] ---- src/r2.rs - r2::R2Manager::upload (line 146) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `r2manager` in this scope [INFO] [stdout] --> src/r2.rs:148:1 [INFO] [stdout] | [INFO] [stdout] 4 | r2manager.upload("my_object_name", str_bytes, Some("max-age=60"), Some("text/plain")); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - r2 (line 3) [INFO] [stdout] src/r2.rs - r2::R2Manager::upload (line 146) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.22s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "d7b8a4fd918641ad72ddc8dfa25dcad9a2726911790d34bb0e270f19ffc5a231", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d7b8a4fd918641ad72ddc8dfa25dcad9a2726911790d34bb0e270f19ffc5a231", kill_on_drop: false }` [INFO] [stdout] d7b8a4fd918641ad72ddc8dfa25dcad9a2726911790d34bb0e270f19ffc5a231