[INFO] cloning repository https://github.com/Pascal-So/protohackers [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Pascal-So/protohackers" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPascal-So%2Fprotohackers", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPascal-So%2Fprotohackers'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d1fbbdd6a79ae99c8740509102a9a12bd6f0437b [INFO] checking Pascal-So/protohackers against master#336209eef13882bd1e211b24779584cb7ef911eb for pr-129249 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPascal-So%2Fprotohackers" "/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/Pascal-So/protohackers on toolchain 336209eef13882bd1e211b24779584cb7ef911eb [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+336209eef13882bd1e211b24779584cb7ef911eb" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Pascal-So/protohackers [INFO] finished tweaking git repo https://github.com/Pascal-So/protohackers [INFO] tweaked toml for git repo https://github.com/Pascal-So/protohackers written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Pascal-So/protohackers 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" "+336209eef13882bd1e211b24779584cb7ef911eb" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded proptest-derive v0.5.0 [INFO] [stderr] Downloaded deku_derive v0.18.1 [INFO] [stderr] Downloaded log-panics v2.1.0 [INFO] [stderr] Downloaded no_std_io2 v0.8.1 [INFO] [stderr] Downloaded is_prime v2.0.9 [INFO] [stderr] Downloaded anyhow v1.0.90 [INFO] [stderr] Downloaded deku v0.18.1 [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" "+336209eef13882bd1e211b24779584cb7ef911eb" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 284b7b81a8a2c772940a82e4fecd9dd473bb704233e2a39f0ee32280a1c287d7 [INFO] running `Command { std: "docker" "start" "-a" "284b7b81a8a2c772940a82e4fecd9dd473bb704233e2a39f0ee32280a1c287d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "284b7b81a8a2c772940a82e4fecd9dd473bb704233e2a39f0ee32280a1c287d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "284b7b81a8a2c772940a82e4fecd9dd473bb704233e2a39f0ee32280a1c287d7", kill_on_drop: false }` [INFO] [stdout] 284b7b81a8a2c772940a82e4fecd9dd473bb704233e2a39f0ee32280a1c287d7 [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" "-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" "+336209eef13882bd1e211b24779584cb7ef911eb" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4dad3d8740b4b3d86ab4c96c8bb7ecc6f0e3b2d2789665f520fc8d3ae70f8f85 [INFO] running `Command { std: "docker" "start" "-a" "4dad3d8740b4b3d86ab4c96c8bb7ecc6f0e3b2d2789665f520fc8d3ae70f8f85", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.88 [INFO] [stderr] Compiling libc v0.2.161 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Checking regex-syntax v0.6.27 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling hashbrown v0.15.0 [INFO] [stderr] Checking once_cell v1.20.2 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling winnow v0.6.20 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Compiling rustix v0.38.37 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling syn v1.0.103 [INFO] [stderr] Compiling radium v0.7.0 [INFO] [stderr] Checking aho-corasick v0.7.19 [INFO] [stderr] Checking linux-raw-sys v0.4.14 [INFO] [stderr] Compiling rustversion v1.0.18 [INFO] [stderr] Compiling serde v1.0.214 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking wyz v0.5.1 [INFO] [stderr] Compiling tokio v1.21.2 [INFO] [stderr] Compiling anyhow v1.0.90 [INFO] [stderr] Compiling serde_json v1.0.87 [INFO] [stderr] Checking funty v2.0.0 [INFO] [stderr] Compiling thiserror v1.0.65 [INFO] [stderr] Checking thread_local v1.1.8 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking no_std_io2 v0.8.1 [INFO] [stderr] Checking bit-vec v0.6.3 [INFO] [stderr] Checking ryu v1.0.11 [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Checking itoa v1.0.4 [INFO] [stderr] Checking bitvec v1.0.1 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking bytes v1.2.1 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking parking_lot_core v0.9.4 [INFO] [stderr] Checking mio v0.8.5 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Compiling indexmap v2.6.0 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking socket2 v0.4.7 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking wait-timeout v0.2.0 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking bit-set v0.5.3 [INFO] [stderr] Checking rand_xorshift v0.3.0 [INFO] [stderr] Checking log-panics v2.1.0 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Checking unarray v0.1.4 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Compiling syn v2.0.82 [INFO] [stderr] Checking num-integer v0.1.45 [INFO] [stderr] Checking num-bigint v0.4.3 [INFO] [stderr] Compiling toml_edit v0.22.22 [INFO] [stderr] Checking regex v1.6.0 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Checking tempfile v3.10.1 [INFO] [stderr] Checking rusty-fork v0.3.0 [INFO] [stderr] Checking env_logger v0.9.1 [INFO] [stderr] Checking is_prime v2.0.9 [INFO] [stderr] Checking matchers v0.1.0 [INFO] [stderr] Compiling proc-macro-crate v3.2.0 [INFO] [stderr] Compiling tokio-macros v1.8.0 [INFO] [stderr] Compiling darling_core v0.20.10 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling thiserror-impl v1.0.65 [INFO] [stderr] Compiling proptest-derive v0.5.0 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking tracing-subscriber v0.3.18 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling darling_macro v0.20.10 [INFO] [stderr] Compiling darling v0.20.10 [INFO] [stderr] Compiling deku_derive v0.18.1 [INFO] [stderr] Checking proptest v1.5.0 [INFO] [stderr] Checking deku v0.18.1 [INFO] [stderr] Checking protohackers v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `self::tcp::JobCentre` [INFO] [stdout] --> src/t09_job_centre/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub use self::tcp::JobCentre; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tcp::VcsServer` [INFO] [stdout] --> src/t10_voracious_code_storage/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub use tcp::VcsServer; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/t08_insecure_sockets_layer.rs:252:9 [INFO] [stdout] | [INFO] [stdout] 195 | / loop { [INFO] [stdout] 196 | | let mut byte_buf = vec![0]; [INFO] [stdout] 197 | | if let Err(e) = reader.read_exact(&mut byte_buf) { [INFO] [stdout] 198 | | if e.kind() == io::ErrorKind::UnexpectedEof { [INFO] [stdout] ... | [INFO] [stdout] 250 | | } [INFO] [stdout] | |_________- any code following this expression is unreachable [INFO] [stdout] 251 | [INFO] [stdout] 252 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 46 | return; [INFO] [stdout] | ------ any code following this expression is unreachable [INFO] [stdout] 47 | [INFO] [stdout] 48 | let shutdown = ShutdownController::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shutdown` [INFO] [stdout] --> src/main.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let shutdown = ShutdownController::new(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_shutdown` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `task_done_sender` is never read [INFO] [stdout] --> src/shutdown.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct ShutdownToken { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 2 | task_done_sender: tokio::sync::mpsc::Sender<()>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EchoServer` is never constructed [INFO] [stdout] --> src/t00_smoke_test.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct EchoServer; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_number` is never used [INFO] [stdout] --> src/t01_prime_time.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn get_number(val: &Value) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_line` is never used [INFO] [stdout] --> src/t01_prime_time.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn handle_line(line: &str, client_id: i32) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_connection` is never used [INFO] [stdout] --> src/t01_prime_time.rs:57:14 [INFO] [stdout] | [INFO] [stdout] 57 | pub async fn handle_connection( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_connection` is never used [INFO] [stdout] --> src/t02_means_to_an_end.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | pub async fn handle_connection( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Message` is never used [INFO] [stdout] --> src/t04_unusual_database_program.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | enum Message<'a> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_message` is never used [INFO] [stdout] --> src/t04_unusual_database_program.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn parse_message<'a>(msg: &'a [u8]) -> Message<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `server` is never used [INFO] [stdout] --> src/t04_unusual_database_program.rs:21:14 [INFO] [stdout] | [INFO] [stdout] 21 | pub async fn server(port: u16, mut shutdown_token: ShutdownToken) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TONY` is never used [INFO] [stdout] --> src/t05_mob_in_the_middle.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const TONY: &str = "7YWHMfk9JZe0LM0g1ZauHuiSxhI"; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SERVER` is never used [INFO] [stdout] --> src/t05_mob_in_the_middle.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const SERVER: &str = "chat.protohackers.com:16963"; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REGEX` is never used [INFO] [stdout] --> src/t05_mob_in_the_middle.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | const REGEX: &str = "7[[:alnum:]]{25,34}"; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `replace` is never used [INFO] [stdout] --> src/t05_mob_in_the_middle.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn replace<'a>(input: &'a str, regex: &Regex) -> Cow<'a, str> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_connection` is never used [INFO] [stdout] --> src/t05_mob_in_the_middle.rs:56:14 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn handle_connection( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SESSION_EXPIRY_TIMEOUT` is never used [INFO] [stdout] --> src/t07_line_reversal.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const SESSION_EXPIRY_TIMEOUT: Duration = Duration::from_secs(60); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RETRANSMISSION_TIMEOUT` is never used [INFO] [stdout] --> src/t07_line_reversal.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const RETRANSMISSION_TIMEOUT: Duration = Duration::from_secs(1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_MESSAGE_LEN` is never used [INFO] [stdout] --> src/t07_line_reversal.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const MAX_MESSAGE_LEN: usize = 1000; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SessionId` is never constructed [INFO] [stdout] --> src/t07_line_reversal.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | struct SessionId(i32); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `slash_escape` is never used [INFO] [stdout] --> src/t07_line_reversal.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn slash_escape(input: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `slash_unescape` is never used [INFO] [stdout] --> src/t07_line_reversal.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn slash_unescape(input: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `LRCPMessage` is never used [INFO] [stdout] --> src/t07_line_reversal.rs:36:6 [INFO] [stdout] | [INFO] [stdout] 36 | enum LRCPMessage { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `parse` and `serialize` are never used [INFO] [stdout] --> src/t07_line_reversal.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 43 | impl LRCPMessage { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 44 | pub fn parse(input: &str) -> Option<(SessionId, LRCPMessage)> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | fn serialize(&self, session_id: SessionId) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_lrcp_session` is never used [INFO] [stdout] --> src/t07_line_reversal.rs:110:10 [INFO] [stdout] | [INFO] [stdout] 110 | async fn handle_lrcp_session( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `server` is never used [INFO] [stdout] --> src/t07_line_reversal.rs:256:14 [INFO] [stdout] | [INFO] [stdout] 256 | pub async fn server(port: u16) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_identity_list_exhaustive` is never used [INFO] [stdout] --> src/t08_insecure_sockets_layer.rs:101:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl Op { [INFO] [stdout] | ------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn is_identity_list_exhaustive(list: &[Self]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/t09_job_centre/job_server.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl JobServer { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 23 | pub fn new() -> JobServer { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/t09_job_centre/tcp.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl JobCentre { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 20 | pub fn new() -> JobCentre { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/t10_voracious_code_storage/storage.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl Storage { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 41 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/t10_voracious_code_storage/vcs.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Vcs { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 13 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/t10_voracious_code_storage/tcp.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl VcsServer { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 13 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::tcp::JobCentre` [INFO] [stdout] --> src/t09_job_centre/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub use self::tcp::JobCentre; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tcp::VcsServer` [INFO] [stdout] --> src/t10_voracious_code_storage/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub use tcp::VcsServer; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/t08_insecure_sockets_layer.rs:252:9 [INFO] [stdout] | [INFO] [stdout] 195 | / loop { [INFO] [stdout] 196 | | let mut byte_buf = vec![0]; [INFO] [stdout] 197 | | if let Err(e) = reader.read_exact(&mut byte_buf) { [INFO] [stdout] 198 | | if e.kind() == io::ErrorKind::UnexpectedEof { [INFO] [stdout] ... | [INFO] [stdout] 250 | | } [INFO] [stdout] | |_________- any code following this expression is unreachable [INFO] [stdout] 251 | [INFO] [stdout] 252 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 46 | return; [INFO] [stdout] | ------ any code following this expression is unreachable [INFO] [stdout] 47 | [INFO] [stdout] 48 | let shutdown = ShutdownController::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shutdown` [INFO] [stdout] --> src/main.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let shutdown = ShutdownController::new(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_shutdown` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `task_done_sender` is never read [INFO] [stdout] --> src/shutdown.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct ShutdownToken { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 2 | task_done_sender: tokio::sync::mpsc::Sender<()>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_connection` is never used [INFO] [stdout] --> src/t01_prime_time.rs:57:14 [INFO] [stdout] | [INFO] [stdout] 57 | pub async fn handle_connection( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_connection` is never used [INFO] [stdout] --> src/t02_means_to_an_end.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | pub async fn handle_connection( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Message` is never used [INFO] [stdout] --> src/t04_unusual_database_program.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | enum Message<'a> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_message` is never used [INFO] [stdout] --> src/t04_unusual_database_program.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn parse_message<'a>(msg: &'a [u8]) -> Message<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `server` is never used [INFO] [stdout] --> src/t04_unusual_database_program.rs:21:14 [INFO] [stdout] | [INFO] [stdout] 21 | pub async fn server(port: u16, mut shutdown_token: ShutdownToken) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SERVER` is never used [INFO] [stdout] --> src/t05_mob_in_the_middle.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const SERVER: &str = "chat.protohackers.com:16963"; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_connection` is never used [INFO] [stdout] --> src/t05_mob_in_the_middle.rs:56:14 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn handle_connection( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `server` is never used [INFO] [stdout] --> src/t07_line_reversal.rs:256:14 [INFO] [stdout] | [INFO] [stdout] 256 | pub async fn server(port: u16) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 40.02s [INFO] running `Command { std: "docker" "inspect" "4dad3d8740b4b3d86ab4c96c8bb7ecc6f0e3b2d2789665f520fc8d3ae70f8f85", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4dad3d8740b4b3d86ab4c96c8bb7ecc6f0e3b2d2789665f520fc8d3ae70f8f85", kill_on_drop: false }` [INFO] [stdout] 4dad3d8740b4b3d86ab4c96c8bb7ecc6f0e3b2d2789665f520fc8d3ae70f8f85