[INFO] cloning repository https://github.com/Parallaxes/protohackers-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Parallaxes/protohackers-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FParallaxes%2Fprotohackers-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FParallaxes%2Fprotohackers-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 46b86e22a0109a8b4d266561a37e10aa767ef1fe [INFO] checking Parallaxes/protohackers-rs against try#e784c10fc2dd34bf2bb7b1e51117e35d3f9c5837 for pr-143619 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FParallaxes%2Fprotohackers-rs" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Parallaxes/protohackers-rs [INFO] finished tweaking git repo https://github.com/Parallaxes/protohackers-rs [INFO] tweaked toml for git repo https://github.com/Parallaxes/protohackers-rs written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Parallaxes/protohackers-rs on toolchain e784c10fc2dd34bf2bb7b1e51117e35d3f9c5837 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e784c10fc2dd34bf2bb7b1e51117e35d3f9c5837" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Parallaxes/protohackers-rs 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" "+e784c10fc2dd34bf2bb7b1e51117e35d3f9c5837" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e8955075918b6d00525c617f7c34ee2595c70db70b3cf844dc875e4d3604499b" "/opt/rustwide/cargo-home/bin/cargo" "+e784c10fc2dd34bf2bb7b1e51117e35d3f9c5837" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 633a56275e3956c2dc325a4932b6c96db4068666c39d13d1506ae0e6dfd88fbd [INFO] running `Command { std: "docker" "start" "-a" "633a56275e3956c2dc325a4932b6c96db4068666c39d13d1506ae0e6dfd88fbd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "633a56275e3956c2dc325a4932b6c96db4068666c39d13d1506ae0e6dfd88fbd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "633a56275e3956c2dc325a4932b6c96db4068666c39d13d1506ae0e6dfd88fbd", kill_on_drop: false }` [INFO] [stdout] 633a56275e3956c2dc325a4932b6c96db4068666c39d13d1506ae0e6dfd88fbd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "-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:e8955075918b6d00525c617f7c34ee2595c70db70b3cf844dc875e4d3604499b" "/opt/rustwide/cargo-home/bin/cargo" "+e784c10fc2dd34bf2bb7b1e51117e35d3f9c5837" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 270c607a9452b555f592b3372b5ddd835c821d56bf2da14f9ec4b630fca9548a [INFO] running `Command { std: "docker" "start" "-a" "270c607a9452b555f592b3372b5ddd835c821d56bf2da14f9ec4b630fca9548a", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Checking memchr v2.7.5 [INFO] [stderr] Checking bytes v1.10.1 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling anyhow v1.0.98 [INFO] [stderr] Checking itoa v1.0.15 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Checking signal-hook-registry v1.4.5 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Checking async-stream v0.3.6 [INFO] [stderr] Checking tokio v1.46.1 [INFO] [stderr] Checking tokio-stream v0.1.17 [INFO] [stderr] Checking tokio-test v0.4.4 [INFO] [stderr] Checking serde_json v1.0.140 [INFO] [stderr] Checking challenges v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `constants::*` [INFO] [stdout] --> src/challenge06/protocol/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub use constants::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ClientType` [INFO] [stdout] --> src/challenge06/db.rs:10:22 [INFO] [stdout] | [INFO] [stdout] 10 | client::{Client, ClientType}, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/challenge06/tests.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CLIENT_ID_COUNTER` and `db::PlateObservation` [INFO] [stdout] --> src/challenge06/tests.rs:7:73 [INFO] [stdout] | [INFO] [stdout] 7 | challenge06::{process_message, validate_message, ProtocolError, CLIENT_ID_COUNTER}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 8 | db::PlateObservation, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::io::AsyncWriteExt` [INFO] [stdout] --> src/challenge06/tests.rs:828:13 [INFO] [stdout] | [INFO] [stdout] 828 | use tokio::io::AsyncWriteExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Cursor` [INFO] [stdout] --> src/challenge06/tests.rs:829:13 [INFO] [stdout] | [INFO] [stdout] 829 | use std::io::Cursor; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Message`, `ParseError`, and `parse` [INFO] [stdout] --> src/challenge06/mod.rs:10:20 [INFO] [stdout] | [INFO] [stdout] 10 | pub use protocol::{Message, ParseError, parse}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ClientType` and `Client` [INFO] [stdout] --> src/challenge06/mod.rs:11:18 [INFO] [stdout] | [INFO] [stdout] 11 | pub use client::{Client, ClientType}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `db::Database` [INFO] [stdout] --> src/challenge06/mod.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub use db::Database; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `constants::*` [INFO] [stdout] --> src/challenge06/protocol/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub use constants::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ClientType` [INFO] [stdout] --> src/challenge06/db.rs:10:22 [INFO] [stdout] | [INFO] [stdout] 10 | client::{Client, ClientType}, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Message`, `ParseError`, and `parse` [INFO] [stdout] --> src/challenge06/mod.rs:10:20 [INFO] [stdout] | [INFO] [stdout] 10 | pub use protocol::{Message, ParseError, parse}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ClientType` and `Client` [INFO] [stdout] --> src/challenge06/mod.rs:11:18 [INFO] [stdout] | [INFO] [stdout] 11 | pub use client::{Client, ClientType}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `db::Database` [INFO] [stdout] --> src/challenge06/mod.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub use db::Database; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MSG_HEARTBEAT` is never used [INFO] [stdout] --> src/challenge06/protocol/constants.rs:19:11 [INFO] [stdout] | [INFO] [stdout] 19 | pub const MSG_HEARTBEAT: u8 = 0x41; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Error`, `Ticket`, and `Heartbeat` are never constructed [INFO] [stdout] --> src/challenge06/protocol/messages.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 26 | /// Protocol error message send by server when client violates protocol rules [INFO] [stdout] 27 | Error(ParseError), [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | Ticket(Ticket), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | Heartbeat(Heartbeat), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Message` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Error` is never constructed [INFO] [stdout] --> src/challenge06/protocol/messages.rs:129:12 [INFO] [stdout] | [INFO] [stdout] 129 | pub struct Error { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `InvalidFormat` is never constructed [INFO] [stdout] --> src/challenge06/protocol/parsing.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub enum ParseError { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 37 | InvalidFormat, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParseError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Client` is never constructed [INFO] [stdout] --> src/challenge06/client.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Client { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_identified` and `to_client` are never used [INFO] [stdout] --> src/challenge06/client.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl ClientState { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn is_identified(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn to_client(&self, id: u32) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_id`, and `get_type` are never used [INFO] [stdout] --> src/challenge06/client.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 62 | impl Client { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 63 | /// Create a new identified client. [INFO] [stdout] 64 | pub fn new(id: u32, client_type: ClientType) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn get_id(&self) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn get_type(&self) -> &ClientType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AssignError` is never used [INFO] [stdout] --> src/challenge06/db.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | pub enum AssignError { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `camera_id` is never read [INFO] [stdout] --> src/challenge06/db.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct PlateObservation { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 23 | pub camera_id: u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PlateObservation` 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: struct `Database` is never constructed [INFO] [stdout] --> src/challenge06/db.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct Database { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `insert`, `remove`, `get`, and `clone_handle` are never used [INFO] [stdout] --> src/challenge06/db.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl Database { [INFO] [stdout] | ------------------------- associated items in this implementation [INFO] [stdout] 31 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub async fn insert(&mut self, key: T, value: U) -> Option [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub async fn remove(&self, key: &T) -> Option [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub async fn get(&self, key: &T) -> Option [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn clone_handle(&self) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `IllegalMessage` is never constructed [INFO] [stdout] --> src/challenge06/challenge06.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub enum ProtocolError { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] 20 | ParseError(ParseError), [INFO] [stdout] 21 | IllegalMessage, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ProtocolError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` in tuple element 0 that must be used [INFO] [stdout] --> src/challenge05.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | tokio::try_join!(upstream_to_client, client_to_upstream)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` in tuple element 1 that must be used [INFO] [stdout] --> src/challenge05.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | tokio::try_join!(upstream_to_client, client_to_upstream)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/challenge06/tests.rs:685:14 [INFO] [stdout] | [INFO] [stdout] 685 | for (i, addr) in addresses.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mock_stream` [INFO] [stdout] --> src/challenge06/tests.rs:832:17 [INFO] [stdout] | [INFO] [stdout] 832 | let mut mock_stream: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mock_stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/challenge06/tests.rs:832:13 [INFO] [stdout] | [INFO] [stdout] 832 | let mut mock_stream: Vec = Vec::new(); [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: constant `MSG_HEARTBEAT` is never used [INFO] [stdout] --> src/challenge06/protocol/constants.rs:19:11 [INFO] [stdout] | [INFO] [stdout] 19 | pub const MSG_HEARTBEAT: u8 = 0x41; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Error` and `Heartbeat` are never constructed [INFO] [stdout] --> src/challenge06/protocol/messages.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 26 | /// Protocol error message send by server when client violates protocol rules [INFO] [stdout] 27 | Error(ParseError), [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | Heartbeat(Heartbeat), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Message` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Error` is never constructed [INFO] [stdout] --> src/challenge06/protocol/messages.rs:129:12 [INFO] [stdout] | [INFO] [stdout] 129 | pub struct Error { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `InvalidFormat` is never constructed [INFO] [stdout] --> src/challenge06/protocol/parsing.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub enum ParseError { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 37 | InvalidFormat, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParseError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Client` is never constructed [INFO] [stdout] --> src/challenge06/client.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Client { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_client` is never used [INFO] [stdout] --> src/challenge06/client.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl ClientState { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn to_client(&self, id: u32) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_id`, and `get_type` are never used [INFO] [stdout] --> src/challenge06/client.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 62 | impl Client { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 63 | /// Create a new identified client. [INFO] [stdout] 64 | pub fn new(id: u32, client_type: ClientType) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn get_id(&self) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn get_type(&self) -> &ClientType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AssignError` is never used [INFO] [stdout] --> src/challenge06/db.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | pub enum AssignError { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Database` is never constructed [INFO] [stdout] --> src/challenge06/db.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct Database { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `insert`, `remove`, `get`, and `clone_handle` are never used [INFO] [stdout] --> src/challenge06/db.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl Database { [INFO] [stdout] | ------------------------- associated items in this implementation [INFO] [stdout] 31 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub async fn insert(&mut self, key: T, value: U) -> Option [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub async fn remove(&self, key: &T) -> Option [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub async fn get(&self, key: &T) -> Option [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn clone_handle(&self) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `IllegalMessage` is never constructed [INFO] [stdout] --> src/challenge06/challenge06.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub enum ProtocolError { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] 20 | ParseError(ParseError), [INFO] [stdout] 21 | IllegalMessage, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ProtocolError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` in tuple element 0 that must be used [INFO] [stdout] --> src/challenge05.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | tokio::try_join!(upstream_to_client, client_to_upstream)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` in tuple element 1 that must be used [INFO] [stdout] --> src/challenge05.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | tokio::try_join!(upstream_to_client, client_to_upstream)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.89s [INFO] running `Command { std: "docker" "inspect" "270c607a9452b555f592b3372b5ddd835c821d56bf2da14f9ec4b630fca9548a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "270c607a9452b555f592b3372b5ddd835c821d56bf2da14f9ec4b630fca9548a", kill_on_drop: false }` [INFO] [stdout] 270c607a9452b555f592b3372b5ddd835c821d56bf2da14f9ec4b630fca9548a