[INFO] cloning repository https://github.com/VidVrbnjak/aoc2023 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/VidVrbnjak/aoc2023" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FVidVrbnjak%2Faoc2023", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FVidVrbnjak%2Faoc2023'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c6c57db647faa7a4558c0be2cf7d8ae317f81a7d [INFO] building VidVrbnjak/aoc2023 against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FVidVrbnjak%2Faoc2023" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/VidVrbnjak/aoc2023 on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/VidVrbnjak/aoc2023 [INFO] finished tweaking git repo https://github.com/VidVrbnjak/aoc2023 [INFO] tweaked toml for git repo https://github.com/VidVrbnjak/aoc2023 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/VidVrbnjak/aoc2023 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7dcee30678c819136ece68e31397e69c88ec8df5cb7a9be9336dac0df6231fe2 [INFO] running `Command { std: "docker" "start" "-a" "7dcee30678c819136ece68e31397e69c88ec8df5cb7a9be9336dac0df6231fe2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7dcee30678c819136ece68e31397e69c88ec8df5cb7a9be9336dac0df6231fe2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7dcee30678c819136ece68e31397e69c88ec8df5cb7a9be9336dac0df6231fe2", kill_on_drop: false }` [INFO] [stdout] 7dcee30678c819136ece68e31397e69c88ec8df5cb7a9be9336dac0df6231fe2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a81c9a8b2f0004e7f846eed32a8e061e9f4b233b9e36209a78715c3b01894193 [INFO] running `Command { std: "docker" "start" "-a" "a81c9a8b2f0004e7f846eed32a8e061e9f4b233b9e36209a78715c3b01894193", kill_on_drop: false }` [INFO] [stderr] Compiling aoc2023 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `usize::MAX` [INFO] [stdout] --> src/day_12.rs:1:47 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, fmt::Display, usize::MAX}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/day_15.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/day_20.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashMap, HashSet, VecDeque}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Add` [INFO] [stdout] --> src/day_5.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::{Add, Range}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Add` [INFO] [stdout] --> src/day_5_p2.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Add; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/day_16.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | return; [INFO] [stdout] | ------ any code following this expression is unreachable [INFO] [stdout] 22 | let contraption = parse_contraption(input); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/day_17.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | return; [INFO] [stdout] | ------ any code following this expression is unreachable [INFO] [stdout] 11 | let map = Map::from_str(input).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/day_17.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | return; [INFO] [stdout] | ------ any code following this expression is unreachable [INFO] [stdout] 24 | let map = Map::from_str(input).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/day_18.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 20 | return; [INFO] [stdout] | ------ any code following this expression is unreachable [INFO] [stdout] 21 | let dp = DigPlan::from_str(input).unwrap().correct(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/day_19.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | return; [INFO] [stdout] | ------ any code following this expression is unreachable [INFO] [stdout] 6 | [INFO] [stdout] 7 | let workflows = parse_workflows(input); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/day_19.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 42 | return; [INFO] [stdout] | ------ any code following this expression is unreachable [INFO] [stdout] 43 | assert!(Parts::all().count() == 256_000_000_000_000); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `min_dx` [INFO] [stdout] --> src/day_11.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | let mut min_dx = usize::MAX; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_min_dx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day_11.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let mut min_dx = usize::MAX; [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: unused variable: `old` [INFO] [stdout] --> src/day_11.rs:87:32 [INFO] [stdout] | [INFO] [stdout] 87 | let map = map.iter().map(|(old, new)| new).collect::>(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_old` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `top` [INFO] [stdout] --> src/day_13.rs:13:46 [INFO] [stdout] | [INFO] [stdout] 13 | Reflection::Horizontal { top, bottom } => bottom * 100, [INFO] [stdout] | ^^^ help: try ignoring the field: `top: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `left` [INFO] [stdout] --> src/day_13.rs:14:44 [INFO] [stdout] | [INFO] [stdout] 14 | Reflection::Vertical { left, right } => *right, [INFO] [stdout] | ^^^^ help: try ignoring the field: `left: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `summary` [INFO] [stdout] --> src/day_13.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let summary = patterns [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_summary` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `top` [INFO] [stdout] --> src/day_13.rs:35:46 [INFO] [stdout] | [INFO] [stdout] 35 | Reflection::Horizontal { top, bottom } => { [INFO] [stdout] | ^^^ help: try ignoring the field: `top: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `left` [INFO] [stdout] --> src/day_13.rs:43:44 [INFO] [stdout] | [INFO] [stdout] 43 | Reflection::Vertical { left, right } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `left: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `org_reflection` [INFO] [stdout] --> src/day_13.rs:137:9 [INFO] [stdout] | [INFO] [stdout] 137 | let org_reflection = find_reflections(pattern) [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_org_reflection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `org_pattern` [INFO] [stdout] --> src/day_13.rs:162:17 [INFO] [stdout] | [INFO] [stdout] 162 | let org_pattern = pattern.clone(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_org_pattern` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/day_16.rs:19:11 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn p2(input: &str) { [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/day_17.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn p1(input: &str) { [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/day_17.rs:21:11 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn p2(input: &str) { [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/day_18.rs:18:11 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn p2(input: &str) { [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/day_19.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn p1(input: &str) { [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/day_19.rs:40:11 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn p2(input: &str) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `on` [INFO] [stdout] --> src/day_20.rs:29:40 [INFO] [stdout] | [INFO] [stdout] 29 | Module::FlipFlop { on, targets } => { [INFO] [stdout] | ^^ help: try ignoring the field: `on: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inputs` [INFO] [stdout] --> src/day_20.rs:34:43 [INFO] [stdout] | [INFO] [stdout] 34 | Module::Conjunction { inputs, targets } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `inputs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `on` [INFO] [stdout] --> src/day_20.rs:95:40 [INFO] [stdout] | [INFO] [stdout] 95 | Module::FlipFlop { on, targets } => { [INFO] [stdout] | ^^ help: try ignoring the field: `on: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inputs` [INFO] [stdout] --> src/day_20.rs:100:43 [INFO] [stdout] | [INFO] [stdout] 100 | Module::Conjunction { inputs, targets } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `inputs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `on` [INFO] [stdout] --> src/day_20.rs:199:32 [INFO] [stdout] | [INFO] [stdout] 199 | Module::FlipFlop { on, targets } => { [INFO] [stdout] | ^^ help: try ignoring the field: `on: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `targets` [INFO] [stdout] --> src/day_20.rs:202:55 [INFO] [stdout] | [INFO] [stdout] 202 | Module::Conjunction { inputs, targets } => { [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `targets: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inputs` [INFO] [stdout] --> src/day_20.rs:209:35 [INFO] [stdout] | [INFO] [stdout] 209 | Module::Conjunction { inputs, targets } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `inputs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `targets` [INFO] [stdout] --> src/day_20.rs:212:60 [INFO] [stdout] | [INFO] [stdout] 212 | Some(Module::Conjunction { inputs, targets }) => { [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `targets: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `targets` [INFO] [stdout] --> src/day_20.rs:222:55 [INFO] [stdout] | [INFO] [stdout] 222 | Module::Conjunction { inputs, targets } => { [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `targets: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `targets` [INFO] [stdout] --> src/day_20.rs:232:55 [INFO] [stdout] | [INFO] [stdout] 232 | Module::Conjunction { inputs, targets } => { [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `targets: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `targets` [INFO] [stdout] --> src/day_20.rs:248:32 [INFO] [stdout] | [INFO] [stdout] 248 | Module::FlipFlop { on, targets } => { [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `targets: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `targets` [INFO] [stdout] --> src/day_20.rs:260:39 [INFO] [stdout] | [INFO] [stdout] 260 | Module::Conjunction { inputs, targets } => { [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `targets: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `targets` [INFO] [stdout] --> src/day_20.rs:268:29 [INFO] [stdout] | [INFO] [stdout] 268 | Module::Broadcast { targets } => Some(pulse), [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `targets: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `targets` [INFO] [stdout] --> src/day_20.rs:269:26 [INFO] [stdout] | [INFO] [stdout] 269 | Module::Button { targets } => Some(Pulse::Low), [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `targets: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dr` [INFO] [stdout] --> src/day_5.rs:36:21 [INFO] [stdout] | [INFO] [stdout] 36 | .find(|(dr, sr)| sr.contains(&nr)) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `seed_range_starts` [INFO] [stdout] --> src/day_5.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | let seed_range_starts = seeds [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_seed_range_starts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `seed_range_lengths` [INFO] [stdout] --> src/day_5.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | let seed_range_lengths = seeds [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_seed_range_lengths` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print` is never used [INFO] [stdout] --> src/day_11.rs:121:4 [INFO] [stdout] | [INFO] [stdout] 121 | fn print(map: &Vec>>) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pos_distance` is never used [INFO] [stdout] --> src/day_11.rs:186:4 [INFO] [stdout] | [INFO] [stdout] 186 | fn pos_distance(p1: &POS, p2: &POS) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_pattern` is never used [INFO] [stdout] --> src/day_13.rs:229:4 [INFO] [stdout] | [INFO] [stdout] 229 | fn print_pattern(pattern: &Vec>) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rocks_to_str` is never used [INFO] [stdout] --> src/day_14.rs:103:4 [INFO] [stdout] | [INFO] [stdout] 103 | fn rocks_to_str(rocks: &Vec>>) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_energized` is never used [INFO] [stdout] --> src/day_16.rs:268:4 [INFO] [stdout] | [INFO] [stdout] 268 | fn print_energized(contraption: &Contraption, mem: &HashMap>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `area` is never used [INFO] [stdout] --> src/day_17.rs:218:14 [INFO] [stdout] | [INFO] [stdout] 217 | impl Map { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] 218 | const fn area(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_steps_on_map` is never used [INFO] [stdout] --> src/day_17.rs:309:4 [INFO] [stdout] | [INFO] [stdout] 309 | fn print_steps_on_map(map: &Map, steps: &Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Vertical` is never used [INFO] [stdout] --> src/day_18.rs:246:6 [INFO] [stdout] | [INFO] [stdout] 246 | enum Vertical { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Horizontal` is never used [INFO] [stdout] --> src/day_18.rs:251:6 [INFO] [stdout] | [INFO] [stdout] 251 | enum Horizontal { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Dir` is never constructed [INFO] [stdout] --> src/day_18.rs:256:8 [INFO] [stdout] | [INFO] [stdout] 256 | struct Dir { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `nr` is never read [INFO] [stdout] --> src/day_4.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 31 | struct Card { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 32 | nr: u32, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/day_13.rs:57:39 [INFO] [stdout] | [INFO] [stdout] 57 | println!("Static SUMMARY {}", SUMMARY.get_mut().unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/day_13.rs:171:18 [INFO] [stdout] | [INFO] [stdout] 171 | *SUMMARY.get_mut().unwrap() += bottom_idx * 100; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/day_13.rs:202:18 [INFO] [stdout] | [INFO] [stdout] 202 | *SUMMARY.get_mut().unwrap() += rhs_idx; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/main.rs:183:9 [INFO] [stdout] | [INFO] [stdout] 182 | struct Game { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 183 | id: u32, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Game` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.32s [INFO] running `Command { std: "docker" "inspect" "a81c9a8b2f0004e7f846eed32a8e061e9f4b233b9e36209a78715c3b01894193", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a81c9a8b2f0004e7f846eed32a8e061e9f4b233b9e36209a78715c3b01894193", kill_on_drop: false }` [INFO] [stdout] a81c9a8b2f0004e7f846eed32a8e061e9f4b233b9e36209a78715c3b01894193 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6bb89fa85b7c8197086efa176ea63569d38413da3919aa773ae57e7bdb58a0ed [INFO] running `Command { std: "docker" "start" "-a" "6bb89fa85b7c8197086efa176ea63569d38413da3919aa773ae57e7bdb58a0ed", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `usize::MAX` [INFO] [stdout] --> src/day_12.rs:1:47 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, fmt::Display, usize::MAX}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/day_15.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/day_20.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashMap, HashSet, VecDeque}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Add` [INFO] [stdout] --> src/day_5.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::{Add, Range}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Add` [INFO] [stdout] --> src/day_5_p2.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Add; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/day_16.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | return; [INFO] [stdout] | ------ any code following this expression is unreachable [INFO] [stdout] 22 | let contraption = parse_contraption(input); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/day_17.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | return; [INFO] [stdout] | ------ any code following this expression is unreachable [INFO] [stdout] 11 | let map = Map::from_str(input).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/day_17.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | return; [INFO] [stdout] | ------ any code following this expression is unreachable [INFO] [stdout] 24 | let map = Map::from_str(input).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/day_18.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 20 | return; [INFO] [stdout] | ------ any code following this expression is unreachable [INFO] [stdout] 21 | let dp = DigPlan::from_str(input).unwrap().correct(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/day_19.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | return; [INFO] [stdout] | ------ any code following this expression is unreachable [INFO] [stdout] 6 | [INFO] [stdout] 7 | let workflows = parse_workflows(input); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/day_19.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 42 | return; [INFO] [stdout] | ------ any code following this expression is unreachable [INFO] [stdout] 43 | assert!(Parts::all().count() == 256_000_000_000_000); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `min_dx` [INFO] [stdout] --> src/day_11.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | let mut min_dx = usize::MAX; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_min_dx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day_11.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let mut min_dx = usize::MAX; [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: unused variable: `old` [INFO] [stdout] --> src/day_11.rs:87:32 [INFO] [stdout] | [INFO] [stdout] 87 | let map = map.iter().map(|(old, new)| new).collect::>(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_old` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `top` [INFO] [stdout] --> src/day_13.rs:13:46 [INFO] [stdout] | [INFO] [stdout] 13 | Reflection::Horizontal { top, bottom } => bottom * 100, [INFO] [stdout] | ^^^ help: try ignoring the field: `top: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `left` [INFO] [stdout] --> src/day_13.rs:14:44 [INFO] [stdout] | [INFO] [stdout] 14 | Reflection::Vertical { left, right } => *right, [INFO] [stdout] | ^^^^ help: try ignoring the field: `left: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `summary` [INFO] [stdout] --> src/day_13.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let summary = patterns [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_summary` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `top` [INFO] [stdout] --> src/day_13.rs:35:46 [INFO] [stdout] | [INFO] [stdout] 35 | Reflection::Horizontal { top, bottom } => { [INFO] [stdout] | ^^^ help: try ignoring the field: `top: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `left` [INFO] [stdout] --> src/day_13.rs:43:44 [INFO] [stdout] | [INFO] [stdout] 43 | Reflection::Vertical { left, right } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `left: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `org_reflection` [INFO] [stdout] --> src/day_13.rs:137:9 [INFO] [stdout] | [INFO] [stdout] 137 | let org_reflection = find_reflections(pattern) [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_org_reflection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `org_pattern` [INFO] [stdout] --> src/day_13.rs:162:17 [INFO] [stdout] | [INFO] [stdout] 162 | let org_pattern = pattern.clone(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_org_pattern` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/day_16.rs:19:11 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn p2(input: &str) { [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/day_17.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn p1(input: &str) { [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/day_17.rs:21:11 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn p2(input: &str) { [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/day_18.rs:18:11 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn p2(input: &str) { [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/day_19.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn p1(input: &str) { [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/day_19.rs:40:11 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn p2(input: &str) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `on` [INFO] [stdout] --> src/day_20.rs:29:40 [INFO] [stdout] | [INFO] [stdout] 29 | Module::FlipFlop { on, targets } => { [INFO] [stdout] | ^^ help: try ignoring the field: `on: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inputs` [INFO] [stdout] --> src/day_20.rs:34:43 [INFO] [stdout] | [INFO] [stdout] 34 | Module::Conjunction { inputs, targets } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `inputs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `on` [INFO] [stdout] --> src/day_20.rs:95:40 [INFO] [stdout] | [INFO] [stdout] 95 | Module::FlipFlop { on, targets } => { [INFO] [stdout] | ^^ help: try ignoring the field: `on: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inputs` [INFO] [stdout] --> src/day_20.rs:100:43 [INFO] [stdout] | [INFO] [stdout] 100 | Module::Conjunction { inputs, targets } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `inputs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `on` [INFO] [stdout] --> src/day_20.rs:199:32 [INFO] [stdout] | [INFO] [stdout] 199 | Module::FlipFlop { on, targets } => { [INFO] [stdout] | ^^ help: try ignoring the field: `on: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `targets` [INFO] [stdout] --> src/day_20.rs:202:55 [INFO] [stdout] | [INFO] [stdout] 202 | Module::Conjunction { inputs, targets } => { [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `targets: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inputs` [INFO] [stdout] --> src/day_20.rs:209:35 [INFO] [stdout] | [INFO] [stdout] 209 | Module::Conjunction { inputs, targets } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `inputs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `targets` [INFO] [stdout] --> src/day_20.rs:212:60 [INFO] [stdout] | [INFO] [stdout] 212 | Some(Module::Conjunction { inputs, targets }) => { [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `targets: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `targets` [INFO] [stdout] --> src/day_20.rs:222:55 [INFO] [stdout] | [INFO] [stdout] 222 | Module::Conjunction { inputs, targets } => { [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `targets: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `targets` [INFO] [stdout] --> src/day_20.rs:232:55 [INFO] [stdout] | [INFO] [stdout] 232 | Module::Conjunction { inputs, targets } => { [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `targets: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `targets` [INFO] [stdout] --> src/day_20.rs:248:32 [INFO] [stdout] | [INFO] [stdout] 248 | Module::FlipFlop { on, targets } => { [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `targets: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `targets` [INFO] [stdout] --> src/day_20.rs:260:39 [INFO] [stdout] | [INFO] [stdout] 260 | Module::Conjunction { inputs, targets } => { [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `targets: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `targets` [INFO] [stdout] --> src/day_20.rs:268:29 [INFO] [stdout] | [INFO] [stdout] 268 | Module::Broadcast { targets } => Some(pulse), [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `targets: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `targets` [INFO] [stdout] --> src/day_20.rs:269:26 [INFO] [stdout] | [INFO] [stdout] 269 | Module::Button { targets } => Some(Pulse::Low), [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `targets: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dr` [INFO] [stdout] --> src/day_5.rs:36:21 [INFO] [stdout] | [INFO] [stdout] 36 | .find(|(dr, sr)| sr.contains(&nr)) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `seed_range_starts` [INFO] [stdout] --> src/day_5.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | let seed_range_starts = seeds [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_seed_range_starts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `seed_range_lengths` [INFO] [stdout] --> src/day_5.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | let seed_range_lengths = seeds [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_seed_range_lengths` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print` is never used [INFO] [stdout] --> src/day_11.rs:121:4 [INFO] [stdout] | [INFO] [stdout] 121 | fn print(map: &Vec>>) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pos_distance` is never used [INFO] [stdout] --> src/day_11.rs:186:4 [INFO] [stdout] | [INFO] [stdout] 186 | fn pos_distance(p1: &POS, p2: &POS) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_pattern` is never used [INFO] [stdout] --> src/day_13.rs:229:4 [INFO] [stdout] | [INFO] [stdout] 229 | fn print_pattern(pattern: &Vec>) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rocks_to_str` is never used [INFO] [stdout] --> src/day_14.rs:103:4 [INFO] [stdout] | [INFO] [stdout] 103 | fn rocks_to_str(rocks: &Vec>>) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_energized` is never used [INFO] [stdout] --> src/day_16.rs:268:4 [INFO] [stdout] | [INFO] [stdout] 268 | fn print_energized(contraption: &Contraption, mem: &HashMap>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `area` is never used [INFO] [stdout] --> src/day_17.rs:218:14 [INFO] [stdout] | [INFO] [stdout] 217 | impl Map { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] 218 | const fn area(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_steps_on_map` is never used [INFO] [stdout] --> src/day_17.rs:309:4 [INFO] [stdout] | [INFO] [stdout] 309 | fn print_steps_on_map(map: &Map, steps: &Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Vertical` is never used [INFO] [stdout] --> src/day_18.rs:246:6 [INFO] [stdout] | [INFO] [stdout] 246 | enum Vertical { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Horizontal` is never used [INFO] [stdout] --> src/day_18.rs:251:6 [INFO] [stdout] | [INFO] [stdout] 251 | enum Horizontal { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Dir` is never constructed [INFO] [stdout] --> src/day_18.rs:256:8 [INFO] [stdout] | [INFO] [stdout] 256 | struct Dir { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `nr` is never read [INFO] [stdout] --> src/day_4.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 31 | struct Card { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 32 | nr: u32, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/day_13.rs:57:39 [INFO] [stdout] | [INFO] [stdout] 57 | println!("Static SUMMARY {}", SUMMARY.get_mut().unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling aoc2023 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/day_13.rs:171:18 [INFO] [stdout] | [INFO] [stdout] 171 | *SUMMARY.get_mut().unwrap() += bottom_idx * 100; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/day_13.rs:202:18 [INFO] [stdout] | [INFO] [stdout] 202 | *SUMMARY.get_mut().unwrap() += rhs_idx; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `usize::MAX` [INFO] [stdout] --> src/day_12.rs:1:47 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, fmt::Display, usize::MAX}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/day_15.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/day_20.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashMap, HashSet, VecDeque}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Add` [INFO] [stdout] --> src/day_5.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::{Add, Range}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Add` [INFO] [stdout] --> src/day_5_p2.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Add; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/main.rs:183:9 [INFO] [stdout] | [INFO] [stdout] 182 | struct Game { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 183 | id: u32, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Game` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/day_16.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | return; [INFO] [stdout] | ------ any code following this expression is unreachable [INFO] [stdout] 22 | let contraption = parse_contraption(input); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/day_17.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | return; [INFO] [stdout] | ------ any code following this expression is unreachable [INFO] [stdout] 11 | let map = Map::from_str(input).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/day_17.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | return; [INFO] [stdout] | ------ any code following this expression is unreachable [INFO] [stdout] 24 | let map = Map::from_str(input).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/day_18.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 20 | return; [INFO] [stdout] | ------ any code following this expression is unreachable [INFO] [stdout] 21 | let dp = DigPlan::from_str(input).unwrap().correct(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/day_19.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | return; [INFO] [stdout] | ------ any code following this expression is unreachable [INFO] [stdout] 6 | [INFO] [stdout] 7 | let workflows = parse_workflows(input); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/day_19.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 42 | return; [INFO] [stdout] | ------ any code following this expression is unreachable [INFO] [stdout] 43 | assert!(Parts::all().count() == 256_000_000_000_000); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `min_dx` [INFO] [stdout] --> src/day_11.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | let mut min_dx = usize::MAX; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_min_dx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day_11.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let mut min_dx = usize::MAX; [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: unused variable: `old` [INFO] [stdout] --> src/day_11.rs:87:32 [INFO] [stdout] | [INFO] [stdout] 87 | let map = map.iter().map(|(old, new)| new).collect::>(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_old` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `top` [INFO] [stdout] --> src/day_13.rs:13:46 [INFO] [stdout] | [INFO] [stdout] 13 | Reflection::Horizontal { top, bottom } => bottom * 100, [INFO] [stdout] | ^^^ help: try ignoring the field: `top: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `left` [INFO] [stdout] --> src/day_13.rs:14:44 [INFO] [stdout] | [INFO] [stdout] 14 | Reflection::Vertical { left, right } => *right, [INFO] [stdout] | ^^^^ help: try ignoring the field: `left: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `summary` [INFO] [stdout] --> src/day_13.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let summary = patterns [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_summary` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `top` [INFO] [stdout] --> src/day_13.rs:35:46 [INFO] [stdout] | [INFO] [stdout] 35 | Reflection::Horizontal { top, bottom } => { [INFO] [stdout] | ^^^ help: try ignoring the field: `top: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `left` [INFO] [stdout] --> src/day_13.rs:43:44 [INFO] [stdout] | [INFO] [stdout] 43 | Reflection::Vertical { left, right } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `left: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `org_reflection` [INFO] [stdout] --> src/day_13.rs:137:9 [INFO] [stdout] | [INFO] [stdout] 137 | let org_reflection = find_reflections(pattern) [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_org_reflection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `org_pattern` [INFO] [stdout] --> src/day_13.rs:162:17 [INFO] [stdout] | [INFO] [stdout] 162 | let org_pattern = pattern.clone(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_org_pattern` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/day_16.rs:19:11 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn p2(input: &str) { [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/day_17.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn p1(input: &str) { [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/day_17.rs:21:11 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn p2(input: &str) { [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/day_18.rs:18:11 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn p2(input: &str) { [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/day_19.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn p1(input: &str) { [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/day_19.rs:40:11 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn p2(input: &str) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `on` [INFO] [stdout] --> src/day_20.rs:29:40 [INFO] [stdout] | [INFO] [stdout] 29 | Module::FlipFlop { on, targets } => { [INFO] [stdout] | ^^ help: try ignoring the field: `on: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inputs` [INFO] [stdout] --> src/day_20.rs:34:43 [INFO] [stdout] | [INFO] [stdout] 34 | Module::Conjunction { inputs, targets } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `inputs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `on` [INFO] [stdout] --> src/day_20.rs:95:40 [INFO] [stdout] | [INFO] [stdout] 95 | Module::FlipFlop { on, targets } => { [INFO] [stdout] | ^^ help: try ignoring the field: `on: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inputs` [INFO] [stdout] --> src/day_20.rs:100:43 [INFO] [stdout] | [INFO] [stdout] 100 | Module::Conjunction { inputs, targets } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `inputs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `on` [INFO] [stdout] --> src/day_20.rs:199:32 [INFO] [stdout] | [INFO] [stdout] 199 | Module::FlipFlop { on, targets } => { [INFO] [stdout] | ^^ help: try ignoring the field: `on: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `targets` [INFO] [stdout] --> src/day_20.rs:202:55 [INFO] [stdout] | [INFO] [stdout] 202 | Module::Conjunction { inputs, targets } => { [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `targets: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inputs` [INFO] [stdout] --> src/day_20.rs:209:35 [INFO] [stdout] | [INFO] [stdout] 209 | Module::Conjunction { inputs, targets } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `inputs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `targets` [INFO] [stdout] --> src/day_20.rs:212:60 [INFO] [stdout] | [INFO] [stdout] 212 | Some(Module::Conjunction { inputs, targets }) => { [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `targets: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `targets` [INFO] [stdout] --> src/day_20.rs:222:55 [INFO] [stdout] | [INFO] [stdout] 222 | Module::Conjunction { inputs, targets } => { [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `targets: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `targets` [INFO] [stdout] --> src/day_20.rs:232:55 [INFO] [stdout] | [INFO] [stdout] 232 | Module::Conjunction { inputs, targets } => { [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `targets: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `targets` [INFO] [stdout] --> src/day_20.rs:248:32 [INFO] [stdout] | [INFO] [stdout] 248 | Module::FlipFlop { on, targets } => { [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `targets: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `targets` [INFO] [stdout] --> src/day_20.rs:260:39 [INFO] [stdout] | [INFO] [stdout] 260 | Module::Conjunction { inputs, targets } => { [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `targets: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `targets` [INFO] [stdout] --> src/day_20.rs:268:29 [INFO] [stdout] | [INFO] [stdout] 268 | Module::Broadcast { targets } => Some(pulse), [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `targets: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `targets` [INFO] [stdout] --> src/day_20.rs:269:26 [INFO] [stdout] | [INFO] [stdout] 269 | Module::Button { targets } => Some(Pulse::Low), [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `targets: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dr` [INFO] [stdout] --> src/day_5.rs:36:21 [INFO] [stdout] | [INFO] [stdout] 36 | .find(|(dr, sr)| sr.contains(&nr)) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `seed_range_starts` [INFO] [stdout] --> src/day_5.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | let seed_range_starts = seeds [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_seed_range_starts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `seed_range_lengths` [INFO] [stdout] --> src/day_5.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | let seed_range_lengths = seeds [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_seed_range_lengths` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print` is never used [INFO] [stdout] --> src/day_11.rs:121:4 [INFO] [stdout] | [INFO] [stdout] 121 | fn print(map: &Vec>>) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pos_distance` is never used [INFO] [stdout] --> src/day_11.rs:186:4 [INFO] [stdout] | [INFO] [stdout] 186 | fn pos_distance(p1: &POS, p2: &POS) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_pattern` is never used [INFO] [stdout] --> src/day_13.rs:229:4 [INFO] [stdout] | [INFO] [stdout] 229 | fn print_pattern(pattern: &Vec>) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_energized` is never used [INFO] [stdout] --> src/day_16.rs:268:4 [INFO] [stdout] | [INFO] [stdout] 268 | fn print_energized(contraption: &Contraption, mem: &HashMap>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `area` is never used [INFO] [stdout] --> src/day_17.rs:218:14 [INFO] [stdout] | [INFO] [stdout] 217 | impl Map { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] 218 | const fn area(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_steps_on_map` is never used [INFO] [stdout] --> src/day_17.rs:309:4 [INFO] [stdout] | [INFO] [stdout] 309 | fn print_steps_on_map(map: &Map, steps: &Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Vertical` is never used [INFO] [stdout] --> src/day_18.rs:246:6 [INFO] [stdout] | [INFO] [stdout] 246 | enum Vertical { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Horizontal` is never used [INFO] [stdout] --> src/day_18.rs:251:6 [INFO] [stdout] | [INFO] [stdout] 251 | enum Horizontal { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Dir` is never constructed [INFO] [stdout] --> src/day_18.rs:256:8 [INFO] [stdout] | [INFO] [stdout] 256 | struct Dir { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `nr` is never read [INFO] [stdout] --> src/day_4.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 31 | struct Card { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 32 | nr: u32, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/day_13.rs:57:39 [INFO] [stdout] | [INFO] [stdout] 57 | println!("Static SUMMARY {}", SUMMARY.get_mut().unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/day_13.rs:171:18 [INFO] [stdout] | [INFO] [stdout] 171 | *SUMMARY.get_mut().unwrap() += bottom_idx * 100; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/day_13.rs:202:18 [INFO] [stdout] | [INFO] [stdout] 202 | *SUMMARY.get_mut().unwrap() += rhs_idx; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.54s [INFO] running `Command { std: "docker" "inspect" "6bb89fa85b7c8197086efa176ea63569d38413da3919aa773ae57e7bdb58a0ed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6bb89fa85b7c8197086efa176ea63569d38413da3919aa773ae57e7bdb58a0ed", kill_on_drop: false }` [INFO] [stdout] 6bb89fa85b7c8197086efa176ea63569d38413da3919aa773ae57e7bdb58a0ed