[INFO] cloning repository https://github.com/milen-denev/cloudflare-r2-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/milen-denev/cloudflare-r2-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmilen-denev%2Fcloudflare-r2-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmilen-denev%2Fcloudflare-r2-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3eb230efb9094748fb50a014ce986f14d93caa79 [INFO] testing milen-denev/cloudflare-r2-rs against beta-2025-01-12 for beta-1.85-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmilen-denev%2Fcloudflare-r2-rs" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/milen-denev/cloudflare-r2-rs on toolchain beta-2025-01-12 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2025-01-12" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/milen-denev/cloudflare-r2-rs [INFO] finished tweaking git repo https://github.com/milen-denev/cloudflare-r2-rs [INFO] tweaked toml for git repo https://github.com/milen-denev/cloudflare-r2-rs written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/milen-denev/cloudflare-r2-rs 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" "+beta-2025-01-12" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded aws-sdk-s3 v1.65.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:86ea7c7af713d31e8cfdb68a6d0db50b5cf7cbeecde3d112f9f257f747318d36" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-01-12" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6692ea646f0fef8d51fed14592c939f228c8e399261253766789012786ee85dc [INFO] running `Command { std: "docker" "start" "-a" "6692ea646f0fef8d51fed14592c939f228c8e399261253766789012786ee85dc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6692ea646f0fef8d51fed14592c939f228c8e399261253766789012786ee85dc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6692ea646f0fef8d51fed14592c939f228c8e399261253766789012786ee85dc", kill_on_drop: false }` [INFO] [stdout] 6692ea646f0fef8d51fed14592c939f228c8e399261253766789012786ee85dc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:86ea7c7af713d31e8cfdb68a6d0db50b5cf7cbeecde3d112f9f257f747318d36" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-01-12" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6f02a1e80629fa40259a0144f43d1ef18609dfafb79486cc7fe1ac48a9392a3d [INFO] running `Command { std: "docker" "start" "-a" "6f02a1e80629fa40259a0144f43d1ef18609dfafb79486cc7fe1ac48a9392a3d", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.167 [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling bytes v1.9.0 [INFO] [stderr] Compiling pin-project-lite v0.2.15 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling itoa v1.0.14 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling outref v0.5.1 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling vsimd v0.8.0 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling cc v1.2.2 [INFO] [stderr] Compiling semver v1.0.23 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling const-oid v0.9.6 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling base64ct v1.6.0 [INFO] [stderr] Compiling der v0.6.1 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling foldhash v0.1.3 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling allocator-api2 v0.2.21 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling cpufeatures v0.2.16 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling http v1.2.0 [INFO] [stderr] Compiling time v0.3.37 [INFO] [stderr] Compiling bytes-utils v0.1.4 [INFO] [stderr] Compiling base64-simd v0.8.0 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling httparse v1.9.5 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling base16ct v0.1.1 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling syn v2.0.90 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling litemap v0.7.4 [INFO] [stderr] Compiling http-body-util v0.1.2 [INFO] [stderr] Compiling writeable v0.5.5 [INFO] [stderr] Compiling socket2 v0.5.8 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling spki v0.6.0 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling pkcs8 v0.9.0 [INFO] [stderr] Compiling ff v0.12.1 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling group v0.12.1 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling aws-types v1.3.3 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling indexmap v2.7.0 [INFO] [stderr] Compiling rustls-native-certs v0.6.3 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling icu_locid_transform_data v1.5.0 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling crypto-bigint v0.4.9 [INFO] [stderr] Compiling sec1 v0.3.0 [INFO] [stderr] Compiling tokio v1.42.0 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling crypto-bigint v0.5.5 [INFO] [stderr] Compiling fastrand v2.2.0 [INFO] [stderr] Compiling icu_properties_data v1.5.0 [INFO] [stderr] Compiling utf16_iter v1.0.5 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling icu_normalizer_data v1.5.0 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling uuid v1.11.0 [INFO] [stderr] Compiling write16 v1.0.0 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling signature v1.6.4 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling regex-lite v0.1.6 [INFO] [stderr] Compiling crc32c v0.6.8 [INFO] [stderr] Compiling xmlparser v0.13.6 [INFO] [stderr] Compiling urlencoding v2.1.3 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Compiling lru v0.12.5 [INFO] [stderr] Compiling aws-smithy-xml v0.60.9 [INFO] [stderr] Compiling rfc6979 v0.3.1 [INFO] [stderr] Compiling elliptic-curve v0.12.3 [INFO] [stderr] Compiling ecdsa v0.14.8 [INFO] [stderr] Compiling p256 v0.11.1 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling zerofrom-derive v0.1.5 [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 icu_provider_macros v1.5.0 [INFO] [stderr] Compiling tokio-util v0.7.13 [INFO] [stderr] Compiling aws-smithy-async v1.2.1 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling zerofrom v0.1.5 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling zerovec v0.10.4 [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 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 aws-smithy-http v0.60.11 [INFO] [stderr] Compiling aws-credential-types v1.2.1 [INFO] [stderr] Compiling tokio-rustls v0.24.1 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling aws-sigv4 v1.2.6 [INFO] [stderr] Compiling aws-smithy-checksums v0.60.13 [INFO] [stderr] Compiling icu_properties v1.5.1 [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-sts v1.51.0 [INFO] [stderr] Compiling aws-sdk-ssooidc 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 is discouraged [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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [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 35s [INFO] running `Command { std: "docker" "inspect" "6f02a1e80629fa40259a0144f43d1ef18609dfafb79486cc7fe1ac48a9392a3d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6f02a1e80629fa40259a0144f43d1ef18609dfafb79486cc7fe1ac48a9392a3d", kill_on_drop: false }` [INFO] [stdout] 6f02a1e80629fa40259a0144f43d1ef18609dfafb79486cc7fe1ac48a9392a3d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:86ea7c7af713d31e8cfdb68a6d0db50b5cf7cbeecde3d112f9f257f747318d36" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-01-12" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f76769989bb4c90c19de388350914a9e98cb26eaa08af17a4e27dad504a2156a [INFO] running `Command { std: "docker" "start" "-a" "f76769989bb4c90c19de388350914a9e98cb26eaa08af17a4e27dad504a2156a", kill_on_drop: false }` [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [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)]` on by default [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 is discouraged [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] [stdout] warning: creating a mutable reference to mutable static is discouraged [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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [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 8.97s [INFO] running `Command { std: "docker" "inspect" "f76769989bb4c90c19de388350914a9e98cb26eaa08af17a4e27dad504a2156a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f76769989bb4c90c19de388350914a9e98cb26eaa08af17a4e27dad504a2156a", kill_on_drop: false }` [INFO] [stdout] f76769989bb4c90c19de388350914a9e98cb26eaa08af17a4e27dad504a2156a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:86ea7c7af713d31e8cfdb68a6d0db50b5cf7cbeecde3d112f9f257f747318d36" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-01-12" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] f453c79799efba709f15561cbf6a62727d39ae726ccf75827db3800a05d4199b [INFO] running `Command { std: "docker" "start" "-a" "f453c79799efba709f15561cbf6a62727d39ae726ccf75827db3800a05d4199b", kill_on_drop: false }` [INFO] [stderr] warning: creating a mutable reference to mutable static is discouraged [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)]` on by default [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static is discouraged [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.28s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/cloudflare_r2_rs-3e98b9b1119f97ef) [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/r2.rs - r2::R2Manager::upload (line 146) ... FAILED [INFO] [stdout] test src/lib.rs - r2 (line 3) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [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] ---- 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] 3 + 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] 3 + 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] 3 | 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] 3 | 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] 3 | 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] [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.19s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "f453c79799efba709f15561cbf6a62727d39ae726ccf75827db3800a05d4199b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f453c79799efba709f15561cbf6a62727d39ae726ccf75827db3800a05d4199b", kill_on_drop: false }` [INFO] [stdout] f453c79799efba709f15561cbf6a62727d39ae726ccf75827db3800a05d4199b