[INFO] cloning repository https://github.com/zwisler-a/ada-executor [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/zwisler-a/ada-executor" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzwisler-a%2Fada-executor", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzwisler-a%2Fada-executor'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ec6875eeff82fbb382b9baed07e0dc4b8bd90f74 [INFO] building zwisler-a/ada-executor 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%2Fzwisler-a%2Fada-executor" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/zwisler-a/ada-executor 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/zwisler-a/ada-executor [INFO] finished tweaking git repo https://github.com/zwisler-a/ada-executor [INFO] tweaked toml for git repo https://github.com/zwisler-a/ada-executor written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/zwisler-a/ada-executor 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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded simple_logger v5.0.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 84093877598f42e5e36086faa3b13351747bfb6909018e421d76c8522bb980f5 [INFO] running `Command { std: "docker" "start" "-a" "84093877598f42e5e36086faa3b13351747bfb6909018e421d76c8522bb980f5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "84093877598f42e5e36086faa3b13351747bfb6909018e421d76c8522bb980f5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "84093877598f42e5e36086faa3b13351747bfb6909018e421d76c8522bb980f5", kill_on_drop: false }` [INFO] [stdout] 84093877598f42e5e36086faa3b13351747bfb6909018e421d76c8522bb980f5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 5666bc3ca550d4f4398c104a4cb584b179a5a00c11bc4bd9ccb43c9a631df7ad [INFO] running `Command { std: "docker" "start" "-a" "5666bc3ca550d4f4398c104a4cb584b179a5a00c11bc4bd9ccb43c9a631df7ad", kill_on_drop: false }` [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling num_threads v0.1.7 [INFO] [stderr] Compiling colored v2.1.0 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling uuid v1.8.0 [INFO] [stderr] Compiling time v0.3.36 [INFO] [stderr] Compiling simple_logger v5.0.0 [INFO] [stderr] Compiling ada-executor v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::ops::DerefMut` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::DerefMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Display` and `Formatter` [INFO] [stdout] --> src/protocol/protocol_parser.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::{Display, Formatter}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::Command` [INFO] [stdout] --> src/protocol/tcp_server.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::process::Command; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::protocol::commands::AdaCommandType` [INFO] [stdout] --> src/network/data_container.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::protocol::commands::AdaCommandType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Display` and `Formatter` [INFO] [stdout] --> src/protocol/protocol_parser.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::{Display, Formatter}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::Command` [INFO] [stdout] --> src/protocol/tcp_server.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::process::Command; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::protocol::commands::AdaCommandType` [INFO] [stdout] --> src/network/data_container.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::protocol::commands::AdaCommandType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/protocol/protocol_parser.rs:124:13 [INFO] [stdout] | [INFO] [stdout] 124 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/protocol/protocol_parser.rs:124:13 [INFO] [stdout] | [INFO] [stdout] 83 | Data::Integer(_) => { [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 92 | Data::Float(_) => { [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 101 | Data::Text(_) => { [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 115 | Data::Boolean(_) => { [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 124 | _ => { [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/protocol/protocol_parser.rs:124:13 [INFO] [stdout] | [INFO] [stdout] 124 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/protocol/protocol_parser.rs:124:13 [INFO] [stdout] | [INFO] [stdout] 83 | Data::Integer(_) => { [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 92 | Data::Float(_) => { [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 101 | Data::Text(_) => { [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 115 | Data::Boolean(_) => { [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 124 | _ => { [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocol/commands.rs:84:13 [INFO] [stdout] | [INFO] [stdout] 84 | let mut size = COMMON_HEADER_SIZE; [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/protocol/commands.rs:84:13 [INFO] [stdout] | [INFO] [stdout] 84 | let mut size = COMMON_HEADER_SIZE; [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: unreachable pattern [INFO] [stdout] --> src/network/data_container.rs:70:17 [INFO] [stdout] | [INFO] [stdout] 70 | _ => log::warn!("Unknown data type encountered, skipping value"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/network/data_container.rs:70:17 [INFO] [stdout] | [INFO] [stdout] 66 | Data::Integer(_) => size += 4, [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 67 | Data::Float(_) => size += 8, [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 68 | Data::Text(value) => size += value.len() + 1, [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] 69 | Data::Boolean(_) => size += 1, [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 70 | _ => log::warn!("Unknown data type encountered, skipping value"), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/network/data_container.rs:70:17 [INFO] [stdout] | [INFO] [stdout] 70 | _ => log::warn!("Unknown data type encountered, skipping value"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/network/data_container.rs:70:17 [INFO] [stdout] | [INFO] [stdout] 66 | Data::Integer(_) => size += 4, [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 67 | Data::Float(_) => size += 8, [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 68 | Data::Text(value) => size += value.len() + 1, [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] 69 | Data::Boolean(_) => size += 1, [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 70 | _ => log::warn!("Unknown data type encountered, skipping value"), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/network/data_container.rs:101:17 [INFO] [stdout] | [INFO] [stdout] 101 | _ => log::warn!("Unknown data type encountered, skipping value"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/network/data_container.rs:101:17 [INFO] [stdout] | [INFO] [stdout] 93 | Data::Integer(i) => buffer.extend_from_slice(&i.to_be_bytes()), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 94 | Data::Float(f) => buffer.extend_from_slice(&f.to_be_bytes()), [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 95 | Data::Text(text) => { [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 100 | Data::Boolean(b) => buffer.push(if *b { 1 } else { 0 }), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 101 | _ => log::warn!("Unknown data type encountered, skipping value"), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/network/data_container.rs:101:17 [INFO] [stdout] | [INFO] [stdout] 101 | _ => log::warn!("Unknown data type encountered, skipping value"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/network/data_container.rs:101:17 [INFO] [stdout] | [INFO] [stdout] 93 | Data::Integer(i) => buffer.extend_from_slice(&i.to_be_bytes()), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 94 | Data::Float(f) => buffer.extend_from_slice(&f.to_be_bytes()), [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 95 | Data::Text(text) => { [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 100 | Data::Boolean(b) => buffer.push(if *b { 1 } else { 0 }), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 101 | _ => log::warn!("Unknown data type encountered, skipping value"), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_header` is never used [INFO] [stdout] --> src/protocol/protocol_parser.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn parse_header(buffer: &[u8]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `version`, `command_type`, `network`, and `node` are never read [INFO] [stdout] --> src/protocol/commands.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct AdaCommandHeader { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 34 | pub version: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 35 | pub content_length: u32, [INFO] [stdout] 36 | pub command_type: AdaCommandType, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 37 | pub network: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 38 | pub node: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AdaCommandHeader` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_data_container` is never used [INFO] [stdout] --> src/protocol/protocol_parser.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn parse_data_container(content_buffer: Vec, data_offset: usize) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `to_bytes`, and `get_total_bytes` are never used [INFO] [stdout] --> src/protocol/commands.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl AdaCommand { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 49 | pub fn new(command_type: AdaCommandType) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn to_bytes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | fn get_total_bytes(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TcpServer` is never constructed [INFO] [stdout] --> src/protocol/tcp_server.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct TcpServer { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/network/node.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `handle_client`, and `run` are never used [INFO] [stdout] --> src/protocol/tcp_server.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl TcpServer { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 16 | pub fn new(address: &str, queue: Arc>>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | fn handle_client(queue: Arc>>, mut stream: TcpStream) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn run(&self) -> std::io::Result<()> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_dependent`, `execute`, and `propagate` are never used [INFO] [stdout] --> src/network/node.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Node { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 15 | pub fn new(id: Uuid, execute_fn: F) -> Self [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub(crate) fn add_dependent(&mut self, dependent: Arc>) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn execute(&self, arguments: Container) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn propagate(&self, arguments: Container) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `content_length` is never read [INFO] [stdout] --> src/protocol/commands.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct AdaCommandHeader { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 34 | pub version: u8, [INFO] [stdout] 35 | pub content_length: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AdaCommandHeader` 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: method `get_data_type` is never used [INFO] [stdout] --> src/network/data_container.rs:16:19 [INFO] [stdout] | [INFO] [stdout] 15 | impl Data { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 16 | pub(crate) fn get_data_type(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/protocol/commands.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl AdaCommand { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 49 | pub fn new(command_type: AdaCommandType) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_data_size` and `get_bytes` are never used [INFO] [stdout] --> src/network/data_container.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 57 | impl Container { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 58 | pub fn get_data_size(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub(crate) fn get_bytes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/network/node.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_dependent`, `execute`, and `propagate` are never used [INFO] [stdout] --> src/network/node.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Node { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 15 | pub fn new(id: Uuid, execute_fn: F) -> Self [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub(crate) fn add_dependent(&mut self, dependent: Arc>) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn execute(&self, arguments: Container) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn propagate(&self, arguments: Container) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_item` is never used [INFO] [stdout] --> src/network/data_container.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 109 | impl Container { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 120 | pub fn get_item(&self, key: &str) -> Option<&Data> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_item` is never used [INFO] [stdout] --> src/network/data_container.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 109 | impl Container { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 120 | pub fn get_item(&self, key: &str) -> Option<&Data> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Graph` is never constructed [INFO] [stdout] --> src/network/graph.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Graph { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Graph` is never constructed [INFO] [stdout] --> src/network/graph.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Graph { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `add_node` are never used [INFO] [stdout] --> src/network/graph.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 9 | impl Graph { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 10 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | fn add_node(&mut self, node: Node) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `add_node` are never used [INFO] [stdout] --> src/network/graph.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 9 | impl Graph { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 10 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | fn add_node(&mut self, node: Node) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.32s [INFO] running `Command { std: "docker" "inspect" "5666bc3ca550d4f4398c104a4cb584b179a5a00c11bc4bd9ccb43c9a631df7ad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5666bc3ca550d4f4398c104a4cb584b179a5a00c11bc4bd9ccb43c9a631df7ad", kill_on_drop: false }` [INFO] [stdout] 5666bc3ca550d4f4398c104a4cb584b179a5a00c11bc4bd9ccb43c9a631df7ad [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 028162e531a7de41ce9dfcadbd33866d54c0030f7aac381cddec89b59ed64461 [INFO] running `Command { std: "docker" "start" "-a" "028162e531a7de41ce9dfcadbd33866d54c0030f7aac381cddec89b59ed64461", kill_on_drop: false }` [INFO] [stderr] Compiling ada-executor v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Display` and `Formatter` [INFO] [stdout] --> src/protocol/protocol_parser.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::{Display, Formatter}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::Command` [INFO] [stdout] --> src/protocol/tcp_server.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::process::Command; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::protocol::commands::AdaCommandType` [INFO] [stdout] --> src/network/data_container.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::protocol::commands::AdaCommandType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::DerefMut` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::DerefMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Display` and `Formatter` [INFO] [stdout] --> src/protocol/protocol_parser.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::{Display, Formatter}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::Command` [INFO] [stdout] --> src/protocol/tcp_server.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::process::Command; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::protocol::commands::AdaCommandType` [INFO] [stdout] --> src/network/data_container.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::protocol::commands::AdaCommandType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/protocol/protocol_parser.rs:124:13 [INFO] [stdout] | [INFO] [stdout] 124 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/protocol/protocol_parser.rs:124:13 [INFO] [stdout] | [INFO] [stdout] 83 | Data::Integer(_) => { [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 92 | Data::Float(_) => { [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 101 | Data::Text(_) => { [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 115 | Data::Boolean(_) => { [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 124 | _ => { [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/protocol/protocol_parser.rs:124:13 [INFO] [stdout] | [INFO] [stdout] 124 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/protocol/protocol_parser.rs:124:13 [INFO] [stdout] | [INFO] [stdout] 83 | Data::Integer(_) => { [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 92 | Data::Float(_) => { [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 101 | Data::Text(_) => { [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 115 | Data::Boolean(_) => { [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 124 | _ => { [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocol/commands.rs:84:13 [INFO] [stdout] | [INFO] [stdout] 84 | let mut size = COMMON_HEADER_SIZE; [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/protocol/commands.rs:84:13 [INFO] [stdout] | [INFO] [stdout] 84 | let mut size = COMMON_HEADER_SIZE; [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: unreachable pattern [INFO] [stdout] --> src/network/data_container.rs:70:17 [INFO] [stdout] | [INFO] [stdout] 70 | _ => log::warn!("Unknown data type encountered, skipping value"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/network/data_container.rs:70:17 [INFO] [stdout] | [INFO] [stdout] 66 | Data::Integer(_) => size += 4, [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 67 | Data::Float(_) => size += 8, [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 68 | Data::Text(value) => size += value.len() + 1, [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] 69 | Data::Boolean(_) => size += 1, [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 70 | _ => log::warn!("Unknown data type encountered, skipping value"), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/network/data_container.rs:70:17 [INFO] [stdout] | [INFO] [stdout] 70 | _ => log::warn!("Unknown data type encountered, skipping value"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/network/data_container.rs:70:17 [INFO] [stdout] | [INFO] [stdout] 66 | Data::Integer(_) => size += 4, [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 67 | Data::Float(_) => size += 8, [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 68 | Data::Text(value) => size += value.len() + 1, [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] 69 | Data::Boolean(_) => size += 1, [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 70 | _ => log::warn!("Unknown data type encountered, skipping value"), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/network/data_container.rs:101:17 [INFO] [stdout] | [INFO] [stdout] 101 | _ => log::warn!("Unknown data type encountered, skipping value"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/network/data_container.rs:101:17 [INFO] [stdout] | [INFO] [stdout] 93 | Data::Integer(i) => buffer.extend_from_slice(&i.to_be_bytes()), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 94 | Data::Float(f) => buffer.extend_from_slice(&f.to_be_bytes()), [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 95 | Data::Text(text) => { [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 100 | Data::Boolean(b) => buffer.push(if *b { 1 } else { 0 }), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 101 | _ => log::warn!("Unknown data type encountered, skipping value"), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/network/data_container.rs:101:17 [INFO] [stdout] | [INFO] [stdout] 101 | _ => log::warn!("Unknown data type encountered, skipping value"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/network/data_container.rs:101:17 [INFO] [stdout] | [INFO] [stdout] 93 | Data::Integer(i) => buffer.extend_from_slice(&i.to_be_bytes()), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 94 | Data::Float(f) => buffer.extend_from_slice(&f.to_be_bytes()), [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 95 | Data::Text(text) => { [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 100 | Data::Boolean(b) => buffer.push(if *b { 1 } else { 0 }), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 101 | _ => log::warn!("Unknown data type encountered, skipping value"), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `version`, `command_type`, `network`, and `node` are never read [INFO] [stdout] --> src/protocol/commands.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct AdaCommandHeader { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 34 | pub version: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 35 | pub content_length: u32, [INFO] [stdout] 36 | pub command_type: AdaCommandType, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 37 | pub network: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 38 | pub node: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AdaCommandHeader` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `to_bytes`, and `get_total_bytes` are never used [INFO] [stdout] --> src/protocol/commands.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl AdaCommand { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 49 | pub fn new(command_type: AdaCommandType) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn to_bytes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | fn get_total_bytes(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/network/node.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_dependent`, `execute`, and `propagate` are never used [INFO] [stdout] --> src/network/node.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Node { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 15 | pub fn new(id: Uuid, execute_fn: F) -> Self [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub(crate) fn add_dependent(&mut self, dependent: Arc>) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn execute(&self, arguments: Container) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn propagate(&self, arguments: Container) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_data_type` is never used [INFO] [stdout] --> src/network/data_container.rs:16:19 [INFO] [stdout] | [INFO] [stdout] 15 | impl Data { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 16 | pub(crate) fn get_data_type(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_data_size` and `get_bytes` are never used [INFO] [stdout] --> src/network/data_container.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 57 | impl Container { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 58 | pub fn get_data_size(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub(crate) fn get_bytes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_item` is never used [INFO] [stdout] --> src/network/data_container.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 109 | impl Container { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 120 | pub fn get_item(&self, key: &str) -> Option<&Data> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Graph` is never constructed [INFO] [stdout] --> src/network/graph.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Graph { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `add_node` are never used [INFO] [stdout] --> src/network/graph.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 9 | impl Graph { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 10 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | fn add_node(&mut self, node: Node) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_header` is never used [INFO] [stdout] --> src/protocol/protocol_parser.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn parse_header(buffer: &[u8]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_data_container` is never used [INFO] [stdout] --> src/protocol/protocol_parser.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn parse_data_container(content_buffer: Vec, data_offset: usize) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TcpServer` is never constructed [INFO] [stdout] --> src/protocol/tcp_server.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct TcpServer { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `handle_client`, and `run` are never used [INFO] [stdout] --> src/protocol/tcp_server.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl TcpServer { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 16 | pub fn new(address: &str, queue: Arc>>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | fn handle_client(queue: Arc>>, mut stream: TcpStream) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn run(&self) -> std::io::Result<()> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `content_length` is never read [INFO] [stdout] --> src/protocol/commands.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct AdaCommandHeader { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 34 | pub version: u8, [INFO] [stdout] 35 | pub content_length: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AdaCommandHeader` 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: associated function `new` is never used [INFO] [stdout] --> src/protocol/commands.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl AdaCommand { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 49 | pub fn new(command_type: AdaCommandType) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/network/node.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_dependent`, `execute`, and `propagate` are never used [INFO] [stdout] --> src/network/node.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Node { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 15 | pub fn new(id: Uuid, execute_fn: F) -> Self [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub(crate) fn add_dependent(&mut self, dependent: Arc>) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn execute(&self, arguments: Container) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn propagate(&self, arguments: Container) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_item` is never used [INFO] [stdout] --> src/network/data_container.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 109 | impl Container { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 120 | pub fn get_item(&self, key: &str) -> Option<&Data> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Graph` is never constructed [INFO] [stdout] --> src/network/graph.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Graph { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `add_node` are never used [INFO] [stdout] --> src/network/graph.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 9 | impl Graph { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 10 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | fn add_node(&mut self, node: Node) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.24s [INFO] running `Command { std: "docker" "inspect" "028162e531a7de41ce9dfcadbd33866d54c0030f7aac381cddec89b59ed64461", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "028162e531a7de41ce9dfcadbd33866d54c0030f7aac381cddec89b59ed64461", kill_on_drop: false }` [INFO] [stdout] 028162e531a7de41ce9dfcadbd33866d54c0030f7aac381cddec89b59ed64461