[INFO] crate rust_redlock 0.4.0 is already in cache [INFO] checking rust_redlock-0.4.0 against try#e4dba30b9b475d8750370c4dfb49b6541990904d for pr-71393 [INFO] extracting crate rust_redlock 0.4.0 into /workspace/builds/worker-1/source [INFO] validating manifest of crates.io crate rust_redlock 0.4.0 on toolchain e4dba30b9b475d8750370c4dfb49b6541990904d [INFO] running `"/workspace/cargo-home/bin/cargo" "+e4dba30b9b475d8750370c4dfb49b6541990904d" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking crates.io crate rust_redlock 0.4.0 [INFO] finished tweaking crates.io crate rust_redlock 0.4.0 [INFO] tweaked toml for crates.io crate rust_redlock 0.4.0 written to /workspace/builds/worker-1/source/Cargo.toml [INFO] running `"/workspace/cargo-home/bin/cargo" "+e4dba30b9b475d8750370c4dfb49b6541990904d" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/workspace/cargo-home/bin/cargo" "+e4dba30b9b475d8750370c4dfb49b6541990904d" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+e4dba30b9b475d8750370c4dfb49b6541990904d" "check" "--frozen" "--all" "--all-targets"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 39a30f3df6238383b1f05b50c16e704b7e90422853dc56a173e1e82b85ecb9d4 [INFO] running `"docker" "start" "-a" "39a30f3df6238383b1f05b50c16e704b7e90422853dc56a173e1e82b85ecb9d4"` [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Checking lazy_static v0.2.11 [INFO] [stderr] Checking url v1.7.2 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking sha1 v0.1.1 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Checking redis v0.5.4 [INFO] [stderr] Checking rust_redlock v0.4.0 (/opt/rustwide/workdir) [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/redlock.rs:113:33 [INFO] [stderr] | [INFO] [stderr] 113 | -> RedlockResult<(Lock)> { [INFO] [stderr] | ^^^^^^ help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/scripts.rs:3:1 [INFO] [stderr] | [INFO] [stderr] 3 | / lazy_static! { [INFO] [stderr] 4 | | pub static ref LOCK: redis::Script = redis::Script::new(" [INFO] [stderr] 5 | | return redis.call(\"set\", KEYS[1], ARGV[1], \"NX\", \"PX\", ARGV[2]) [INFO] [stderr] 6 | | "); [INFO] [stderr] ... | [INFO] [stderr] 22 | | "); [INFO] [stderr] 23 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/scripts.rs:3:1 [INFO] [stderr] | [INFO] [stderr] 3 | / lazy_static! { [INFO] [stderr] 4 | | pub static ref LOCK: redis::Script = redis::Script::new(" [INFO] [stderr] 5 | | return redis.call(\"set\", KEYS[1], ARGV[1], \"NX\", \"PX\", ARGV[2]) [INFO] [stderr] 6 | | "); [INFO] [stderr] ... | [INFO] [stderr] 22 | | "); [INFO] [stderr] 23 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/scripts.rs:3:1 [INFO] [stderr] | [INFO] [stderr] 3 | / lazy_static! { [INFO] [stderr] 4 | | pub static ref LOCK: redis::Script = redis::Script::new(" [INFO] [stderr] 5 | | return redis.call(\"set\", KEYS[1], ARGV[1], \"NX\", \"PX\", ARGV[2]) [INFO] [stderr] 6 | | "); [INFO] [stderr] ... | [INFO] [stderr] 22 | | "); [INFO] [stderr] 23 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/redlock.rs:113:33 [INFO] [stderr] | [INFO] [stderr] 113 | -> RedlockResult<(Lock)> { [INFO] [stderr] | ^^^^^^ help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/scripts.rs:3:1 [INFO] [stderr] | [INFO] [stderr] 3 | / lazy_static! { [INFO] [stderr] 4 | | pub static ref LOCK: redis::Script = redis::Script::new(" [INFO] [stderr] 5 | | return redis.call(\"set\", KEYS[1], ARGV[1], \"NX\", \"PX\", ARGV[2]) [INFO] [stderr] 6 | | "); [INFO] [stderr] ... | [INFO] [stderr] 22 | | "); [INFO] [stderr] 23 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/scripts.rs:3:1 [INFO] [stderr] | [INFO] [stderr] 3 | / lazy_static! { [INFO] [stderr] 4 | | pub static ref LOCK: redis::Script = redis::Script::new(" [INFO] [stderr] 5 | | return redis.call(\"set\", KEYS[1], ARGV[1], \"NX\", \"PX\", ARGV[2]) [INFO] [stderr] 6 | | "); [INFO] [stderr] ... | [INFO] [stderr] 22 | | "); [INFO] [stderr] 23 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/scripts.rs:3:1 [INFO] [stderr] | [INFO] [stderr] 3 | / lazy_static! { [INFO] [stderr] 4 | | pub static ref LOCK: redis::Script = redis::Script::new(" [INFO] [stderr] 5 | | return redis.call(\"set\", KEYS[1], ARGV[1], \"NX\", \"PX\", ARGV[2]) [INFO] [stderr] 6 | | "); [INFO] [stderr] ... | [INFO] [stderr] 22 | | "); [INFO] [stderr] 23 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/redlock.rs:287:5 [INFO] [stderr] | [INFO] [stderr] 287 | / lazy_static! { [INFO] [stderr] 288 | | static ref REDLOCK: Redlock = Redlock::new::<&str>(Config { [INFO] [stderr] 289 | | addrs: vec!["redis://127.0.0.1"], [INFO] [stderr] 290 | | retry_count: 10, [INFO] [stderr] ... | [INFO] [stderr] 296 | | static ref REDIS_CLI: redis::Client = redis::Client::open("redis://127.0.0.1").unwrap(); [INFO] [stderr] 297 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/redlock.rs:287:5 [INFO] [stderr] | [INFO] [stderr] 287 | / lazy_static! { [INFO] [stderr] 288 | | static ref REDLOCK: Redlock = Redlock::new::<&str>(Config { [INFO] [stderr] 289 | | addrs: vec!["redis://127.0.0.1"], [INFO] [stderr] 290 | | retry_count: 10, [INFO] [stderr] ... | [INFO] [stderr] 296 | | static ref REDIS_CLI: redis::Client = redis::Client::open("redis://127.0.0.1").unwrap(); [INFO] [stderr] 297 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0606]: casting `f64` as `usize` is invalid [INFO] [stderr] --> src/redlock.rs:86:22 [INFO] [stderr] | [INFO] [stderr] 86 | let quorum = (clients.len() as f64 / 2_f64).floor() as usize + 1; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0606]: casting `f64` as `u64` is invalid [INFO] [stderr] --> src/redlock.rs:115:43 [INFO] [stderr] | [INFO] [stderr] 115 | let drift = Duration::from_millis((self.drift_factor as f64 * [INFO] [stderr] | ___________________________________________^ [INFO] [stderr] 116 | | util::num_milliseconds(&ttl) as f64) [INFO] [stderr] 117 | | .round() as [INFO] [stderr] 118 | | u64 + 2); [INFO] [stderr] | |_____________________________________________^ [INFO] [stderr] [INFO] [stderr] error: aborting due to 2 previous errors; 4 warnings emitted [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0606`. [INFO] [stderr] error: could not compile `rust_redlock`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0606]: casting `f64` as `usize` is invalid [INFO] [stderr] --> src/redlock.rs:86:22 [INFO] [stderr] | [INFO] [stderr] 86 | let quorum = (clients.len() as f64 / 2_f64).floor() as usize + 1; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0606]: casting `f64` as `u64` is invalid [INFO] [stderr] --> src/redlock.rs:115:43 [INFO] [stderr] | [INFO] [stderr] 115 | let drift = Duration::from_millis((self.drift_factor as f64 * [INFO] [stderr] | ___________________________________________^ [INFO] [stderr] 116 | | util::num_milliseconds(&ttl) as f64) [INFO] [stderr] 117 | | .round() as [INFO] [stderr] 118 | | u64 + 2); [INFO] [stderr] | |_____________________________________________^ [INFO] [stderr] [INFO] [stderr] error: aborting due to 2 previous errors; 6 warnings emitted [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0606`. [INFO] [stderr] error: could not compile `rust_redlock`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "39a30f3df6238383b1f05b50c16e704b7e90422853dc56a173e1e82b85ecb9d4"` [INFO] running `"docker" "rm" "-f" "39a30f3df6238383b1f05b50c16e704b7e90422853dc56a173e1e82b85ecb9d4"` [INFO] [stdout] 39a30f3df6238383b1f05b50c16e704b7e90422853dc56a173e1e82b85ecb9d4