[INFO] fetching crate redlock-rs 0.2.1... [INFO] checking redlock-rs-0.2.1 against master#33fdb797f59421c7bbecaa4588ed5d7a31a9494a for pr-87190-3 [INFO] extracting crate redlock-rs 0.2.1 into /workspace/builds/worker-49/source [INFO] validating manifest of crates.io crate redlock-rs 0.2.1 on toolchain 33fdb797f59421c7bbecaa4588ed5d7a31a9494a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-49/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-49/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-49/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8ca27bed110ef2a34daa04da759fbf276f34a35bb8bacdb8e0943e99a1507d27 [INFO] running `Command { std: "docker" "start" "-a" "8ca27bed110ef2a34daa04da759fbf276f34a35bb8bacdb8e0943e99a1507d27", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8ca27bed110ef2a34daa04da759fbf276f34a35bb8bacdb8e0943e99a1507d27", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8ca27bed110ef2a34daa04da759fbf276f34a35bb8bacdb8e0943e99a1507d27", kill_on_drop: false }` [INFO] [stdout] 8ca27bed110ef2a34daa04da759fbf276f34a35bb8bacdb8e0943e99a1507d27 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-49/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-49/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b932115f3cafa62e6fc79eabf46a207e079092ac2179b24b2c4540497e2cf0e4 [INFO] running `Command { std: "docker" "start" "-a" "b932115f3cafa62e6fc79eabf46a207e079092ac2179b24b2c4540497e2cf0e4", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.100 [INFO] [stderr] Compiling proc-macro2 v1.0.28 [INFO] [stderr] Checking tinyvec_macros v0.1.0 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Checking matches v0.1.9 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling syn v1.0.75 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Compiling async-trait v0.1.51 [INFO] [stderr] Checking unicode-bidi v0.3.6 [INFO] [stderr] Checking sha1 v0.6.0 [INFO] [stderr] Checking dtoa v0.4.8 [INFO] [stderr] Checking itoa v0.4.8 [INFO] [stderr] Checking time v0.3.1 [INFO] [stderr] Checking tinyvec v1.3.1 [INFO] [stderr] Checking form_urlencoded v1.0.1 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking unicode-normalization v0.1.19 [INFO] [stderr] Checking combine v4.6.0 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking idna v0.2.3 [INFO] [stderr] Checking rand v0.8.4 [INFO] [stderr] Checking url v2.2.2 [INFO] [stderr] Checking redis v0.21.0 [INFO] [stderr] Checking redlock-rs v0.2.1 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved imports `rand::distributions::IndependentSample`, `rand::distributions::Range` [INFO] [stdout] --> src/redlock.rs:9:27 [INFO] [stdout] | [INFO] [stdout] 9 | use rand::distributions::{IndependentSample, Range}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^ no `Range` in `distributions` [INFO] [stdout] | | [INFO] [stdout] | no `IndependentSample` in `distributions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `rand::distributions::IndependentSample`, `rand::distributions::Range` [INFO] [stdout] --> src/redlock.rs:9:27 [INFO] [stdout] | [INFO] [stdout] 9 | use rand::distributions::{IndependentSample, Range}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^ no `Range` in `distributions` [INFO] [stdout] | | [INFO] [stdout] | no `IndependentSample` in `distributions` [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] 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 `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] 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 `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] = note: expected mutable reference `&mut dyn ConnectionLike` [INFO] [stdout] found reference `&Connection` [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] = note: expected mutable reference `&mut dyn ConnectionLike` [INFO] [stdout] found reference `&Connection` [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] = note: expected mutable reference `&mut dyn ConnectionLike` [INFO] [stdout] found reference `&Connection` [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] = note: expected mutable reference `&mut dyn ConnectionLike` [INFO] [stdout] found reference `&Connection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 2 warnings emitted [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] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/redlock.rs:218:53 [INFO] [stdout] | [INFO] [stdout] 218 | redis::cmd("SET").arg(&*key).arg(&*val).execute(&con); [INFO] [stdout] | ^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut dyn ConnectionLike` [INFO] [stdout] found reference `&Connection` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `redlock-rs` due to 5 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/redlock.rs:231:42 [INFO] [stdout] | [INFO] [stdout] 231 | redis::cmd("DEL").arg(&*key).execute(&con); [INFO] [stdout] | ^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut dyn ConnectionLike` [INFO] [stdout] found reference `&Connection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/redlock.rs:242:64 [INFO] [stdout] | [INFO] [stdout] 242 | let _ : () = redis::cmd("SET").arg(&*key).arg(&*val).query(&con).unwrap(); [INFO] [stdout] | ^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut dyn ConnectionLike` [INFO] [stdout] found reference `&Connection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors; 2 warnings emitted [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: build failed [INFO] running `Command { std: "docker" "inspect" "b932115f3cafa62e6fc79eabf46a207e079092ac2179b24b2c4540497e2cf0e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b932115f3cafa62e6fc79eabf46a207e079092ac2179b24b2c4540497e2cf0e4", kill_on_drop: false }` [INFO] [stdout] b932115f3cafa62e6fc79eabf46a207e079092ac2179b24b2c4540497e2cf0e4