[INFO] fetching crate redlock-rs 0.2.1... [INFO] testing redlock-rs-0.2.1 against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-8 [INFO] extracting crate redlock-rs 0.2.1 into /workspace/builds/worker-7-tc1/source [INFO] started tweaking crates.io crate redlock-rs 0.2.1 [INFO] finished tweaking crates.io crate redlock-rs 0.2.1 [INFO] tweaked toml for crates.io crate redlock-rs 0.2.1 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate redlock-rs 0.2.1 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] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 75 packages to latest compatible versions [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] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded redis v0.32.7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] a080bed64594948174bb09caebe5f2e79ede3b8b5cce96ef7ec0baf938f138bc [INFO] running `Command { std: "docker" "start" "-a" "a080bed64594948174bb09caebe5f2e79ede3b8b5cce96ef7ec0baf938f138bc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a080bed64594948174bb09caebe5f2e79ede3b8b5cce96ef7ec0baf938f138bc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a080bed64594948174bb09caebe5f2e79ede3b8b5cce96ef7ec0baf938f138bc", kill_on_drop: false }` [INFO] [stdout] a080bed64594948174bb09caebe5f2e79ede3b8b5cce96ef7ec0baf938f138bc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 9714e646f9a8bc1e89d89b1e5cabcc33fdf8c4784349a5b6eef3d558d73160af [INFO] running `Command { std: "docker" "start" "-a" "9714e646f9a8bc1e89d89b1e5cabcc33fdf8c4784349a5b6eef3d558d73160af", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling proc-macro2 v1.0.103 [INFO] [stderr] Compiling quote v1.0.42 [INFO] [stderr] Compiling unicode-ident v1.0.22 [INFO] [stderr] Compiling stable_deref_trait v1.2.1 [INFO] [stderr] Compiling writeable v0.6.2 [INFO] [stderr] Compiling libc v0.2.177 [INFO] [stderr] Compiling litemap v0.8.1 [INFO] [stderr] Compiling icu_normalizer_data v2.1.1 [INFO] [stderr] Compiling icu_properties_data v2.1.1 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling zerocopy v0.8.27 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling cfg-if v1.0.4 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling sha1_smol v1.0.1 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling time-core v0.1.6 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling deranged v0.5.5 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling combine v4.6.7 [INFO] [stderr] Compiling syn v2.0.110 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling socket2 v0.6.1 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling time v0.3.44 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [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 zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.1 [INFO] [stderr] Compiling zerovec v0.11.5 [INFO] [stderr] Compiling zerotrie v0.2.3 [INFO] [stderr] Compiling tinystr v0.8.2 [INFO] [stderr] Compiling potential_utf v0.1.4 [INFO] [stderr] Compiling icu_collections v2.1.1 [INFO] [stderr] Compiling icu_locale_core v2.1.1 [INFO] [stderr] Compiling icu_provider v2.1.1 [INFO] [stderr] Compiling icu_properties v2.1.1 [INFO] [stderr] Compiling icu_normalizer v2.1.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 redis v0.32.7 [INFO] [stderr] Compiling redlock-rs v0.2.1 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `rand::distributions` [INFO] [stdout] --> src/redlock.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | use rand::distributions::{IndependentSample, Range}; [INFO] [stdout] | ^^^^^^^^^^^^^ could not find `distributions` in `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_time` in crate `time` [INFO] [stdout] --> src/redlock.rs:99:26 [INFO] [stdout] | [INFO] [stdout] 99 | let time = time::get_time(); [INFO] [stdout] | ^^^^^^^^ not found in `time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::thread::sleep_ms`: replaced by `std::thread::sleep` [INFO] [stdout] --> src/redlock.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | use std::thread::sleep_ms; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: Renamed to `rng` [INFO] [stdout] --> src/redlock.rs:115:29 [INFO] [stdout] | [INFO] [stdout] 115 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::thread::sleep_ms`: replaced by `std::thread::sleep` [INFO] [stdout] --> src/redlock.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 142 | sleep_ms(n); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/redlock.rs:89:119 [INFO] [stdout] | [INFO] [stdout] 89 | let result : RedisResult = redis::cmd("SET").arg(resource).arg(val).arg("nx").arg("px").arg(ttl).query(&con); [INFO] [stdout] | ----- ^^^^ types differ in mutability [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut dyn ConnectionLike` [INFO] [stdout] found reference `&Connection` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/redis-0.32.7/src/cmd.rs:661:12 [INFO] [stdout] | [INFO] [stdout] 661 | pub fn query(&self, con: &mut dyn ConnectionLike) -> RedisResult { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/redlock.rs:153:78 [INFO] [stdout] | [INFO] [stdout] 153 | let result : RedisResult = script.key(resource).arg(val).invoke(&con); [INFO] [stdout] | ------ ^^^^ types differ in mutability [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut dyn ConnectionLike` [INFO] [stdout] found reference `&Connection` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/redis-0.32.7/src/script.rs:175:12 [INFO] [stdout] | [INFO] [stdout] 175 | pub fn invoke(&self, con: &mut dyn ConnectionLike) -> RedisResult { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0425, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `redlock-rs` (lib) due to 4 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "9714e646f9a8bc1e89d89b1e5cabcc33fdf8c4784349a5b6eef3d558d73160af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9714e646f9a8bc1e89d89b1e5cabcc33fdf8c4784349a5b6eef3d558d73160af", kill_on_drop: false }` [INFO] [stdout] 9714e646f9a8bc1e89d89b1e5cabcc33fdf8c4784349a5b6eef3d558d73160af