[INFO] fetching crate redlock-rs 0.2.1... [INFO] checking redlock-rs-0.2.1 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] extracting crate redlock-rs 0.2.1 into /workspace/builds/worker-6-tc1/source [INFO] validating manifest of crates.io crate redlock-rs 0.2.1 on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "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-6-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 53 packages to latest compatible versions [INFO] [stderr] Adding idna v0.5.0 (available: v1.0.2) [INFO] [stderr] Adding wasi v0.11.0+wasi-snapshot-preview1 (available: v0.13.2+wasi-0.2.1) [INFO] [stderr] Adding windows-sys v0.52.0 (available: v0.59.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 08530ee5b2f94428b543178489fd7918c1093d4e8ee15787e79ebcbaddb3e982 [INFO] running `Command { std: "docker" "start" "-a" "08530ee5b2f94428b543178489fd7918c1093d4e8ee15787e79ebcbaddb3e982", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "08530ee5b2f94428b543178489fd7918c1093d4e8ee15787e79ebcbaddb3e982", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "08530ee5b2f94428b543178489fd7918c1093d4e8ee15787e79ebcbaddb3e982", kill_on_drop: false }` [INFO] [stdout] 08530ee5b2f94428b543178489fd7918c1093d4e8ee15787e79ebcbaddb3e982 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2e8dbdb17ab7d4b550ead4fc28c7af86ded53c6cfac36ab32bdbd94226cf2c6b [INFO] running `Command { std: "docker" "start" "-a" "2e8dbdb17ab7d4b550ead4fc28c7af86ded53c6cfac36ab32bdbd94226cf2c6b", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Checking bytes v1.7.2 [INFO] [stderr] Checking sha1_smol v1.0.1 [INFO] [stderr] Checking tinyvec v1.8.0 [INFO] [stderr] Checking arc-swap v1.7.1 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking combine v4.6.7 [INFO] [stderr] Checking unicode-normalization v0.1.24 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Checking url v2.5.2 [INFO] [stderr] Checking redis v0.27.2 [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] = help: consider importing one of these structs instead: [INFO] [stdout] std::collections::btree_map::Range [INFO] [stdout] std::collections::btree_set::Range [INFO] [stdout] std::ops::Range [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] = help: consider importing one of these structs instead: [INFO] [stdout] std::collections::btree_map::Range [INFO] [stdout] std::collections::btree_set::Range [INFO] [stdout] std::ops::Range [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: elided lifetime has a name [INFO] [stdout] --> src/redlock.rs:111:73 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn lock<'a>(&'a self, resource: &'a [u8], ttl: usize) -> Option { [INFO] [stdout] | -- lifetime `'a` declared here ^^^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/redlock.rs:111:73 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn lock<'a>(&'a self, resource: &'a [u8], ttl: usize) -> Option { [INFO] [stdout] | -- lifetime `'a` declared here ^^^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` 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: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] | 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-6f17d22bba15001f/redis-0.27.2/src/cmd.rs:424:12 [INFO] [stdout] | [INFO] [stdout] 424 | 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: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-6f17d22bba15001f/redis-0.27.2/src/cmd.rs:424:12 [INFO] [stdout] | [INFO] [stdout] 424 | 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-6f17d22bba15001f/redis-0.27.2/src/script.rs:144:12 [INFO] [stdout] | [INFO] [stdout] 144 | pub fn invoke(&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-6f17d22bba15001f/redis-0.27.2/src/script.rs:144:12 [INFO] [stdout] | [INFO] [stdout] 144 | pub fn invoke(&self, con: &mut dyn ConnectionLike) -> RedisResult { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `redis::Cmd::execute`: Use Cmd::exec + unwrap, instead [INFO] [stdout] --> src/redlock.rs:218:45 [INFO] [stdout] | [INFO] [stdout] 218 | redis::cmd("SET").arg(&*key).arg(&*val).execute(&con); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 3 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] | 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-6f17d22bba15001f/redis-0.27.2/src/cmd.rs:531:12 [INFO] [stdout] | [INFO] [stdout] 531 | pub fn execute(&self, con: &mut dyn ConnectionLike) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `redis::Cmd::execute`: Use Cmd::exec + unwrap, instead [INFO] [stdout] --> src/redlock.rs:231:34 [INFO] [stdout] | [INFO] [stdout] 231 | redis::cmd("DEL").arg(&*key).execute(&con); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `redlock-rs` (lib) due to 5 previous errors; 3 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] | 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-6f17d22bba15001f/redis-0.27.2/src/cmd.rs:531:12 [INFO] [stdout] | [INFO] [stdout] 531 | pub fn execute(&self, con: &mut dyn ConnectionLike) { [INFO] [stdout] | ^^^^^^^ [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] | 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-6f17d22bba15001f/redis-0.27.2/src/cmd.rs:424:12 [INFO] [stdout] | [INFO] [stdout] 424 | pub fn query(&self, con: &mut dyn ConnectionLike) -> RedisResult { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors; 5 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: could not compile `redlock-rs` (lib test) due to 8 previous errors; 5 warnings emitted [INFO] running `Command { std: "docker" "inspect" "2e8dbdb17ab7d4b550ead4fc28c7af86ded53c6cfac36ab32bdbd94226cf2c6b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2e8dbdb17ab7d4b550ead4fc28c7af86ded53c6cfac36ab32bdbd94226cf2c6b", kill_on_drop: false }` [INFO] [stdout] 2e8dbdb17ab7d4b550ead4fc28c7af86ded53c6cfac36ab32bdbd94226cf2c6b