[INFO] cloning repository https://github.com/Xestus/ASMT [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Xestus/ASMT" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FXestus%2FASMT", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FXestus%2FASMT'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6dd4bfe99cee3b5461072a093d3481a6c3be1f55 [INFO] checking Xestus/ASMT against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FXestus%2FASMT" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Xestus/ASMT [INFO] finished tweaking git repo https://github.com/Xestus/ASMT [INFO] tweaked toml for git repo https://github.com/Xestus/ASMT written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Xestus/ASMT on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Xestus/ASMT 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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3b6f4b5393ebf6f01e77ee7f0a23d1d0d2b50365f4ec6adb161ac29ea28b282c [INFO] running `Command { std: "docker" "start" "-a" "3b6f4b5393ebf6f01e77ee7f0a23d1d0d2b50365f4ec6adb161ac29ea28b282c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3b6f4b5393ebf6f01e77ee7f0a23d1d0d2b50365f4ec6adb161ac29ea28b282c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3b6f4b5393ebf6f01e77ee7f0a23d1d0d2b50365f4ec6adb161ac29ea28b282c", kill_on_drop: false }` [INFO] [stdout] 3b6f4b5393ebf6f01e77ee7f0a23d1d0d2b50365f4ec6adb161ac29ea28b282c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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 -Dunmustuse_in_always_ok" "-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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3cfce497a510521065055636f410a1206920f44b54c59e7a4d04d56a2b522df2 [INFO] running `Command { std: "docker" "start" "-a" "3cfce497a510521065055636f410a1206920f44b54c59e7a4d04d56a2b522df2", kill_on_drop: false }` [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking ASMT v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: crate `ASMT` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `asmt` [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread::JoinHandle` [INFO] [stdout] --> src/main.rs:7:27 [INFO] [stdout] | [INFO] [stdout] 7 | use std::{io, fs, thread, thread::JoinHandle}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/main.rs:1187:62 [INFO] [stdout] | [INFO] [stdout] 1187 | fn deserialize(serialized_file_path: &str) -> io::Result<(Arc>)> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1187 - fn deserialize(serialized_file_path: &str) -> io::Result<(Arc>)> { [INFO] [stdout] 1187 + fn deserialize(serialized_file_path: &str) -> io::Result> > { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/main.rs:1482:117 [INFO] [stdout] | [INFO] [stdout] 1482 | fn push_to_memory(mut node: Arc>, serialized_file_path: &str, wal_file_path: &str, ) -> io::Result<(Arc>)> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1482 - fn push_to_memory(mut node: Arc>, serialized_file_path: &str, wal_file_path: &str, ) -> io::Result<(Arc>)> { [INFO] [stdout] 1482 + fn push_to_memory(mut node: Arc>, serialized_file_path: &str, wal_file_path: &str, ) -> io::Result> > { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:1597:16 [INFO] [stdout] | [INFO] [stdout] 1597 | if (result_min == last_txd) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1597 - if (result_min == last_txd) { [INFO] [stdout] 1597 + if result_min == last_txd { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/main.rs:1979:244 [INFO] [stdout] | [INFO] [stdout] 1979 | ...pStream>, all_addr: Arc>> ) -> io::Result<(u8)> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1979 - fn cli(cli_input: String, txd_count: Arc>, current_transaction: Arc>, file: Arc>, new_node: Arc>, mut stream: Option<&TcpStream>, all_addr: Arc>> ) -> io::Result<(u8)> { [INFO] [stdout] 1979 + fn cli(cli_input: String, txd_count: Arc>, current_transaction: Arc>, file: Arc>, new_node: Arc>, mut stream: Option<&TcpStream>, all_addr: Arc>> ) -> io::Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread::JoinHandle` [INFO] [stdout] --> src/main.rs:7:27 [INFO] [stdout] | [INFO] [stdout] 7 | use std::{io, fs, thread, thread::JoinHandle}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/main.rs:1187:62 [INFO] [stdout] | [INFO] [stdout] 1187 | fn deserialize(serialized_file_path: &str) -> io::Result<(Arc>)> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1187 - fn deserialize(serialized_file_path: &str) -> io::Result<(Arc>)> { [INFO] [stdout] 1187 + fn deserialize(serialized_file_path: &str) -> io::Result> > { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/main.rs:1482:117 [INFO] [stdout] | [INFO] [stdout] 1482 | fn push_to_memory(mut node: Arc>, serialized_file_path: &str, wal_file_path: &str, ) -> io::Result<(Arc>)> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1482 - fn push_to_memory(mut node: Arc>, serialized_file_path: &str, wal_file_path: &str, ) -> io::Result<(Arc>)> { [INFO] [stdout] 1482 + fn push_to_memory(mut node: Arc>, serialized_file_path: &str, wal_file_path: &str, ) -> io::Result> > { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:1597:16 [INFO] [stdout] | [INFO] [stdout] 1597 | if (result_min == last_txd) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1597 - if (result_min == last_txd) { [INFO] [stdout] 1597 + if result_min == last_txd { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/main.rs:1979:244 [INFO] [stdout] | [INFO] [stdout] 1979 | ...pStream>, all_addr: Arc>> ) -> io::Result<(u8)> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1979 - fn cli(cli_input: String, txd_count: Arc>, current_transaction: Arc>, file: Arc>, new_node: Arc>, mut stream: Option<&TcpStream>, all_addr: Arc>> ) -> io::Result<(u8)> { [INFO] [stdout] 1979 + fn cli(cli_input: String, txd_count: Arc>, current_transaction: Arc>, file: Arc>, new_node: Arc>, mut stream: Option<&TcpStream>, all_addr: Arc>> ) -> io::Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:2463:21 [INFO] [stdout] | [INFO] [stdout] 2462 | return Ok(()); [INFO] [stdout] | ------------- any code following this expression is unreachable [INFO] [stdout] 2463 | println!("Maximum WAL file size exceeded."); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:2463:21 [INFO] [stdout] | [INFO] [stdout] 2462 | return Ok(()); [INFO] [stdout] | ------------- any code following this expression is unreachable [INFO] [stdout] 2463 | println!("Maximum WAL file size exceeded."); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:770:13 [INFO] [stdout] | [INFO] [stdout] 770 | let mut child_read = child.read().unwrap(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:949:17 [INFO] [stdout] | [INFO] [stdout] 949 | let mut child_lock = child.read().unwrap(); [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/main.rs:962:13 [INFO] [stdout] | [INFO] [stdout] 962 | let mut self_instance = self_node.read().unwrap(); [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `k` is never read [INFO] [stdout] --> src/main.rs:976:29 [INFO] [stdout] | [INFO] [stdout] 976 | let mut k = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:770:13 [INFO] [stdout] | [INFO] [stdout] 770 | let mut child_read = child.read().unwrap(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:949:17 [INFO] [stdout] | [INFO] [stdout] 949 | let mut child_lock = child.read().unwrap(); [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/main.rs:962:13 [INFO] [stdout] | [INFO] [stdout] 962 | let mut self_instance = self_node.read().unwrap(); [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `k` is never read [INFO] [stdout] --> src/main.rs:976:29 [INFO] [stdout] | [INFO] [stdout] 976 | let mut k = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1278:13 [INFO] [stdout] | [INFO] [stdout] 1278 | let mut internal_count_activate = true; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `metadata` [INFO] [stdout] --> src/main.rs:1189:13 [INFO] [stdout] | [INFO] [stdout] 1189 | let metadata = fs::metadata(serialized_file_path)?; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_metadata` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `internal_count` is assigned to, but never used [INFO] [stdout] --> src/main.rs:1277:13 [INFO] [stdout] | [INFO] [stdout] 1277 | let mut internal_count = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_internal_count` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `no_of_children` is never read [INFO] [stdout] --> src/main.rs:1273:34 [INFO] [stdout] | [INFO] [stdout] 1273 | let mut no_of_children = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `internal_count` is never read [INFO] [stdout] --> src/main.rs:1285:17 [INFO] [stdout] | [INFO] [stdout] 1285 | internal_count = count; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1406:21 [INFO] [stdout] | [INFO] [stdout] 1406 | let mut z; [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/main.rs:1278:13 [INFO] [stdout] | [INFO] [stdout] 1278 | let mut internal_count_activate = true; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `metadata` [INFO] [stdout] --> src/main.rs:1189:13 [INFO] [stdout] | [INFO] [stdout] 1189 | let metadata = fs::metadata(serialized_file_path)?; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_metadata` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `internal_count` is assigned to, but never used [INFO] [stdout] --> src/main.rs:1277:13 [INFO] [stdout] | [INFO] [stdout] 1277 | let mut internal_count = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_internal_count` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `no_of_children` is never read [INFO] [stdout] --> src/main.rs:1273:34 [INFO] [stdout] | [INFO] [stdout] 1273 | let mut no_of_children = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `internal_count` is never read [INFO] [stdout] --> src/main.rs:1285:17 [INFO] [stdout] | [INFO] [stdout] 1285 | internal_count = count; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1406:21 [INFO] [stdout] | [INFO] [stdout] 1406 | let mut z; [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/main.rs:1979:157 [INFO] [stdout] | [INFO] [stdout] 1979 | ...ile: Arc>, new_node: Arc>, mut stream: Option<&TcpStream>, all_addr: Arc>> ) -> io::R... [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/main.rs:2153:29 [INFO] [stdout] | [INFO] [stdout] 2153 | let mut tx = current_transaction.read().unwrap(); [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/main.rs:2188:29 [INFO] [stdout] | [INFO] [stdout] 2188 | let mut tx = current_transaction.read().unwrap(); [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/main.rs:2234:29 [INFO] [stdout] | [INFO] [stdout] 2234 | let mut tx = current_transaction.read().unwrap(); [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/main.rs:1979:157 [INFO] [stdout] | [INFO] [stdout] 1979 | ...ile: Arc>, new_node: Arc>, mut stream: Option<&TcpStream>, all_addr: Arc>> ) -> io::R... [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/main.rs:2153:29 [INFO] [stdout] | [INFO] [stdout] 2153 | let mut tx = current_transaction.read().unwrap(); [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/main.rs:2188:29 [INFO] [stdout] | [INFO] [stdout] 2188 | let mut tx = current_transaction.read().unwrap(); [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/main.rs:2234:29 [INFO] [stdout] | [INFO] [stdout] 2234 | let mut tx = current_transaction.read().unwrap(); [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/main.rs:2542:9 [INFO] [stdout] | [INFO] [stdout] 2542 | let mut args = input.split_whitespace().collect::>(); [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/main.rs:2542:9 [INFO] [stdout] | [INFO] [stdout] 2542 | let mut args = input.split_whitespace().collect::>(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `socket_addr` is never read [INFO] [stdout] --> src/main.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 42 | struct TransactionItems { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 43 | status: TransactionStatus, [INFO] [stdout] 44 | socket_addr: SocketAddr, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TransactionItems` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated functions are never used [INFO] [stdout] --> src/main.rs:895:8 [INFO] [stdout] | [INFO] [stdout] 71 | impl Node { [INFO] [stdout] | --------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 895 | fn remove_key(self_node: Arc>, key: u32) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 900 | fn remove_key_extension(self_node: Arc>, key: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 929 | fn removed_node_check(mut self_node: Arc>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 956 | fn parent_key_down(self_node: Arc>, idx: usize) -> Arc> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1057 | fn moving_keys(mut self_node: Arc>, idx1: usize, idx2: usize) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1116 | fn all_keys_ordered(node: Arc>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1122 | fn collect_keys_inorder(node: Arc>, result: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1482 | fn push_to_memory(mut node: Arc>, serialized_file_path: &str, wal_file_path: &str, ) -> io::Result<(Arc>)> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `socket_addr` is never read [INFO] [stdout] --> src/main.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 42 | struct TransactionItems { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 43 | status: TransactionStatus, [INFO] [stdout] 44 | socket_addr: SocketAddr, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TransactionItems` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated functions are never used [INFO] [stdout] --> src/main.rs:895:8 [INFO] [stdout] | [INFO] [stdout] 71 | impl Node { [INFO] [stdout] | --------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 895 | fn remove_key(self_node: Arc>, key: u32) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 900 | fn remove_key_extension(self_node: Arc>, key: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 929 | fn removed_node_check(mut self_node: Arc>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 956 | fn parent_key_down(self_node: Arc>, idx: usize) -> Arc> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1057 | fn moving_keys(mut self_node: Arc>, idx1: usize, idx2: usize) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1116 | fn all_keys_ordered(node: Arc>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1122 | fn collect_keys_inorder(node: Arc>, result: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1482 | fn push_to_memory(mut node: Arc>, serialized_file_path: &str, wal_file_path: &str, ) -> io::Result<(Arc>)> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:1188:51 [INFO] [stdout] | [INFO] [stdout] 1188 | let file = File::open(serialized_file_path.clone())?; [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:1188:51 [INFO] [stdout] | [INFO] [stdout] 1188 | let file = File::open(serialized_file_path.clone())?; [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:2122:33 [INFO] [stdout] | [INFO] [stdout] 2122 | let value = args[2].parse::().expect("Invalid argument"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:2150:33 [INFO] [stdout] | [INFO] [stdout] 2150 | let value = args[2].parse::().expect("Invalid argument"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:2122:33 [INFO] [stdout] | [INFO] [stdout] 2122 | let value = args[2].parse::().expect("Invalid argument"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:2150:33 [INFO] [stdout] | [INFO] [stdout] 2150 | let value = args[2].parse::().expect("Invalid argument"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ASMT` (bin "ASMT" test) due to 2 previous errors; 24 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `ASMT` (bin "ASMT") due to 2 previous errors; 24 warnings emitted [INFO] running `Command { std: "docker" "inspect" "3cfce497a510521065055636f410a1206920f44b54c59e7a4d04d56a2b522df2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3cfce497a510521065055636f410a1206920f44b54c59e7a4d04d56a2b522df2", kill_on_drop: false }` [INFO] [stdout] 3cfce497a510521065055636f410a1206920f44b54c59e7a4d04d56a2b522df2