[INFO] cloning repository https://github.com/hangj/adevent-of-code-2023 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/hangj/adevent-of-code-2023" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhangj%2Fadevent-of-code-2023", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhangj%2Fadevent-of-code-2023'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 59980f505c969fdfb8cd43d183caf11246f8f39b [INFO] checking hangj/adevent-of-code-2023 against master#5518eaa946291f00471af8b254b2a1715f234882 for pr-120393 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhangj%2Fadevent-of-code-2023" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/hangj/adevent-of-code-2023 on toolchain 5518eaa946291f00471af8b254b2a1715f234882 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/hangj/adevent-of-code-2023 [INFO] finished tweaking git repo https://github.com/hangj/adevent-of-code-2023 [INFO] tweaked toml for git repo https://github.com/hangj/adevent-of-code-2023 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/hangj/adevent-of-code-2023 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" "+5518eaa946291f00471af8b254b2a1715f234882" "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] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking hangj/adevent-of-code-2023 against try#7622c0f807a4e13c4db886a1681bf343795692df+rustflags=-Dnon_local_definitions for pr-120393 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhangj%2Fadevent-of-code-2023" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/hangj/adevent-of-code-2023 on toolchain 7622c0f807a4e13c4db886a1681bf343795692df [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/hangj/adevent-of-code-2023 [INFO] finished tweaking git repo https://github.com/hangj/adevent-of-code-2023 [INFO] tweaked toml for git repo https://github.com/hangj/adevent-of-code-2023 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/hangj/adevent-of-code-2023 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" "+7622c0f807a4e13c4db886a1681bf343795692df" "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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded zerocopy v0.7.31 [INFO] [stderr] Downloaded cached_proc_macro v0.18.1 [INFO] [stderr] Downloaded cached v0.46.1 [INFO] [stderr] Downloaded literal-enum v0.1.5 [INFO] [stderr] Downloaded permutator v0.4.3 [INFO] [stderr] Downloaded zerocopy-derive v0.7.31 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 595c9c71117338093c32a86466452e6ff0c6716c0420ba04529900d573aafcc2 [INFO] running `Command { std: "docker" "start" "-a" "595c9c71117338093c32a86466452e6ff0c6716c0420ba04529900d573aafcc2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "595c9c71117338093c32a86466452e6ff0c6716c0420ba04529900d573aafcc2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "595c9c71117338093c32a86466452e6ff0c6716c0420ba04529900d573aafcc2", kill_on_drop: false }` [INFO] [stdout] 595c9c71117338093c32a86466452e6ff0c6716c0420ba04529900d573aafcc2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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 -Dnon_local_definitions" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 239bf6efa47912c4b6547bca558815fbe786850b45130b9d45e48268c4e324e7 [INFO] running `Command { std: "docker" "start" "-a" "239bf6efa47912c4b6547bca558815fbe786850b45130b9d45e48268c4e324e7", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling proc-macro2 v1.0.70 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking zerocopy v0.7.31 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Checking memchr v2.6.4 [INFO] [stderr] Compiling thiserror v1.0.51 [INFO] [stderr] Checking allocator-api2 v0.2.16 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Checking cached_proc_macro_types v0.1.0 [INFO] [stderr] Checking instant v0.1.12 [INFO] [stderr] Compiling ahash v0.8.6 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Checking hashbrown v0.14.3 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.39 [INFO] [stderr] Checking num-complex v0.4.4 [INFO] [stderr] Checking regex-automata v0.4.3 [INFO] [stderr] Checking num v0.2.1 [INFO] [stderr] Checking permutator v0.4.3 [INFO] [stderr] Checking num v0.4.1 [INFO] [stderr] Checking regex v1.10.2 [INFO] [stderr] Compiling darling_core v0.14.4 [INFO] [stderr] Compiling thiserror-impl v1.0.51 [INFO] [stderr] Compiling literal-enum v0.1.5 [INFO] [stderr] Compiling darling_macro v0.14.4 [INFO] [stderr] Compiling darling v0.14.4 [INFO] [stderr] Compiling cached_proc_macro v0.18.1 [INFO] [stderr] Checking cached v0.46.1 [INFO] [stderr] Checking advent-of-code-2023 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Index` [INFO] [stdout] --> src/day03/mod.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{ops::{Range, Index}, collections::HashSet}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap`, `HashSet`, `vec` [INFO] [stdout] --> src/day05/mod.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::{HashSet, HashMap}, str::FromStr, ops::Range, vec}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/day08/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc`, `HashMap`, `Weak` [INFO] [stdout] --> src/day10/mod.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::{HashMap, HashSet}, sync::{Arc, Weak}}; [INFO] [stdout] | ^^^^^^^ ^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hint` [INFO] [stdout] --> src/day11/mod.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashSet, hint}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `permutator::Combination` [INFO] [stdout] --> src/day12/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use permutator::Combination; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `collections::HashMap` [INFO] [stdout] --> src/day14/mod.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cmp::Ordering, collections::HashMap}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap`, `HashSet` [INFO] [stdout] --> src/day18/mod.rs:1:39 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{str::FromStr, collections::{HashSet, HashMap}}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/day18/part2.rs:1:34 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::{HashMap, HashSet}, fmt::Display}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `VecDeque`, `default`, `hash_map::DefaultHasher` [INFO] [stdout] --> src/day20/mod.rs:1:34 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::{HashMap, VecDeque, hash_map::DefaultHasher}, default, hash::{Hash, Hasher}}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/day21/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap`, `HashSet`, `vec` [INFO] [stdout] --> src/day05/mod.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::{HashSet, HashMap}, str::FromStr, ops::Range, vec}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc`, `HashMap`, `Weak` [INFO] [stdout] --> src/day10/mod.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::{HashMap, HashSet}, sync::{Arc, Weak}}; [INFO] [stdout] | ^^^^^^^ ^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hint` [INFO] [stdout] --> src/day11/mod.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashSet, hint}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `permutator::Combination` [INFO] [stdout] --> src/day12/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use permutator::Combination; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> src/day18/mod.rs:1:48 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{str::FromStr, collections::{HashSet, HashMap}}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/day18/part2.rs:1:34 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::{HashMap, HashSet}, fmt::Display}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `default`, `hash_map::DefaultHasher` [INFO] [stdout] --> src/day20/mod.rs:1:44 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::{HashMap, VecDeque, hash_map::DefaultHasher}, default, hash::{Hash, Hasher}}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/day19/mod.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 74 | / loop { [INFO] [stdout] 75 | | let flow = workflows.get(work_label).unwrap(); [INFO] [stdout] 76 | | for rule in flow.rules.iter() { [INFO] [stdout] 77 | | match rule { [INFO] [stdout] ... | [INFO] [stdout] 100 | | } [INFO] [stdout] 101 | | } [INFO] [stdout] | |_____________- any code following this expression is unreachable [INFO] [stdout] 102 | 0 [INFO] [stdout] | ^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/day24/mod.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 94 | return Some(FPos{x, y, z: 0.}) [INFO] [stdout] | ------------------------------ any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 97 | None [INFO] [stdout] | ^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Hasher` [INFO] [stdout] --> src/day20/mod.rs:1:92 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::{HashMap, VecDeque, hash_map::DefaultHasher}, default, hash::{Hash, Hasher}}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/day19/mod.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 74 | / loop { [INFO] [stdout] 75 | | let flow = workflows.get(work_label).unwrap(); [INFO] [stdout] 76 | | for rule in flow.rules.iter() { [INFO] [stdout] 77 | | match rule { [INFO] [stdout] ... | [INFO] [stdout] 100 | | } [INFO] [stdout] 101 | | } [INFO] [stdout] | |_____________- any code following this expression is unreachable [INFO] [stdout] 102 | 0 [INFO] [stdout] | ^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cur_pipe` [INFO] [stdout] --> src/day10/mod.rs:297:17 [INFO] [stdout] | [INFO] [stdout] 297 | let cur_pipe = cur_node.pipe.unwrap(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cur_pipe` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/day24/mod.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 94 | return Some(FPos{x, y, z: 0.}) [INFO] [stdout] | ------------------------------ any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 97 | None [INFO] [stdout] | ^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Hasher` [INFO] [stdout] --> src/day20/mod.rs:1:92 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::{HashMap, VecDeque, hash_map::DefaultHasher}, default, hash::{Hash, Hasher}}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `count` is assigned to, but never used [INFO] [stdout] --> src/day18/part2.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 34 | let mut count = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_count` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `count` is never read [INFO] [stdout] --> src/day18/part2.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | count += 1; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p2_steps` [INFO] [stdout] --> src/day18/part2.rs:383:17 [INFO] [stdout] | [INFO] [stdout] 383 | let p2_steps = i32::from_str_radix(&color[..5], 16).unwrap(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_p2_steps` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p2_dir` [INFO] [stdout] --> src/day18/part2.rs:384:17 [INFO] [stdout] | [INFO] [stdout] 384 | let p2_dir = match &color[5..] { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_p2_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> src/day20/mod.rs:103:41 [INFO] [stdout] | [INFO] [stdout] 103 | fn on_recv(&mut self, pulse: Pulse, from: &str) -> Option { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pulse` [INFO] [stdout] --> src/day20/mod.rs:115:27 [INFO] [stdout] | [INFO] [stdout] 115 | fn on_recv(&mut self, pulse: Pulse, from: &str) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pulse` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> src/day20/mod.rs:115:41 [INFO] [stdout] | [INFO] [stdout] 115 | fn on_recv(&mut self, pulse: Pulse, from: &str) -> Option { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `this_start` [INFO] [stdout] --> src/day23/mod.rs:157:9 [INFO] [stdout] | [INFO] [stdout] 157 | let this_start = start; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_this_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/day07/mod.rs:214:9 [INFO] [stdout] | [INFO] [stdout] 214 | let input = r"32T3K 765 [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_start_end` is never used [INFO] [stdout] --> src/day03/mod.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn find_start_end(line: &str, idx: usize) -> Range { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_num` is never used [INFO] [stdout] --> src/day03/mod.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn find_num(arr: &Vec<&str>, row: usize, col: usize) -> HashSet { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_next_number` is never used [INFO] [stdout] --> src/day09/mod.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn generate_next_number(arr: Vec) -> (i64, i64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_outside_at_inner_angle` is never used [INFO] [stdout] --> src/day10/mod.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 10 | impl Node { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 11 | // 外侧是否在内角的方向 [INFO] [stdout] 12 | fn is_outside_at_inner_angle(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `update_outside_direction`, `calc_inner_count`, and `traverse_inner` are never used [INFO] [stdout] --> src/day10/mod.rs:289:8 [INFO] [stdout] | [INFO] [stdout] 130 | impl Maze { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 289 | fn update_outside_direction(&mut self, row: usize, col: usize, direction: Direction) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 393 | fn calc_inner_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 512 | fn traverse_inner(&self, inner_nodes: &mut HashSet<(usize, usize)>) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_maze_border` is never used [INFO] [stdout] --> src/day10/mod.rs:717:4 [INFO] [stdout] | [INFO] [stdout] 717 | fn find_maze_border(maze: &mut Vec>, idx: (usize, usize)) -> Idx { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `distance` are never used [INFO] [stdout] --> src/day11/mod.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Pos { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 11 | pub fn new(row: usize, col: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | pub fn distance(&self, other: &Pos, empty_rows: &HashSet, empty_cols: &HashSet) -> usize { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calc` is never used [INFO] [stdout] --> src/day12/mod.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn calc(mut pre: String, record: &str, groups: &[usize]) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_match` is never used [INFO] [stdout] --> src/day12/mod.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn is_match(cond: &[char], records: &[usize]) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `match_count` is never used [INFO] [stdout] --> src/day12/mod.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn match_count(cond: Vec, records: Vec) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_1` is never used [INFO] [stdout] --> src/day12/mod.rs:101:4 [INFO] [stdout] | [INFO] [stdout] 101 | fn part_1(input: &str) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_2` is never used [INFO] [stdout] --> src/day12/mod.rs:123:4 [INFO] [stdout] | [INFO] [stdout] 123 | fn part_2(input: &str) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `combination` is never used [INFO] [stdout] --> src/day12/mod.rs:149:4 [INFO] [stdout] | [INFO] [stdout] 149 | fn combination(n: usize, k: usize) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_combination` is never used [INFO] [stdout] --> src/day12/mod.rs:157:4 [INFO] [stdout] | [INFO] [stdout] 157 | fn do_combination(final_ret: &mut Vec>, mut cur_vec: Vec, n: usize, k: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `LeftRight` and `UpDown` are never constructed [INFO] [stdout] --> src/day13/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | enum MirrorType{ [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 3 | LeftRight, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 4 | UpDown, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MirrorType` 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: function `fuck_1` is never used [INFO] [stdout] --> src/day13/mod.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn fuck_1(group: &Vec>) -> (MirrorType, usize) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fuck_2` is never used [INFO] [stdout] --> src/day13/mod.rs:59:4 [INFO] [stdout] | [INFO] [stdout] 59 | fn fuck_2(group: &Vec>) -> (MirrorType, usize) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_1` is never used [INFO] [stdout] --> src/day13/mod.rs:112:4 [INFO] [stdout] | [INFO] [stdout] 112 | fn part_1(input: &str) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_2` is never used [INFO] [stdout] --> src/day13/mod.rs:136:4 [INFO] [stdout] | [INFO] [stdout] 136 | fn part_2(input: &str) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tilt_north` is never used [INFO] [stdout] --> src/day14/mod.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn tilt_north(v: Vec>) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tilt_west` is never used [INFO] [stdout] --> src/day14/mod.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn tilt_west(mut v: Vec>) -> Vec> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tilt_south` is never used [INFO] [stdout] --> src/day14/mod.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn tilt_south(v: Vec>) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tilt_east` is never used [INFO] [stdout] --> src/day14/mod.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn tilt_east(mut v: Vec>) -> Vec> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rotate` is never used [INFO] [stdout] --> src/day14/mod.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn rotate(vec2d: Vec>) -> Vec> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sort` is never used [INFO] [stdout] --> src/day14/mod.rs:55:4 [INFO] [stdout] | [INFO] [stdout] 55 | fn sort(v: &mut [char], compare: F) [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash` is never used [INFO] [stdout] --> src/day15/mod.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn hash(s: &str) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `label` and `focal_length` are never read [INFO] [stdout] --> src/day15/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | struct Lens { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 13 | label: &'static str, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 14 | focal_length: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Lens` 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: field `boxes` is never read [INFO] [stdout] --> src/day15/mod.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 18 | struct HashMap { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 19 | boxes: Vec>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HashMap` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `update` are never used [INFO] [stdout] --> src/day15/mod.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl HashMap { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 23 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn update(&mut self, s: &'static str) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Tile` is never used [INFO] [stdout] --> src/day16/mod.rs:4:6 [INFO] [stdout] | [INFO] [stdout] 4 | enum Tile { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Up`, `Down`, `Left`, and `Right` are never constructed [INFO] [stdout] --> src/day16/mod.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | enum Direction { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 15 | Up, [INFO] [stdout] | ^^ [INFO] [stdout] 16 | Down, [INFO] [stdout] | ^^^^ [INFO] [stdout] 17 | Left, [INFO] [stdout] | ^^^^ [INFO] [stdout] 18 | Right, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Direction` 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 items `new` and `heading_next` are never used [INFO] [stdout] --> src/day16/mod.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl Beam { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 29 | pub fn new(row: usize, col: usize, direction: Direction) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn heading_next(&self, contraption: &Contraption) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Contraption` is never constructed [INFO] [stdout] --> src/day16/mod.rs:120:8 [INFO] [stdout] | [INFO] [stdout] 120 | struct Contraption { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/day16/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 124 | impl Contraption { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 125 | pub fn new(tiles: Vec>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calc_energized_tiles` is never used [INFO] [stdout] --> src/day16/mod.rs:130:4 [INFO] [stdout] | [INFO] [stdout] 130 | fn calc_energized_tiles(beam: Beam, contraption: &Contraption) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calc_no_dir_len_limit` is never used [INFO] [stdout] --> src/day17/mod.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn calc_no_dir_len_limit(map: &Vec>) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/day17/mod.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 69 | impl Pos { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 70 | pub fn new(row: usize, col: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Up`, `Down`, `Left`, and `Right` are never constructed [INFO] [stdout] --> src/day17/mod.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 76 | enum Dir { [INFO] [stdout] | --- variants in this enum [INFO] [stdout] 77 | Up, [INFO] [stdout] | ^^ [INFO] [stdout] 78 | Down, [INFO] [stdout] | ^^^^ [INFO] [stdout] 79 | Left, [INFO] [stdout] | ^^^^ [INFO] [stdout] 80 | Right, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Dir` 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: function `calc` is never used [INFO] [stdout] --> src/day17/mod.rs:83:4 [INFO] [stdout] | [INFO] [stdout] 83 | fn calc(map: &Vec>) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_calc` is never used [INFO] [stdout] --> src/day17/mod.rs:95:4 [INFO] [stdout] | [INFO] [stdout] 95 | fn do_calc(map: &Vec>, path: BTreeSet, pos: Pos, dir: Dir, count: i32) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/day09/mod.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let input = "0 3 6 9 12 15 [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/day17/mod.rs:271:4 [INFO] [stdout] | [INFO] [stdout] 271 | fn solve(input: &str) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DigCmd` is never constructed [INFO] [stdout] --> src/day18/mod.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | struct DigCmd { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/day18/mod.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 33 | impl DigCmd { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 34 | fn new(dir: Dir, steps: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/day18/part2.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 12 | impl Vertex { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 13 | fn new(row: i32, col: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calc` is never used [INFO] [stdout] --> src/day18/part2.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn calc(cmds: Vec) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_calc` is never used [INFO] [stdout] --> src/day18/part2.rs:117:4 [INFO] [stdout] | [INFO] [stdout] 117 | fn do_calc(hashes: &mut HashMap) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/day18/part2.rs:374:4 [INFO] [stdout] | [INFO] [stdout] 374 | fn solve(input: &str) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `var`, `num`, `order`, and `jmp_to` are never read [INFO] [stdout] --> src/day19/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 6 | struct Condition { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 7 | /// could be one of [x, m, a, s] [INFO] [stdout] 8 | var: Label, [INFO] [stdout] | ^^^ [INFO] [stdout] 9 | num: i32, [INFO] [stdout] | ^^^ [INFO] [stdout] 10 | /// var.cmp(num) 的期望结果 [INFO] [stdout] 11 | order: Ordering, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | jmp_to: Label, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Condition` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/day19/mod.rs:41:15 [INFO] [stdout] | [INFO] [stdout] 41 | Condition(Condition), [INFO] [stdout] | --------- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 41 | Condition(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/day19/mod.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | Jmp(Label), [INFO] [stdout] | --- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 43 | Jmp(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `rules` is never read [INFO] [stdout] --> src/day19/mod.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 63 | struct Workflow { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 64 | rules: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Workflow` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Rating` is never used [INFO] [stdout] --> src/day19/mod.rs:67:6 [INFO] [stdout] | [INFO] [stdout] 67 | type Rating = HashMap; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calc` is never used [INFO] [stdout] --> src/day19/mod.rs:69:4 [INFO] [stdout] | [INFO] [stdout] 69 | fn calc(workflows: &HashMap, ratings: Vec) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calc_combinations` is never used [INFO] [stdout] --> src/day19/mod.rs:107:4 [INFO] [stdout] | [INFO] [stdout] 107 | fn calc_combinations(workflows: &HashMap) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `get_mut` are never used [INFO] [stdout] --> src/day19/mod.rs:116:12 [INFO] [stdout] | [INFO] [stdout] 115 | impl Comb { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 116 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | fn get_mut(&mut self, s: &str) -> &mut Range { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse` is never used [INFO] [stdout] --> src/day19/mod.rs:210:4 [INFO] [stdout] | [INFO] [stdout] 210 | fn parse(input: &str) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `pulse`, `from`, and `to` are never read [INFO] [stdout] --> src/day20/mod.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 24 | struct Mail { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 25 | pulse: Pulse, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 26 | from: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 27 | to: String, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Mail` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/day20/mod.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 30 | impl Mail { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 31 | fn new(pulse: Pulse, from: String, to: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `UntypedModule`, `Broadcast`, `FlipFlop`, and `Conjunction` are never constructed [INFO] [stdout] --> src/day20/mod.rs:122:5 [INFO] [stdout] | [INFO] [stdout] 121 | enum Module { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 122 | UntypedModule(UntypedModule), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 123 | Broadcast(Broadcast), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 124 | FlipFlop(FlipFlop), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 125 | Conjunction(Conjunction), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Module` 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: methods `get_outputs` and `get_outputs_mut` are never used [INFO] [stdout] --> src/day20/mod.rs:129:8 [INFO] [stdout] | [INFO] [stdout] 128 | impl Module { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 129 | fn get_outputs(&self) -> &Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | fn get_outputs_mut(&mut self) -> &mut Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `count_low` and `count_high` are never read [INFO] [stdout] --> src/day20/mod.rs:160:5 [INFO] [stdout] | [INFO] [stdout] 159 | struct MailBuilder { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 160 | count_low: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 161 | count_high: usize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MailBuilder` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `build` are never used [INFO] [stdout] --> src/day20/mod.rs:164:8 [INFO] [stdout] | [INFO] [stdout] 163 | impl MailBuilder { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 164 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | fn build(&mut self, pulse: Pulse, from: String, to: String) -> Mail { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ground` is never constructed [INFO] [stdout] --> src/day22/mod.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | struct Ground { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_z`, `set_z`, `get_id`, and `set_id` are never used [INFO] [stdout] --> src/day22/mod.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 93 | impl Ground { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 94 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | fn get_z(&mut self, x: i32, y: i32) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | fn set_z(&mut self, x: i32, y: i32, z: i32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | fn get_id(&self, x: i32, y: i32) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | fn set_id(&mut self, x: i32, y: i32, id: usize) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `up` and `down` are never read [INFO] [stdout] --> src/day22/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 115 | struct Node { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 116 | up: HashSet, [INFO] [stdout] | ^^ [INFO] [stdout] 117 | down: HashSet, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `can_find_a_way_down` is never used [INFO] [stdout] --> src/day22/mod.rs:242:4 [INFO] [stdout] | [INFO] [stdout] 242 | fn can_find_a_way_down(bricks: &Vec, nodes: &HashMap, id: usize, without_id: &HashSet) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calc_fall_count` is never used [INFO] [stdout] --> src/day22/mod.rs:260:4 [INFO] [stdout] | [INFO] [stdout] 260 | fn calc_fall_count(bricks: &Vec, nodes: &HashMap, id: usize, mut without_id: HashSet, falling_ids: &mut HashSe... [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/day23/mod.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 14 | impl Pos { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 15 | fn new(row: usize, col: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dfs` is never used [INFO] [stdout] --> src/day23/mod.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | fn dfs(map: &Vec>, path: HashSet, start: Pos, end: Pos) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dfs_part_2` is never used [INFO] [stdout] --> src/day23/mod.rs:152:4 [INFO] [stdout] | [INFO] [stdout] 152 | fn dfs_part_2(map: &Vec>, path: HashSet, mut pre_pos: Option, start: Pos, end: Pos, dead_ends: &mut HashSet) -> ... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cross` is never used [INFO] [stdout] --> src/day24/mod.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 10 | impl Pos { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] 11 | fn new(x: i64, y: i64, z: i64) -> Self { Self { x, y, z } } [INFO] [stdout] 12 | fn cross(&self, other: &Self) -> i64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x`, `y`, and `z` are never read [INFO] [stdout] --> src/day24/mod.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 38 | struct FPos { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 39 | x: f64, [INFO] [stdout] | ^ [INFO] [stdout] 40 | y: f64, [INFO] [stdout] | ^ [INFO] [stdout] 41 | z: f64, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `FPos` 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 items `new` and `intersect_point` are never used [INFO] [stdout] --> src/day24/mod.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 52 | impl Hailstone { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 53 | fn new(position: Pos, velocity: Pos) -> Self { Self { position, velocity } } [INFO] [stdout] | ^^^ [INFO] [stdout] 54 | /// 返回碰撞点 [INFO] [stdout] 55 | fn intersect_point(&self, other: &Self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cur_pipe` [INFO] [stdout] --> src/day10/mod.rs:297:17 [INFO] [stdout] | [INFO] [stdout] 297 | let cur_pipe = cur_node.pipe.unwrap(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cur_pipe` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/day10/mod.rs:641:9 [INFO] [stdout] | [INFO] [stdout] 641 | let input = " [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 96 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/day11/mod.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | let input = [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/day14/mod.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | let input = " [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/day16/mod.rs:162:9 [INFO] [stdout] | [INFO] [stdout] 162 | let input = r" [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `count` is assigned to, but never used [INFO] [stdout] --> src/day18/part2.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 34 | let mut count = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_count` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `count` is never read [INFO] [stdout] --> src/day18/part2.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | count += 1; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p2_steps` [INFO] [stdout] --> src/day18/part2.rs:383:17 [INFO] [stdout] | [INFO] [stdout] 383 | let p2_steps = i32::from_str_radix(&color[..5], 16).unwrap(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_p2_steps` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p2_dir` [INFO] [stdout] --> src/day18/part2.rs:384:17 [INFO] [stdout] | [INFO] [stdout] 384 | let p2_dir = match &color[5..] { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_p2_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/day18/part2.rs:401:9 [INFO] [stdout] | [INFO] [stdout] 401 | let input = {" [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dir` [INFO] [stdout] --> src/day18/mod.rs:63:17 [INFO] [stdout] | [INFO] [stdout] 63 | let dir: Dir = it.next().unwrap().parse().unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `steps` [INFO] [stdout] --> src/day18/mod.rs:64:17 [INFO] [stdout] | [INFO] [stdout] 64 | let steps: i32 = it.next().unwrap().parse().unwrap(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_steps` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/day19/mod.rs:250:9 [INFO] [stdout] | [INFO] [stdout] 250 | let input = {" [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> src/day20/mod.rs:103:41 [INFO] [stdout] | [INFO] [stdout] 103 | fn on_recv(&mut self, pulse: Pulse, from: &str) -> Option { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pulse` [INFO] [stdout] --> src/day20/mod.rs:115:27 [INFO] [stdout] | [INFO] [stdout] 115 | fn on_recv(&mut self, pulse: Pulse, from: &str) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pulse` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> src/day20/mod.rs:115:41 [INFO] [stdout] | [INFO] [stdout] 115 | fn on_recv(&mut self, pulse: Pulse, from: &str) -> Option { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/day20/mod.rs:182:9 [INFO] [stdout] | [INFO] [stdout] 182 | let input = {" [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/day20/mod.rs:191:9 [INFO] [stdout] | [INFO] [stdout] 191 | let input = {" [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/day22/mod.rs:122:9 [INFO] [stdout] | [INFO] [stdout] 122 | let input = {" [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/day23/mod.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let input = {" [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `this_start` [INFO] [stdout] --> src/day23/mod.rs:157:9 [INFO] [stdout] | [INFO] [stdout] 157 | let this_start = start; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_this_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/day24/mod.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | let input = {" [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/day25/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let input = {" [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calc` is never used [INFO] [stdout] --> src/day12/mod.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn calc(mut pre: String, record: &str, groups: &[usize]) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Tile` is never used [INFO] [stdout] --> src/day16/mod.rs:4:6 [INFO] [stdout] | [INFO] [stdout] 4 | enum Tile { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calc_no_dir_len_limit` is never used [INFO] [stdout] --> src/day17/mod.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn calc_no_dir_len_limit(map: &Vec>) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `z` is never read [INFO] [stdout] --> src/day24/mod.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 38 | struct FPos { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 41 | z: f64, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `FPos` 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: variable `S` should have a snake case name [INFO] [stdout] --> src/day21/mod.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let S = map.iter().enumerate() [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 40 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 6.02s [INFO] running `Command { std: "docker" "inspect" "239bf6efa47912c4b6547bca558815fbe786850b45130b9d45e48268c4e324e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "239bf6efa47912c4b6547bca558815fbe786850b45130b9d45e48268c4e324e7", kill_on_drop: false }` [INFO] [stdout] 239bf6efa47912c4b6547bca558815fbe786850b45130b9d45e48268c4e324e7