[INFO] cloning repository https://github.com/mahaoran1997/mylucid [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mahaoran1997/mylucid" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmahaoran1997%2Fmylucid", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmahaoran1997%2Fmylucid'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ddddc4599840cc4236b2ec6f1bf5ce6caff47883 [INFO] building mahaoran1997/mylucid against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmahaoran1997%2Fmylucid" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mahaoran1997/mylucid on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mahaoran1997/mylucid [INFO] finished tweaking git repo https://github.com/mahaoran1997/mylucid [INFO] tweaked toml for git repo https://github.com/mahaoran1997/mylucid written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/mahaoran1997/mylucid 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0f489d118055f5a6238989d68d03f64234e2c2590c9f95e96e1faf8d8ec2d9cc [INFO] running `Command { std: "docker" "start" "-a" "0f489d118055f5a6238989d68d03f64234e2c2590c9f95e96e1faf8d8ec2d9cc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0f489d118055f5a6238989d68d03f64234e2c2590c9f95e96e1faf8d8ec2d9cc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0f489d118055f5a6238989d68d03f64234e2c2590c9f95e96e1faf8d8ec2d9cc", kill_on_drop: false }` [INFO] [stdout] 0f489d118055f5a6238989d68d03f64234e2c2590c9f95e96e1faf8d8ec2d9cc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] df6964014e3bade083453ae5ab0cd63361fed5195b43197eb12d70f9d09e9a11 [INFO] running `Command { std: "docker" "start" "-a" "df6964014e3bade083453ae5ab0cd63361fed5195b43197eb12d70f9d09e9a11", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.139 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling bytes v0.5.6 [INFO] [stderr] Compiling owning_ref v0.3.3 [INFO] [stderr] Compiling smallvec v0.6.14 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Compiling getrandom v0.2.8 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling parking_lot_core v0.2.14 [INFO] [stderr] Compiling parking_lot v0.4.8 [INFO] [stderr] Compiling chashmap v2.2.2 [INFO] [stderr] Compiling mylucid v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/main.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Operation` [INFO] [stdout] --> src/main.rs:9:33 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::workload::{Workload, Operation, Ratios}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/kvstore.rs:28:11 [INFO] [stdout] | [INFO] [stdout] 28 | let mut kv = KvStore { [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/kvstore.rs:42:34 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn set(&self, key: String, mut value: Vec) -> Option { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/kvstore.rs:78:19 [INFO] [stdout] | [INFO] [stdout] 78 | let mut cloned_value = value.clone(); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/main.rs:43:14 [INFO] [stdout] | [INFO] [stdout] 43 | Some(value) => Ok(String::from("KeyFound")), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/main.rs:82:17 [INFO] [stdout] | [INFO] [stdout] 82 | for j in 0..thread_op_cnt { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/main.rs:94:24 [INFO] [stdout] | [INFO] [stdout] 94 | Ok(res) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/main.rs:97:25 [INFO] [stdout] | [INFO] [stdout] 97 | Err(res) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_key` is never used [INFO] [stdout] --> src/main.rs:41:4 [INFO] [stdout] | [INFO] [stdout] 41 | fn find_key(store: Arc, key: String) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `switch_lock` is never used [INFO] [stdout] --> src/kvstore.rs:90:10 [INFO] [stdout] | [INFO] [stdout] 25 | impl KvStore { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn switch_lock(&self, key: String, to_lock: bool) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `delete` is never read [INFO] [stdout] --> src/workload.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Ratios { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 9 | pub delete: f32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Ratios` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `operation_count`, `resource_count`, `body_length`, `current_index`, and `length_distrib` are never read [INFO] [stdout] --> src/workload.rs:20:3 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Workload { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 19 | config: Ratios, [INFO] [stdout] 20 | operation_count: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | resource_count: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 22 | body_length: i64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 23 | current_index: i64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | length_distrib : Uniform, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.18s [INFO] running `Command { std: "docker" "inspect" "df6964014e3bade083453ae5ab0cd63361fed5195b43197eb12d70f9d09e9a11", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "df6964014e3bade083453ae5ab0cd63361fed5195b43197eb12d70f9d09e9a11", kill_on_drop: false }` [INFO] [stdout] df6964014e3bade083453ae5ab0cd63361fed5195b43197eb12d70f9d09e9a11 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 62094ecfc011838c58c73f8ebd4ae8ac268d968a2fd161a9052c7e37a56b942c [INFO] running `Command { std: "docker" "start" "-a" "62094ecfc011838c58c73f8ebd4ae8ac268d968a2fd161a9052c7e37a56b942c", kill_on_drop: false }` [INFO] [stderr] Compiling mylucid v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/main.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Operation` [INFO] [stdout] --> src/main.rs:9:33 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::workload::{Workload, Operation, Ratios}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/kvstore.rs:28:11 [INFO] [stdout] | [INFO] [stdout] 28 | let mut kv = KvStore { [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/kvstore.rs:42:34 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn set(&self, key: String, mut value: Vec) -> Option { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/kvstore.rs:78:19 [INFO] [stdout] | [INFO] [stdout] 78 | let mut cloned_value = value.clone(); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/main.rs:43:14 [INFO] [stdout] | [INFO] [stdout] 43 | Some(value) => Ok(String::from("KeyFound")), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/main.rs:82:17 [INFO] [stdout] | [INFO] [stdout] 82 | for j in 0..thread_op_cnt { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/main.rs:94:24 [INFO] [stdout] | [INFO] [stdout] 94 | Ok(res) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/main.rs:97:25 [INFO] [stdout] | [INFO] [stdout] 97 | Err(res) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_key` is never used [INFO] [stdout] --> src/main.rs:41:4 [INFO] [stdout] | [INFO] [stdout] 41 | fn find_key(store: Arc, key: String) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `switch_lock` is never used [INFO] [stdout] --> src/kvstore.rs:90:10 [INFO] [stdout] | [INFO] [stdout] 25 | impl KvStore { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn switch_lock(&self, key: String, to_lock: bool) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `delete` is never read [INFO] [stdout] --> src/workload.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Ratios { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 9 | pub delete: f32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Ratios` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `operation_count`, `resource_count`, `body_length`, `current_index`, and `length_distrib` are never read [INFO] [stdout] --> src/workload.rs:20:3 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Workload { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 19 | config: Ratios, [INFO] [stdout] 20 | operation_count: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | resource_count: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 22 | body_length: i64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 23 | current_index: i64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | length_distrib : Uniform, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.14s [INFO] running `Command { std: "docker" "inspect" "62094ecfc011838c58c73f8ebd4ae8ac268d968a2fd161a9052c7e37a56b942c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "62094ecfc011838c58c73f8ebd4ae8ac268d968a2fd161a9052c7e37a56b942c", kill_on_drop: false }` [INFO] [stdout] 62094ecfc011838c58c73f8ebd4ae8ac268d968a2fd161a9052c7e37a56b942c