[INFO] cloning repository https://github.com/Feiyang1/aoc_2019 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Feiyang1/aoc_2019" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFeiyang1%2Faoc_2019", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFeiyang1%2Faoc_2019'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4e78847bbb0f3a86e23d07efb385b19029bb156c [INFO] checking Feiyang1/aoc_2019 against try#f47dd4da3ae8c32c9e65d307bfe640b143e674df for pr-77526 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFeiyang1%2Faoc_2019" "/workspace/builds/worker-12/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-12/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Feiyang1/aoc_2019 on toolchain f47dd4da3ae8c32c9e65d307bfe640b143e674df [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Feiyang1/aoc_2019 [INFO] finished tweaking git repo https://github.com/Feiyang1/aoc_2019 [INFO] tweaked toml for git repo https://github.com/Feiyang1/aoc_2019 written to /workspace/builds/worker-12/source/Cargo.toml [INFO] crate git repo https://github.com/Feiyang1/aoc_2019 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dfc20f3dab021bf4d680457a319ffeb64da5db2c0372492b63be6179e15ba695 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "dfc20f3dab021bf4d680457a319ffeb64da5db2c0372492b63be6179e15ba695", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dfc20f3dab021bf4d680457a319ffeb64da5db2c0372492b63be6179e15ba695", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dfc20f3dab021bf4d680457a319ffeb64da5db2c0372492b63be6179e15ba695", kill_on_drop: false }` [INFO] [stdout] dfc20f3dab021bf4d680457a319ffeb64da5db2c0372492b63be6179e15ba695 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b2cbd26e4c4935ff44547d030ac580e85f33d35a0b3506df6f7b7e469383b794 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "b2cbd26e4c4935ff44547d030ac580e85f33d35a0b3506df6f7b7e469383b794", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking aoc v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/day6/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/day7/mod.rs:76:18 [INFO] [stdout] | [INFO] [stdout] 76 | for _ in (0..5) { [INFO] [stdout] | ^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/day10/mod.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 83 | if (a == 0) {return b; } [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/day10/mod.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | if (b == 0) {return a; } [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/day10/mod.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 88 | if (a == b) { [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/day10/mod.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | if (a > b) { [INFO] [stdout] | ^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/day13/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/day13/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/day14/mod.rs:30:29 [INFO] [stdout] | [INFO] [stdout] 30 | ore_quantity -= (cost.ore_cost as i64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/day16/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/day16/mod.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | for _ in (0..100) { [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/day16/mod.rs:53:14 [INFO] [stdout] | [INFO] [stdout] 53 | for p in (0..100) { [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/day16/mod.rs:100:14 [INFO] [stdout] | [INFO] [stdout] 100 | for i in (0..8) { [INFO] [stdout] | ^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: denote infinite loops with `loop { ... }` [INFO] [stdout] --> src/day19/mod.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | while true { [INFO] [stdout] | ^^^^^^^^^^ help: use `loop` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(while_true)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: denote infinite loops with `loop { ... }` [INFO] [stdout] --> src/day20/mod.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | while true { [INFO] [stdout] | ^^^^^^^^^^ help: use `loop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: denote infinite loops with `loop { ... }` [INFO] [stdout] --> src/day20/mod.rs:110:4 [INFO] [stdout] | [INFO] [stdout] 110 | while true { [INFO] [stdout] | ^^^^^^^^^^ help: use `loop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: denote infinite loops with `loop { ... }` [INFO] [stdout] --> src/day24/mod.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | while true { [INFO] [stdout] | ^^^^^^^^^^ help: use `loop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/day6/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/day7/mod.rs:76:18 [INFO] [stdout] | [INFO] [stdout] 76 | for _ in (0..5) { [INFO] [stdout] | ^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/day10/mod.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 83 | if (a == 0) {return b; } [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/day10/mod.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | if (b == 0) {return a; } [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/day10/mod.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 88 | if (a == b) { [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/day10/mod.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | if (a > b) { [INFO] [stdout] | ^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/day13/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/day13/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/day14/mod.rs:30:29 [INFO] [stdout] | [INFO] [stdout] 30 | ore_quantity -= (cost.ore_cost as i64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/day16/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/day16/mod.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | for _ in (0..100) { [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/day16/mod.rs:53:14 [INFO] [stdout] | [INFO] [stdout] 53 | for p in (0..100) { [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/day16/mod.rs:100:14 [INFO] [stdout] | [INFO] [stdout] 100 | for i in (0..8) { [INFO] [stdout] | ^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: denote infinite loops with `loop { ... }` [INFO] [stdout] --> src/day19/mod.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | while true { [INFO] [stdout] | ^^^^^^^^^^ help: use `loop` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(while_true)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: denote infinite loops with `loop { ... }` [INFO] [stdout] --> src/day20/mod.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | while true { [INFO] [stdout] | ^^^^^^^^^^ help: use `loop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: denote infinite loops with `loop { ... }` [INFO] [stdout] --> src/day20/mod.rs:110:4 [INFO] [stdout] | [INFO] [stdout] 110 | while true { [INFO] [stdout] | ^^^^^^^^^^ help: use `loop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: denote infinite loops with `loop { ... }` [INFO] [stdout] --> src/day24/mod.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | while true { [INFO] [stdout] | ^^^^^^^^^^ help: use `loop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/day3/mod.rs:138:30 [INFO] [stdout] | [INFO] [stdout] 138 | Direction::L(i) => line.anchor - me.start, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/day3/mod.rs:139:30 [INFO] [stdout] | [INFO] [stdout] 139 | Direction::R(i) => me.end - line.anchor, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/day3/mod.rs:140:30 [INFO] [stdout] | [INFO] [stdout] 140 | Direction::U(i) => me.end - line.anchor, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/day3/mod.rs:141:30 [INFO] [stdout] | [INFO] [stdout] 141 | Direction::D(i) => line.anchor - me.start [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/day3/mod.rs:145:30 [INFO] [stdout] | [INFO] [stdout] 145 | Direction::L(i) => me.anchor - line.start, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/day3/mod.rs:146:30 [INFO] [stdout] | [INFO] [stdout] 146 | Direction::R(i) => line.end - me.anchor, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/day3/mod.rs:147:30 [INFO] [stdout] | [INFO] [stdout] 147 | Direction::U(i) => line.end - me.anchor, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/day3/mod.rs:148:30 [INFO] [stdout] | [INFO] [stdout] 148 | Direction::D(i) => me.anchor - line.start [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `op_len` is never read [INFO] [stdout] --> src/day5/mod.rs:251:13 [INFO] [stdout] | [INFO] [stdout] 251 | let mut op_len = 0; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/day5/mod.rs:156:18 [INFO] [stdout] | [INFO] [stdout] 156 | Some(i) => "Some", [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `codes` [INFO] [stdout] --> src/day5/mod.rs:206:24 [INFO] [stdout] | [INFO] [stdout] 206 | fn get_addr(&self, codes: &Vec) -> i128 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_codes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/day7/mod.rs:123:22 [INFO] [stdout] | [INFO] [stdout] 123 | Some(i) => {println!("resume point found for {}", running_amp_idx)}, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output` [INFO] [stdout] --> src/day13/mod.rs:13:38 [INFO] [stdout] | [INFO] [stdout] 13 | let crate::day5::IntcodeResult { output, resume_point, relative_base, outputs_since_start_or_resume } = crate::day5::run_intcode_raw(... [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `output: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `resume_point` [INFO] [stdout] --> src/day13/mod.rs:13:46 [INFO] [stdout] | [INFO] [stdout] 13 | let crate::day5::IntcodeResult { output, resume_point, relative_base, outputs_since_start_or_resume } = crate::day5::run_intcode_raw(... [INFO] [stdout] | ^^^^^^^^^^^^ help: try ignoring the field: `resume_point: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `relative_base` [INFO] [stdout] --> src/day13/mod.rs:13:60 [INFO] [stdout] | [INFO] [stdout] 13 | let crate::day5::IntcodeResult { output, resume_point, relative_base, outputs_since_start_or_resume } = crate::day5::run_intcode_raw(... [INFO] [stdout] | ^^^^^^^^^^^^^ help: try ignoring the field: `relative_base: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output` [INFO] [stdout] --> src/day13/mod.rs:54:38 [INFO] [stdout] | [INFO] [stdout] 54 | let crate::day5::IntcodeResult { mut output, mut resume_point, mut relative_base, mut outputs_since_start_or_resume } = crate::day5::... [INFO] [stdout] | ^^^^^^^^^^ help: try ignoring the field: `output: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `content` [INFO] [stdout] --> src/day14/mod.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let content = crate::utils::read_file("./src/day14/input"); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_content` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rp` [INFO] [stdout] --> src/day17/mod.rs:245:16 [INFO] [stdout] | [INFO] [stdout] 245 | if let Some(rp) = res.resume_point { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_rp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `temp` [INFO] [stdout] --> src/day18/mod.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | let mut temp = HashMap::::new(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_temp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gate_paths` [INFO] [stdout] --> src/day18/mod.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 136 | let gate_paths = remove_from_graph(&mut graph, gate_key); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_gate_paths` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `digit` [INFO] [stdout] --> src/day18/mod.rs:263:25 [INFO] [stdout] | [INFO] [stdout] 263 | if let Some(digit) = c.to_digit(10) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_digit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entrance_count` [INFO] [stdout] --> src/day18/mod.rs:275:9 [INFO] [stdout] | [INFO] [stdout] 275 | let mut entrance_count: i32 = -1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_entrance_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nat_last_x` [INFO] [stdout] --> src/day23/mod.rs:113:30 [INFO] [stdout] | [INFO] [stdout] 113 | if let Some((nat_last_x, nat_last_y)) = nat_last_push { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nat_last_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/day24/mod.rs:64:19 [INFO] [stdout] | [INFO] [stdout] 64 | for (idx, b) in self.map.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/day3/mod.rs:138:30 [INFO] [stdout] | [INFO] [stdout] 138 | Direction::L(i) => line.anchor - me.start, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/day3/mod.rs:139:30 [INFO] [stdout] | [INFO] [stdout] 139 | Direction::R(i) => me.end - line.anchor, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/day3/mod.rs:140:30 [INFO] [stdout] | [INFO] [stdout] 140 | Direction::U(i) => me.end - line.anchor, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/day3/mod.rs:141:30 [INFO] [stdout] | [INFO] [stdout] 141 | Direction::D(i) => line.anchor - me.start [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/day3/mod.rs:145:30 [INFO] [stdout] | [INFO] [stdout] 145 | Direction::L(i) => me.anchor - line.start, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/day3/mod.rs:146:30 [INFO] [stdout] | [INFO] [stdout] 146 | Direction::R(i) => line.end - me.anchor, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/day3/mod.rs:147:30 [INFO] [stdout] | [INFO] [stdout] 147 | Direction::U(i) => line.end - me.anchor, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/day3/mod.rs:148:30 [INFO] [stdout] | [INFO] [stdout] 148 | Direction::D(i) => me.anchor - line.start [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `op_len` is never read [INFO] [stdout] --> src/day5/mod.rs:251:13 [INFO] [stdout] | [INFO] [stdout] 251 | let mut op_len = 0; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/day5/mod.rs:156:18 [INFO] [stdout] | [INFO] [stdout] 156 | Some(i) => "Some", [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `codes` [INFO] [stdout] --> src/day5/mod.rs:206:24 [INFO] [stdout] | [INFO] [stdout] 206 | fn get_addr(&self, codes: &Vec) -> i128 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_codes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/day7/mod.rs:123:22 [INFO] [stdout] | [INFO] [stdout] 123 | Some(i) => {println!("resume point found for {}", running_amp_idx)}, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output` [INFO] [stdout] --> src/day13/mod.rs:13:38 [INFO] [stdout] | [INFO] [stdout] 13 | let crate::day5::IntcodeResult { output, resume_point, relative_base, outputs_since_start_or_resume } = crate::day5::run_intcode_raw(... [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `output: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `resume_point` [INFO] [stdout] --> src/day13/mod.rs:13:46 [INFO] [stdout] | [INFO] [stdout] 13 | let crate::day5::IntcodeResult { output, resume_point, relative_base, outputs_since_start_or_resume } = crate::day5::run_intcode_raw(... [INFO] [stdout] | ^^^^^^^^^^^^ help: try ignoring the field: `resume_point: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `relative_base` [INFO] [stdout] --> src/day13/mod.rs:13:60 [INFO] [stdout] | [INFO] [stdout] 13 | let crate::day5::IntcodeResult { output, resume_point, relative_base, outputs_since_start_or_resume } = crate::day5::run_intcode_raw(... [INFO] [stdout] | ^^^^^^^^^^^^^ help: try ignoring the field: `relative_base: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output` [INFO] [stdout] --> src/day13/mod.rs:54:38 [INFO] [stdout] | [INFO] [stdout] 54 | let crate::day5::IntcodeResult { mut output, mut resume_point, mut relative_base, mut outputs_since_start_or_resume } = crate::day5::... [INFO] [stdout] | ^^^^^^^^^^ help: try ignoring the field: `output: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `content` [INFO] [stdout] --> src/day14/mod.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let content = crate::utils::read_file("./src/day14/input"); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_content` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rp` [INFO] [stdout] --> src/day17/mod.rs:245:16 [INFO] [stdout] | [INFO] [stdout] 245 | if let Some(rp) = res.resume_point { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_rp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `temp` [INFO] [stdout] --> src/day18/mod.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | let mut temp = HashMap::::new(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_temp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day3/mod.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | let mut result; [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: `gate_paths` [INFO] [stdout] --> src/day18/mod.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 136 | let gate_paths = remove_from_graph(&mut graph, gate_key); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_gate_paths` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `digit` [INFO] [stdout] --> src/day18/mod.rs:263:25 [INFO] [stdout] | [INFO] [stdout] 263 | if let Some(digit) = c.to_digit(10) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_digit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entrance_count` [INFO] [stdout] --> src/day18/mod.rs:275:9 [INFO] [stdout] | [INFO] [stdout] 275 | let mut entrance_count: i32 = -1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_entrance_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nat_last_x` [INFO] [stdout] --> src/day23/mod.rs:113:30 [INFO] [stdout] | [INFO] [stdout] 113 | if let Some((nat_last_x, nat_last_y)) = nat_last_push { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nat_last_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/day24/mod.rs:64:19 [INFO] [stdout] | [INFO] [stdout] 64 | for (idx, b) in self.map.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day3/mod.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | let mut result; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day12/mod.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | let mut moon_1 = Moon::new(4, 12, 13); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day12/mod.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let mut moon_2 = Moon::new(-9, 14, -3); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day12/mod.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let mut moon_3 = Moon::new(-7, -1, 2); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day12/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let mut moon_4 = Moon::new(-11, 17, -1); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day12/mod.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let mut moon_1 = Moon::new(4, 12, 13); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day12/mod.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | let mut moon_2 = Moon::new(-9, 14, -3); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day12/mod.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | let mut moon_3 = Moon::new(-7, -1, 2); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day12/mod.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | let mut moon_4 = Moon::new(-11, 17, -1); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day13/mod.rs:54:38 [INFO] [stdout] | [INFO] [stdout] 54 | let crate::day5::IntcodeResult { mut output, mut resume_point, mut relative_base, mut outputs_since_start_or_resume } = crate::day5::... [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day14/mod.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let mut recipes = read_recipe(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day14/mod.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let mut recipes = read_recipe(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `surplus` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/day14/mod.rs:64:29 [INFO] [stdout] | [INFO] [stdout] 62 | if let Some(thing_surplus) = surplus.get(&thing.name[..]) { [INFO] [stdout] | ------- immutable borrow occurs here [INFO] [stdout] 63 | if (*thing_surplus as i32) - (rest as i32) >= 0 { // fulfill requirement using surplus completely [INFO] [stdout] 64 | surplus.insert(String::from(&thing.name), thing_surplus - rest); [INFO] [stdout] | ^^^^^^^ mutable borrow occurs here ------------- immutable borrow later used here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day12/mod.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | let mut moon_1 = Moon::new(4, 12, 13); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day12/mod.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let mut moon_2 = Moon::new(-9, 14, -3); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day12/mod.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let mut moon_3 = Moon::new(-7, -1, 2); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day12/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let mut moon_4 = Moon::new(-11, 17, -1); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day12/mod.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let mut moon_1 = Moon::new(4, 12, 13); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day12/mod.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | let mut moon_2 = Moon::new(-9, 14, -3); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day12/mod.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | let mut moon_3 = Moon::new(-7, -1, 2); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day12/mod.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | let mut moon_4 = Moon::new(-11, 17, -1); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day13/mod.rs:54:38 [INFO] [stdout] | [INFO] [stdout] 54 | let crate::day5::IntcodeResult { mut output, mut resume_point, mut relative_base, mut outputs_since_start_or_resume } = crate::day5::... [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day16/mod.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | let mut input: Vec = content.split("").filter(|thing| *thing != "").map(|digit| digit.parse::().unwrap()).collect(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day14/mod.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let mut recipes = read_recipe(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day14/mod.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let mut recipes = read_recipe(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `surplus` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/day14/mod.rs:64:29 [INFO] [stdout] | [INFO] [stdout] 62 | if let Some(thing_surplus) = surplus.get(&thing.name[..]) { [INFO] [stdout] | ------- immutable borrow occurs here [INFO] [stdout] 63 | if (*thing_surplus as i32) - (rest as i32) >= 0 { // fulfill requirement using surplus completely [INFO] [stdout] 64 | surplus.insert(String::from(&thing.name), thing_surplus - rest); [INFO] [stdout] | ^^^^^^^ mutable borrow occurs here ------------- immutable borrow later used here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day17/mod.rs:143:25 [INFO] [stdout] | [INFO] [stdout] 143 | let mut c_h = *higher; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day17/mod.rs:213:9 [INFO] [stdout] | [INFO] [stdout] 213 | let mut call_seq: Vec = helper_arr.into_iter().filter(|thing| *thing != "").map(|t| String::from(t)).collect(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day18/mod.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let mut graph = construct_graph(&map); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day18/mod.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let mut starting_points = vec!['@'; 4]; [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day18/mod.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | mut graph: HashMap>, [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day18/mod.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | let mut temp = HashMap::::new(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day16/mod.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | let mut input: Vec = content.split("").filter(|thing| *thing != "").map(|digit| digit.parse::().unwrap()).collect(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day18/mod.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | let mut graph = construct_graph(&map); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day18/mod.rs:107:17 [INFO] [stdout] | [INFO] [stdout] 107 | let mut graph_copy = graph.clone(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day18/mod.rs:147:17 [INFO] [stdout] | [INFO] [stdout] 147 | let mut graph_copy = graph.clone(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day18/mod.rs:275:9 [INFO] [stdout] | [INFO] [stdout] 275 | let mut entrance_count: i32 = -1; [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day17/mod.rs:143:25 [INFO] [stdout] | [INFO] [stdout] 143 | let mut c_h = *higher; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day17/mod.rs:213:9 [INFO] [stdout] | [INFO] [stdout] 213 | let mut call_seq: Vec = helper_arr.into_iter().filter(|thing| *thing != "").map(|t| String::from(t)).collect(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day19/mod.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let mut codes = crate::utils::read_intcodes("./src/day19/input"); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day18/mod.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let mut graph = construct_graph(&map); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day18/mod.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let mut starting_points = vec!['@'; 4]; [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day18/mod.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | mut graph: HashMap>, [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day18/mod.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | let mut temp = HashMap::::new(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day18/mod.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | let mut graph = construct_graph(&map); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day18/mod.rs:107:17 [INFO] [stdout] | [INFO] [stdout] 107 | let mut graph_copy = graph.clone(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day18/mod.rs:147:17 [INFO] [stdout] | [INFO] [stdout] 147 | let mut graph_copy = graph.clone(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day18/mod.rs:275:9 [INFO] [stdout] | [INFO] [stdout] 275 | let mut entrance_count: i32 = -1; [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day19/mod.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let mut codes = crate::utils::read_intcodes("./src/day19/input"); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calc` [INFO] [stdout] --> src/day1/mod.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn calc() { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calc_recursive` [INFO] [stdout] --> src/day1/mod.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn calc_recursive(mass: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run_intcodes` [INFO] [stdout] --> src/day2/mod.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn run_intcodes(arg1: u32, arg2: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `find_pair` [INFO] [stdout] --> src/day2/mod.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn find_pair() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `find_nearest` [INFO] [stdout] --> src/day3/mod.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn find_nearest() -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `find_intersection_min` [INFO] [stdout] --> src/day3/mod.rs:109:4 [INFO] [stdout] | [INFO] [stdout] 109 | fn find_intersection_min(me: Line, orthogonals: &Vec) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `find_intersection_min_step` [INFO] [stdout] --> src/day3/mod.rs:131:4 [INFO] [stdout] | [INFO] [stdout] 131 | fn find_intersection_min_step(me: Line, orthogonals: &Vec) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_direction` [INFO] [stdout] --> src/day3/mod.rs:172:4 [INFO] [stdout] | [INFO] [stdout] 172 | fn parse_direction(raw_dir: &str) -> Direction { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `L` [INFO] [stdout] --> src/day3/mod.rs:187:5 [INFO] [stdout] | [INFO] [stdout] 187 | L(i32), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `R` [INFO] [stdout] --> src/day3/mod.rs:188:5 [INFO] [stdout] | [INFO] [stdout] 188 | R(i32), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `U` [INFO] [stdout] --> src/day3/mod.rs:189:5 [INFO] [stdout] | [INFO] [stdout] 189 | U(i32), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `D` [INFO] [stdout] --> src/day3/mod.rs:190:5 [INFO] [stdout] | [INFO] [stdout] 190 | D(i32) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Line` [INFO] [stdout] --> src/day3/mod.rs:206:8 [INFO] [stdout] | [INFO] [stdout] 206 | struct Line { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `count_possible_numbers` [INFO] [stdout] --> src/day4/mod.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn count_possible_numbers() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `count_recursive` [INFO] [stdout] --> src/day4/mod.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn count_recursive(prefix: &str, last_digit: u32, streak: u32, count: &mut u32, dup: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `value` [INFO] [stdout] --> src/day5/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | value: i128, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `mode` [INFO] [stdout] --> src/day5/mod.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | mode: ParameterMode, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Position` [INFO] [stdout] --> src/day5/mod.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | Position, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Immediate` [INFO] [stdout] --> src/day5/mod.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | Immediate, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Relative` [INFO] [stdout] --> src/day5/mod.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | Relative(i128) // relative base value [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Add` [INFO] [stdout] --> src/day5/mod.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | Add, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Multiply` [INFO] [stdout] --> src/day5/mod.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | Multiply, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Input` [INFO] [stdout] --> src/day5/mod.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | Input(Option), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Output` [INFO] [stdout] --> src/day5/mod.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | Output, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `JumpTrue` [INFO] [stdout] --> src/day5/mod.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | JumpTrue, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `JumpFalse` [INFO] [stdout] --> src/day5/mod.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | JumpFalse, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `LessThan` [INFO] [stdout] --> src/day5/mod.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | LessThan, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Equal` [INFO] [stdout] --> src/day5/mod.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | Equal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `UpdateRelativeBase` [INFO] [stdout] --> src/day5/mod.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | UpdateRelativeBase [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Result` [INFO] [stdout] --> src/day5/mod.rs:33:6 [INFO] [stdout] | [INFO] [stdout] 33 | enum Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `run` [INFO] [stdout] --> src/day5/mod.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | fn run(&self, codes: &mut Vec, mem: &mut HashMap, relative_base: &mut i128) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `insert_val` [INFO] [stdout] --> src/day5/mod.rs:131:5 [INFO] [stdout] | [INFO] [stdout] 131 | fn insert_val(codes: &mut Vec, mem: &mut HashMap, pos: i128, val: i128) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_value` [INFO] [stdout] --> src/day5/mod.rs:165:8 [INFO] [stdout] | [INFO] [stdout] 165 | fn get_value(&self, codes: &Vec, mem: &HashMap) -> i128 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_addr` [INFO] [stdout] --> src/day5/mod.rs:206:8 [INFO] [stdout] | [INFO] [stdout] 206 | fn get_addr(&self, codes: &Vec) -> i128 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `IntcodeResult` [INFO] [stdout] --> src/day5/mod.rs:215:12 [INFO] [stdout] | [INFO] [stdout] 215 | pub struct IntcodeResult { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run_intcode_raw` [INFO] [stdout] --> src/day5/mod.rs:222:8 [INFO] [stdout] | [INFO] [stdout] 222 | pub fn run_intcode_raw(codes: &mut Vec, memory: Option<&mut HashMap>, inputs: Vec, resume_point: usize, stop_on_p... [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run_intcode` [INFO] [stdout] --> src/day5/mod.rs:374:8 [INFO] [stdout] | [INFO] [stdout] 374 | pub fn run_intcode(code_path: &str, inputs: Vec) -> i128 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run_intcode_state` [INFO] [stdout] --> src/day5/mod.rs:385:8 [INFO] [stdout] | [INFO] [stdout] 385 | pub fn run_intcode_state(state: &mut IntcodeState, inputs: Vec, stop_on_pending_input: bool) -> IntcodeResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `IntcodeState` [INFO] [stdout] --> src/day5/mod.rs:389:12 [INFO] [stdout] | [INFO] [stdout] 389 | pub struct IntcodeState { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `count_orbit` [INFO] [stdout] --> src/day6/mod.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn count_orbit() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Wrapper` [INFO] [stdout] --> src/day6/mod.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | struct Wrapper<'a> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `steps_to_santa` [INFO] [stdout] --> src/day6/mod.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn steps_to_santa() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Node` [INFO] [stdout] --> src/day6/mod.rs:155:8 [INFO] [stdout] | [INFO] [stdout] 155 | struct Node<'a> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `max_thrust` [INFO] [stdout] --> src/day7/mod.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn max_thrust() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `recurse` [INFO] [stdout] --> src/day7/mod.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn recurse(phase_setting_left: Vec, input: i128) -> (i128, String) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `max_thrust_repeat` [INFO] [stdout] --> src/day7/mod.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn max_thrust_repeat() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `recurse_and_execute` [INFO] [stdout] --> src/day7/mod.rs:45:4 [INFO] [stdout] | [INFO] [stdout] 45 | fn recurse_and_execute(permutation: Vec, phase_setting_left: Vec) -> i128 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `checksum` [INFO] [stdout] --> src/day8/mod.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn checksum() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `decode` [INFO] [stdout] --> src/day8/mod.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn decode() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `boost` [INFO] [stdout] --> src/day9/mod.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn boost() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `max_visibility` [INFO] [stdout] --> src/day10/mod.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn max_visibility() -> (usize, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `gcd` [INFO] [stdout] --> src/day10/mod.rs:80:4 [INFO] [stdout] | [INFO] [stdout] 80 | fn gcd(a: usize, b: usize) -> usize [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `destroy` [INFO] [stdout] --> src/day10/mod.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn destroy() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `in_top_right` [INFO] [stdout] --> src/day10/mod.rs:216:4 [INFO] [stdout] | [INFO] [stdout] 216 | fn in_top_right(a: &TargetInLine) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `in_bottom_right` [INFO] [stdout] --> src/day10/mod.rs:220:4 [INFO] [stdout] | [INFO] [stdout] 220 | fn in_bottom_right(a: &TargetInLine) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `in_bottom_left` [INFO] [stdout] --> src/day10/mod.rs:224:4 [INFO] [stdout] | [INFO] [stdout] 224 | fn in_bottom_left(a: &TargetInLine) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `in_top_left` [INFO] [stdout] --> src/day10/mod.rs:228:4 [INFO] [stdout] | [INFO] [stdout] 228 | fn in_top_left(a: &TargetInLine) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `TargetInLine` [INFO] [stdout] --> src/day10/mod.rs:232:8 [INFO] [stdout] | [INFO] [stdout] 232 | struct TargetInLine { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `estimate` [INFO] [stdout] --> src/day11/mod.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn estimate() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `paint` [INFO] [stdout] --> src/day11/mod.rs:101:8 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn paint() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Position` [INFO] [stdout] --> src/day11/mod.rs:260:8 [INFO] [stdout] | [INFO] [stdout] 260 | struct Position { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_key` [INFO] [stdout] --> src/day11/mod.rs:267:12 [INFO] [stdout] | [INFO] [stdout] 267 | pub fn get_key(&self) -> String { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Up` [INFO] [stdout] --> src/day11/mod.rs:273:5 [INFO] [stdout] | [INFO] [stdout] 273 | Up, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Left` [INFO] [stdout] --> src/day11/mod.rs:274:5 [INFO] [stdout] | [INFO] [stdout] 274 | Left, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Down` [INFO] [stdout] --> src/day11/mod.rs:275:5 [INFO] [stdout] | [INFO] [stdout] 275 | Down, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Right` [INFO] [stdout] --> src/day11/mod.rs:276:5 [INFO] [stdout] | [INFO] [stdout] 276 | Right [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `total_energy` [INFO] [stdout] --> src/day12/mod.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn total_energy() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `steps_before_repeating` [INFO] [stdout] --> src/day12/mod.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn steps_before_repeating() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `at_start_x` [INFO] [stdout] --> src/day12/mod.rs:152:4 [INFO] [stdout] | [INFO] [stdout] 152 | fn at_start_x(cur_vec: &Vec, init_vec: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `at_start_y` [INFO] [stdout] --> src/day12/mod.rs:164:4 [INFO] [stdout] | [INFO] [stdout] 164 | fn at_start_y(cur_vec: &Vec, init_vec: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `at_start_z` [INFO] [stdout] --> src/day12/mod.rs:175:4 [INFO] [stdout] | [INFO] [stdout] 175 | fn at_start_z(cur_vec: &Vec, init_vec: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `gcd` [INFO] [stdout] --> src/day12/mod.rs:186:4 [INFO] [stdout] | [INFO] [stdout] 186 | fn gcd(x: u128, y: u128) -> u128 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `lcm` [INFO] [stdout] --> src/day12/mod.rs:197:4 [INFO] [stdout] | [INFO] [stdout] 197 | fn lcm(a: u128, b: u128) -> u128 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Moon` [INFO] [stdout] --> src/day12/mod.rs:201:8 [INFO] [stdout] | [INFO] [stdout] 201 | struct Moon { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/day12/mod.rs:211:8 [INFO] [stdout] | [INFO] [stdout] 211 | fn new(p_x: i32, p_y: i32, p_z: i32) -> Moon { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `energy` [INFO] [stdout] --> src/day12/mod.rs:222:12 [INFO] [stdout] | [INFO] [stdout] 222 | pub fn energy(&self) -> i128 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `eq` [INFO] [stdout] --> src/day12/mod.rs:229:12 [INFO] [stdout] | [INFO] [stdout] 229 | pub fn eq(&self, another: &Moon) -> bool { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `count_blocks` [INFO] [stdout] --> src/day13/mod.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn count_blocks() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `highscore` [INFO] [stdout] --> src/day13/mod.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn highscore() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `display` [INFO] [stdout] --> src/day13/mod.rs:136:4 [INFO] [stdout] | [INFO] [stdout] 136 | fn display(x_d: i32, y_d: i32, object_map: &HashMap) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `cost_for_1_fuel` [INFO] [stdout] --> src/day14/mod.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn cost_for_1_fuel() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `max_fuel` [INFO] [stdout] --> src/day14/mod.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn max_fuel() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `cost_for_fuel` [INFO] [stdout] --> src/day14/mod.rs:42:4 [INFO] [stdout] | [INFO] [stdout] 42 | fn cost_for_fuel(quantity: u64, recipes: & HashMap, mut surplus: HashMap) -> Cost { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_recipe` [INFO] [stdout] --> src/day14/mod.rs:108:4 [INFO] [stdout] | [INFO] [stdout] 108 | fn read_recipe() -> HashMap{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Cost` [INFO] [stdout] --> src/day14/mod.rs:127:8 [INFO] [stdout] | [INFO] [stdout] 127 | struct Cost { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Formula` [INFO] [stdout] --> src/day14/mod.rs:132:8 [INFO] [stdout] | [INFO] [stdout] 132 | struct Formula { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_material` [INFO] [stdout] --> src/day14/mod.rs:151:4 [INFO] [stdout] | [INFO] [stdout] 151 | fn parse_material(input: &str) -> Material { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `shortest_path` [INFO] [stdout] --> src/day15/mod.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn shortest_path() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `fill_oxygen` [INFO] [stdout] --> src/day15/mod.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn fill_oxygen() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `explore` [INFO] [stdout] --> src/day15/mod.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn explore(map: &mut HashMap, stop_on_oxygen_system: bool) -> (i128, i128) { // return x, y of the oxygen system [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run_intcode_save_point` [INFO] [stdout] --> src/day15/mod.rs:143:4 [INFO] [stdout] | [INFO] [stdout] 143 | fn run_intcode_save_point(save_point: &mut SavePoint, inputs: Vec, stop_on_pending_input: bool) -> crate::day5::IntcodeResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `key` [INFO] [stdout] --> src/day15/mod.rs:147:4 [INFO] [stdout] | [INFO] [stdout] 147 | fn key(save_point: &SavePoint) -> String { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `key2` [INFO] [stdout] --> src/day15/mod.rs:151:4 [INFO] [stdout] | [INFO] [stdout] 151 | fn key2(point: (i128, i128)) -> String { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `fft` [INFO] [stdout] --> src/day16/mod.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn fft() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `repeat_10000_times` [INFO] [stdout] --> src/day16/mod.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn repeat_10000_times() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calc_alignment` [INFO] [stdout] --> src/day17/mod.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn calc_alignment() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `traverse` [INFO] [stdout] --> src/day17/mod.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn traverse() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `construct_input` [INFO] [stdout] --> src/day17/mod.rs:250:4 [INFO] [stdout] | [INFO] [stdout] 250 | fn construct_input(commands: &[String], inputs: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `find_matches` [INFO] [stdout] --> src/day17/mod.rs:266:4 [INFO] [stdout] | [INFO] [stdout] 266 | fn find_matches(p: &[String], strg: &Vec, ranges: &Vec<(u32, u32)>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `next_move` [INFO] [stdout] --> src/day17/mod.rs:303:4 [INFO] [stdout] | [INFO] [stdout] 303 | fn next_move(robot: &RobotState, map: &Map) -> Move { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `move_in_direction` [INFO] [stdout] --> src/day17/mod.rs:339:4 [INFO] [stdout] | [INFO] [stdout] 339 | fn move_in_direction(robot: &RobotState, d: &str) -> (i32, i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_intersection` [INFO] [stdout] --> src/day17/mod.rs:357:4 [INFO] [stdout] | [INFO] [stdout] 357 | fn is_intersection(map: &Vec, width: i128, coordinate: (i128, i128)) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `RobotState` [INFO] [stdout] --> src/day17/mod.rs:376:8 [INFO] [stdout] | [INFO] [stdout] 376 | struct RobotState { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `turn_left` [INFO] [stdout] --> src/day17/mod.rs:383:8 [INFO] [stdout] | [INFO] [stdout] 383 | fn turn_left(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `turn_right` [INFO] [stdout] --> src/day17/mod.rs:389:8 [INFO] [stdout] | [INFO] [stdout] 389 | fn turn_right(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `move_to` [INFO] [stdout] --> src/day17/mod.rs:395:8 [INFO] [stdout] | [INFO] [stdout] 395 | fn move_to(&mut self, x: u32, y: u32) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Map` [INFO] [stdout] --> src/day17/mod.rs:401:8 [INFO] [stdout] | [INFO] [stdout] 401 | struct Map { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get` [INFO] [stdout] --> src/day17/mod.rs:407:8 [INFO] [stdout] | [INFO] [stdout] 407 | fn get(&self, x: i32, y: i32) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `index_to_coordinate` [INFO] [stdout] --> src/day17/mod.rs:421:8 [INFO] [stdout] | [INFO] [stdout] 421 | fn index_to_coordinate(&self, index: u32) -> (u32, u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `coordinate_to_index` [INFO] [stdout] --> src/day17/mod.rs:425:8 [INFO] [stdout] | [INFO] [stdout] 425 | fn coordinate_to_index(&self, x: u32, y: u32) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Move` [INFO] [stdout] --> src/day17/mod.rs:440:6 [INFO] [stdout] | [INFO] [stdout] 440 | enum Move { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Pattern` [INFO] [stdout] --> src/day17/mod.rs:445:8 [INFO] [stdout] | [INFO] [stdout] 445 | struct Pattern { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `shortest_path_p2` [INFO] [stdout] --> src/day18/mod.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn shortest_path_p2() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `shortest_path_recurse_p2` [INFO] [stdout] --> src/day18/mod.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn shortest_path_recurse_p2( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `shortest_path` [INFO] [stdout] --> src/day18/mod.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn shortest_path() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `shortest_path_recurse` [INFO] [stdout] --> src/day18/mod.rs:119:4 [INFO] [stdout] | [INFO] [stdout] 119 | fn shortest_path_recurse(mut graph: HashMap>, at_key: char, cache: &mut HashMap) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `remove_from_graph` [INFO] [stdout] --> src/day18/mod.rs:159:4 [INFO] [stdout] | [INFO] [stdout] 159 | fn remove_from_graph( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `replace_key_in_graph` [INFO] [stdout] --> src/day18/mod.rs:210:4 [INFO] [stdout] | [INFO] [stdout] 210 | fn replace_key_in_graph ( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `construct_map` [INFO] [stdout] --> src/day18/mod.rs:226:4 [INFO] [stdout] | [INFO] [stdout] 226 | fn construct_map(path: &str) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `find_entrances` [INFO] [stdout] --> src/day18/mod.rs:259:4 [INFO] [stdout] | [INFO] [stdout] 259 | fn find_entrances(map: &Vec>) -> Vec<(usize, usize)> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `construct_graph` [INFO] [stdout] --> src/day18/mod.rs:272:4 [INFO] [stdout] | [INFO] [stdout] 272 | fn construct_graph(map: &Vec>) -> HashMap> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add_neighbors` [INFO] [stdout] --> src/day18/mod.rs:287:4 [INFO] [stdout] | [INFO] [stdout] 287 | fn add_neighbors( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `count_areas` [INFO] [stdout] --> src/day19/mod.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn count_areas() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `fit_santa` [INFO] [stdout] --> src/day19/mod.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn fit_santa() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `right` [INFO] [stdout] --> src/day19/mod.rs:66:4 [INFO] [stdout] | [INFO] [stdout] 66 | fn right(codes: &Vec, r: i128, c: i128, cache: &mut HashMap,) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `down` [INFO] [stdout] --> src/day19/mod.rs:70:4 [INFO] [stdout] | [INFO] [stdout] 70 | fn down(codes: &Vec, r: i128, c: i128, cache: &mut HashMap) -> u32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `recurse_one_dir` [INFO] [stdout] --> src/day19/mod.rs:74:4 [INFO] [stdout] | [INFO] [stdout] 74 | fn recurse_one_dir(codes: &Vec, r: i128, c: i128, cache: &mut HashMap, mov: (u32, u32)) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `shortest_path_recursive_maze` [INFO] [stdout] --> src/day20/mod.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn shortest_path_recursive_maze() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `RecursiveCost` [INFO] [stdout] --> src/day20/mod.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | struct RecursiveCost { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `shortest_path` [INFO] [stdout] --> src/day20/mod.rs:91:8 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn shortest_path() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Cost` [INFO] [stdout] --> src/day20/mod.rs:147:8 [INFO] [stdout] | [INFO] [stdout] 147 | struct Cost { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `construct_graph` [INFO] [stdout] --> src/day20/mod.rs:152:4 [INFO] [stdout] | [INFO] [stdout] 152 | fn construct_graph(map: & Vec>) -> HashMap> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add_neighbors` [INFO] [stdout] --> src/day20/mod.rs:166:4 [INFO] [stdout] | [INFO] [stdout] 166 | fn add_neighbors( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_portal_name` [INFO] [stdout] --> src/day20/mod.rs:238:4 [INFO] [stdout] | [INFO] [stdout] 238 | fn get_portal_name( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_outer_portal` [INFO] [stdout] --> src/day20/mod.rs:252:4 [INFO] [stdout] | [INFO] [stdout] 252 | fn is_outer_portal( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_sister_portal_name` [INFO] [stdout] --> src/day20/mod.rs:263:4 [INFO] [stdout] | [INFO] [stdout] 263 | fn get_sister_portal_name(portal_name: &String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `construct_map` [INFO] [stdout] --> src/day20/mod.rs:271:4 [INFO] [stdout] | [INFO] [stdout] 271 | fn construct_map() -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_portal` [INFO] [stdout] --> src/day20/mod.rs:300:4 [INFO] [stdout] | [INFO] [stdout] 300 | fn is_portal(map: &Vec>, r_idx: usize, c_idx: usize) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `two_letters` [INFO] [stdout] --> src/day20/mod.rs:328:4 [INFO] [stdout] | [INFO] [stdout] 328 | fn two_letters(map: &Vec>, r_idx: usize, c_idx: usize, delta: (i32, i32)) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `pt1` [INFO] [stdout] --> src/day21/mod.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn pt1() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `pt2` [INFO] [stdout] --> src/day21/mod.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn pt2() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `pt1` [INFO] [stdout] --> src/day22/mod.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn pt1() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `pt2` [INFO] [stdout] --> src/day22/mod.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn pt2() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `shuffle` [INFO] [stdout] --> src/day22/mod.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn shuffle(cards: u128, rounds: u128) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `stack` [INFO] [stdout] --> src/day22/mod.rs:61:4 [INFO] [stdout] | [INFO] [stdout] 61 | fn stack(list: &mut Vec) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `cut` [INFO] [stdout] --> src/day22/mod.rs:65:4 [INFO] [stdout] | [INFO] [stdout] 65 | fn cut(list:& Vec, size: i32) -> Vec { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `increment` [INFO] [stdout] --> src/day22/mod.rs:78:4 [INFO] [stdout] | [INFO] [stdout] 78 | fn increment(list: &Vec, inc: u32) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Increment` [INFO] [stdout] --> src/day22/mod.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | Increment(u32), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Cut` [INFO] [stdout] --> src/day22/mod.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 94 | Cut(i32), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Stack` [INFO] [stdout] --> src/day22/mod.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | Stack [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `communicate` [INFO] [stdout] --> src/day23/mod.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn communicate() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `monitor` [INFO] [stdout] --> src/day23/mod.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn monitor() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bug_score` [INFO] [stdout] --> src/day24/mod.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn bug_score() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `BugMap` [INFO] [stdout] --> src/day24/mod.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | struct BugMap { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `score` [INFO] [stdout] --> src/day24/mod.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | fn score(&self) -> u64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `next` [INFO] [stdout] --> src/day24/mod.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 61 | fn next(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `next_state` [INFO] [stdout] --> src/day24/mod.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 71 | fn next_state(&self, idx: u32) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get` [INFO] [stdout] --> src/day24/mod.rs:102:8 [INFO] [stdout] | [INFO] [stdout] 102 | fn get(&self, r: i32, c: i32) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_intcodes` [INFO] [stdout] --> src/utils.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn read_intcodes(path: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `centerWrapper` should have a snake case name [INFO] [stdout] --> src/day6/mod.rs:32:25 [INFO] [stdout] | [INFO] [stdout] 32 | if let Some(centerWrapper) = map.get(center) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `center_wrapper` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `orbiterWrapperOption` should have a snake case name [INFO] [stdout] --> src/day6/mod.rs:37:25 [INFO] [stdout] | [INFO] [stdout] 37 | let orbiterWrapperOption = map.get_mut(orbiter); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `orbiter_wrapper_option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `orbiterWrapper` should have a snake case name [INFO] [stdout] --> src/day6/mod.rs:39:30 [INFO] [stdout] | [INFO] [stdout] 39 | Some(orbiterWrapper) => { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `orbiter_wrapper` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `visitedByMe` should have a snake case name [INFO] [stdout] --> src/day6/mod.rs:107:13 [INFO] [stdout] | [INFO] [stdout] 107 | let mut visitedByMe: HashMap<&str, u32> = HashMap::new(); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `visited_by_me` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isFirstLayer` should have a snake case name [INFO] [stdout] --> src/day8/mod.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | let mut isFirstLayer = true; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `is_first_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/day17/mod.rs:369:8 [INFO] [stdout] | [INFO] [stdout] 369 | if n_idx < 0 || s_idx as usize >= map.len() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 231 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calc` [INFO] [stdout] --> src/day1/mod.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn calc() { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calc_recursive` [INFO] [stdout] --> src/day1/mod.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn calc_recursive(mass: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run_intcodes` [INFO] [stdout] --> src/day2/mod.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn run_intcodes(arg1: u32, arg2: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `find_pair` [INFO] [stdout] --> src/day2/mod.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn find_pair() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `find_nearest` [INFO] [stdout] --> src/day3/mod.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn find_nearest() -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `find_intersection_min` [INFO] [stdout] --> src/day3/mod.rs:109:4 [INFO] [stdout] | [INFO] [stdout] 109 | fn find_intersection_min(me: Line, orthogonals: &Vec) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `find_intersection_min_step` [INFO] [stdout] --> src/day3/mod.rs:131:4 [INFO] [stdout] | [INFO] [stdout] 131 | fn find_intersection_min_step(me: Line, orthogonals: &Vec) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_direction` [INFO] [stdout] --> src/day3/mod.rs:172:4 [INFO] [stdout] | [INFO] [stdout] 172 | fn parse_direction(raw_dir: &str) -> Direction { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `L` [INFO] [stdout] --> src/day3/mod.rs:187:5 [INFO] [stdout] | [INFO] [stdout] 187 | L(i32), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `R` [INFO] [stdout] --> src/day3/mod.rs:188:5 [INFO] [stdout] | [INFO] [stdout] 188 | R(i32), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `U` [INFO] [stdout] --> src/day3/mod.rs:189:5 [INFO] [stdout] | [INFO] [stdout] 189 | U(i32), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `D` [INFO] [stdout] --> src/day3/mod.rs:190:5 [INFO] [stdout] | [INFO] [stdout] 190 | D(i32) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Line` [INFO] [stdout] --> src/day3/mod.rs:206:8 [INFO] [stdout] | [INFO] [stdout] 206 | struct Line { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `count_possible_numbers` [INFO] [stdout] --> src/day4/mod.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn count_possible_numbers() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `count_recursive` [INFO] [stdout] --> src/day4/mod.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn count_recursive(prefix: &str, last_digit: u32, streak: u32, count: &mut u32, dup: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `value` [INFO] [stdout] --> src/day5/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | value: i128, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `mode` [INFO] [stdout] --> src/day5/mod.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | mode: ParameterMode, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Position` [INFO] [stdout] --> src/day5/mod.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | Position, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Immediate` [INFO] [stdout] --> src/day5/mod.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | Immediate, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Relative` [INFO] [stdout] --> src/day5/mod.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | Relative(i128) // relative base value [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Add` [INFO] [stdout] --> src/day5/mod.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | Add, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Multiply` [INFO] [stdout] --> src/day5/mod.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | Multiply, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Input` [INFO] [stdout] --> src/day5/mod.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | Input(Option), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Output` [INFO] [stdout] --> src/day5/mod.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | Output, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `JumpTrue` [INFO] [stdout] --> src/day5/mod.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | JumpTrue, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `JumpFalse` [INFO] [stdout] --> src/day5/mod.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | JumpFalse, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `LessThan` [INFO] [stdout] --> src/day5/mod.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | LessThan, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Equal` [INFO] [stdout] --> src/day5/mod.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | Equal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `UpdateRelativeBase` [INFO] [stdout] --> src/day5/mod.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | UpdateRelativeBase [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Result` [INFO] [stdout] --> src/day5/mod.rs:33:6 [INFO] [stdout] | [INFO] [stdout] 33 | enum Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `run` [INFO] [stdout] --> src/day5/mod.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | fn run(&self, codes: &mut Vec, mem: &mut HashMap, relative_base: &mut i128) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `insert_val` [INFO] [stdout] --> src/day5/mod.rs:131:5 [INFO] [stdout] | [INFO] [stdout] 131 | fn insert_val(codes: &mut Vec, mem: &mut HashMap, pos: i128, val: i128) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_value` [INFO] [stdout] --> src/day5/mod.rs:165:8 [INFO] [stdout] | [INFO] [stdout] 165 | fn get_value(&self, codes: &Vec, mem: &HashMap) -> i128 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_addr` [INFO] [stdout] --> src/day5/mod.rs:206:8 [INFO] [stdout] | [INFO] [stdout] 206 | fn get_addr(&self, codes: &Vec) -> i128 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `IntcodeResult` [INFO] [stdout] --> src/day5/mod.rs:215:12 [INFO] [stdout] | [INFO] [stdout] 215 | pub struct IntcodeResult { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run_intcode_raw` [INFO] [stdout] --> src/day5/mod.rs:222:8 [INFO] [stdout] | [INFO] [stdout] 222 | pub fn run_intcode_raw(codes: &mut Vec, memory: Option<&mut HashMap>, inputs: Vec, resume_point: usize, stop_on_p... [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run_intcode` [INFO] [stdout] --> src/day5/mod.rs:374:8 [INFO] [stdout] | [INFO] [stdout] 374 | pub fn run_intcode(code_path: &str, inputs: Vec) -> i128 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run_intcode_state` [INFO] [stdout] --> src/day5/mod.rs:385:8 [INFO] [stdout] | [INFO] [stdout] 385 | pub fn run_intcode_state(state: &mut IntcodeState, inputs: Vec, stop_on_pending_input: bool) -> IntcodeResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `IntcodeState` [INFO] [stdout] --> src/day5/mod.rs:389:12 [INFO] [stdout] | [INFO] [stdout] 389 | pub struct IntcodeState { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `count_orbit` [INFO] [stdout] --> src/day6/mod.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn count_orbit() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Wrapper` [INFO] [stdout] --> src/day6/mod.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | struct Wrapper<'a> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `steps_to_santa` [INFO] [stdout] --> src/day6/mod.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn steps_to_santa() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Node` [INFO] [stdout] --> src/day6/mod.rs:155:8 [INFO] [stdout] | [INFO] [stdout] 155 | struct Node<'a> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `max_thrust` [INFO] [stdout] --> src/day7/mod.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn max_thrust() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `recurse` [INFO] [stdout] --> src/day7/mod.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn recurse(phase_setting_left: Vec, input: i128) -> (i128, String) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `max_thrust_repeat` [INFO] [stdout] --> src/day7/mod.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn max_thrust_repeat() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `recurse_and_execute` [INFO] [stdout] --> src/day7/mod.rs:45:4 [INFO] [stdout] | [INFO] [stdout] 45 | fn recurse_and_execute(permutation: Vec, phase_setting_left: Vec) -> i128 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `checksum` [INFO] [stdout] --> src/day8/mod.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn checksum() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `decode` [INFO] [stdout] --> src/day8/mod.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn decode() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `boost` [INFO] [stdout] --> src/day9/mod.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn boost() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `max_visibility` [INFO] [stdout] --> src/day10/mod.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn max_visibility() -> (usize, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `gcd` [INFO] [stdout] --> src/day10/mod.rs:80:4 [INFO] [stdout] | [INFO] [stdout] 80 | fn gcd(a: usize, b: usize) -> usize [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `destroy` [INFO] [stdout] --> src/day10/mod.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn destroy() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `in_top_right` [INFO] [stdout] --> src/day10/mod.rs:216:4 [INFO] [stdout] | [INFO] [stdout] 216 | fn in_top_right(a: &TargetInLine) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `in_bottom_right` [INFO] [stdout] --> src/day10/mod.rs:220:4 [INFO] [stdout] | [INFO] [stdout] 220 | fn in_bottom_right(a: &TargetInLine) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `in_bottom_left` [INFO] [stdout] --> src/day10/mod.rs:224:4 [INFO] [stdout] | [INFO] [stdout] 224 | fn in_bottom_left(a: &TargetInLine) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `in_top_left` [INFO] [stdout] --> src/day10/mod.rs:228:4 [INFO] [stdout] | [INFO] [stdout] 228 | fn in_top_left(a: &TargetInLine) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `TargetInLine` [INFO] [stdout] --> src/day10/mod.rs:232:8 [INFO] [stdout] | [INFO] [stdout] 232 | struct TargetInLine { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `estimate` [INFO] [stdout] --> src/day11/mod.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn estimate() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `paint` [INFO] [stdout] --> src/day11/mod.rs:101:8 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn paint() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Position` [INFO] [stdout] --> src/day11/mod.rs:260:8 [INFO] [stdout] | [INFO] [stdout] 260 | struct Position { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_key` [INFO] [stdout] --> src/day11/mod.rs:267:12 [INFO] [stdout] | [INFO] [stdout] 267 | pub fn get_key(&self) -> String { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Up` [INFO] [stdout] --> src/day11/mod.rs:273:5 [INFO] [stdout] | [INFO] [stdout] 273 | Up, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Left` [INFO] [stdout] --> src/day11/mod.rs:274:5 [INFO] [stdout] | [INFO] [stdout] 274 | Left, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Down` [INFO] [stdout] --> src/day11/mod.rs:275:5 [INFO] [stdout] | [INFO] [stdout] 275 | Down, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Right` [INFO] [stdout] --> src/day11/mod.rs:276:5 [INFO] [stdout] | [INFO] [stdout] 276 | Right [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `total_energy` [INFO] [stdout] --> src/day12/mod.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn total_energy() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `steps_before_repeating` [INFO] [stdout] --> src/day12/mod.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn steps_before_repeating() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `at_start_x` [INFO] [stdout] --> src/day12/mod.rs:152:4 [INFO] [stdout] | [INFO] [stdout] 152 | fn at_start_x(cur_vec: &Vec, init_vec: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `at_start_y` [INFO] [stdout] --> src/day12/mod.rs:164:4 [INFO] [stdout] | [INFO] [stdout] 164 | fn at_start_y(cur_vec: &Vec, init_vec: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `at_start_z` [INFO] [stdout] --> src/day12/mod.rs:175:4 [INFO] [stdout] | [INFO] [stdout] 175 | fn at_start_z(cur_vec: &Vec, init_vec: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `gcd` [INFO] [stdout] --> src/day12/mod.rs:186:4 [INFO] [stdout] | [INFO] [stdout] 186 | fn gcd(x: u128, y: u128) -> u128 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `lcm` [INFO] [stdout] --> src/day12/mod.rs:197:4 [INFO] [stdout] | [INFO] [stdout] 197 | fn lcm(a: u128, b: u128) -> u128 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Moon` [INFO] [stdout] --> src/day12/mod.rs:201:8 [INFO] [stdout] | [INFO] [stdout] 201 | struct Moon { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/day12/mod.rs:211:8 [INFO] [stdout] | [INFO] [stdout] 211 | fn new(p_x: i32, p_y: i32, p_z: i32) -> Moon { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `energy` [INFO] [stdout] --> src/day12/mod.rs:222:12 [INFO] [stdout] | [INFO] [stdout] 222 | pub fn energy(&self) -> i128 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `eq` [INFO] [stdout] --> src/day12/mod.rs:229:12 [INFO] [stdout] | [INFO] [stdout] 229 | pub fn eq(&self, another: &Moon) -> bool { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `count_blocks` [INFO] [stdout] --> src/day13/mod.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn count_blocks() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `highscore` [INFO] [stdout] --> src/day13/mod.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn highscore() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `display` [INFO] [stdout] --> src/day13/mod.rs:136:4 [INFO] [stdout] | [INFO] [stdout] 136 | fn display(x_d: i32, y_d: i32, object_map: &HashMap) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `cost_for_1_fuel` [INFO] [stdout] --> src/day14/mod.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn cost_for_1_fuel() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `max_fuel` [INFO] [stdout] --> src/day14/mod.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn max_fuel() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `cost_for_fuel` [INFO] [stdout] --> src/day14/mod.rs:42:4 [INFO] [stdout] | [INFO] [stdout] 42 | fn cost_for_fuel(quantity: u64, recipes: & HashMap, mut surplus: HashMap) -> Cost { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_recipe` [INFO] [stdout] --> src/day14/mod.rs:108:4 [INFO] [stdout] | [INFO] [stdout] 108 | fn read_recipe() -> HashMap{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Cost` [INFO] [stdout] --> src/day14/mod.rs:127:8 [INFO] [stdout] | [INFO] [stdout] 127 | struct Cost { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Formula` [INFO] [stdout] --> src/day14/mod.rs:132:8 [INFO] [stdout] | [INFO] [stdout] 132 | struct Formula { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_material` [INFO] [stdout] --> src/day14/mod.rs:151:4 [INFO] [stdout] | [INFO] [stdout] 151 | fn parse_material(input: &str) -> Material { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `shortest_path` [INFO] [stdout] --> src/day15/mod.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn shortest_path() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `fill_oxygen` [INFO] [stdout] --> src/day15/mod.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn fill_oxygen() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `explore` [INFO] [stdout] --> src/day15/mod.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn explore(map: &mut HashMap, stop_on_oxygen_system: bool) -> (i128, i128) { // return x, y of the oxygen system [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run_intcode_save_point` [INFO] [stdout] --> src/day15/mod.rs:143:4 [INFO] [stdout] | [INFO] [stdout] 143 | fn run_intcode_save_point(save_point: &mut SavePoint, inputs: Vec, stop_on_pending_input: bool) -> crate::day5::IntcodeResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `key` [INFO] [stdout] --> src/day15/mod.rs:147:4 [INFO] [stdout] | [INFO] [stdout] 147 | fn key(save_point: &SavePoint) -> String { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `key2` [INFO] [stdout] --> src/day15/mod.rs:151:4 [INFO] [stdout] | [INFO] [stdout] 151 | fn key2(point: (i128, i128)) -> String { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `fft` [INFO] [stdout] --> src/day16/mod.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn fft() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `repeat_10000_times` [INFO] [stdout] --> src/day16/mod.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn repeat_10000_times() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calc_alignment` [INFO] [stdout] --> src/day17/mod.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn calc_alignment() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `traverse` [INFO] [stdout] --> src/day17/mod.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn traverse() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `construct_input` [INFO] [stdout] --> src/day17/mod.rs:250:4 [INFO] [stdout] | [INFO] [stdout] 250 | fn construct_input(commands: &[String], inputs: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `find_matches` [INFO] [stdout] --> src/day17/mod.rs:266:4 [INFO] [stdout] | [INFO] [stdout] 266 | fn find_matches(p: &[String], strg: &Vec, ranges: &Vec<(u32, u32)>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `next_move` [INFO] [stdout] --> src/day17/mod.rs:303:4 [INFO] [stdout] | [INFO] [stdout] 303 | fn next_move(robot: &RobotState, map: &Map) -> Move { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `move_in_direction` [INFO] [stdout] --> src/day17/mod.rs:339:4 [INFO] [stdout] | [INFO] [stdout] 339 | fn move_in_direction(robot: &RobotState, d: &str) -> (i32, i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_intersection` [INFO] [stdout] --> src/day17/mod.rs:357:4 [INFO] [stdout] | [INFO] [stdout] 357 | fn is_intersection(map: &Vec, width: i128, coordinate: (i128, i128)) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `RobotState` [INFO] [stdout] --> src/day17/mod.rs:376:8 [INFO] [stdout] | [INFO] [stdout] 376 | struct RobotState { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `turn_left` [INFO] [stdout] --> src/day17/mod.rs:383:8 [INFO] [stdout] | [INFO] [stdout] 383 | fn turn_left(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `turn_right` [INFO] [stdout] --> src/day17/mod.rs:389:8 [INFO] [stdout] | [INFO] [stdout] 389 | fn turn_right(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `move_to` [INFO] [stdout] --> src/day17/mod.rs:395:8 [INFO] [stdout] | [INFO] [stdout] 395 | fn move_to(&mut self, x: u32, y: u32) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Map` [INFO] [stdout] --> src/day17/mod.rs:401:8 [INFO] [stdout] | [INFO] [stdout] 401 | struct Map { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get` [INFO] [stdout] --> src/day17/mod.rs:407:8 [INFO] [stdout] | [INFO] [stdout] 407 | fn get(&self, x: i32, y: i32) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `index_to_coordinate` [INFO] [stdout] --> src/day17/mod.rs:421:8 [INFO] [stdout] | [INFO] [stdout] 421 | fn index_to_coordinate(&self, index: u32) -> (u32, u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `coordinate_to_index` [INFO] [stdout] --> src/day17/mod.rs:425:8 [INFO] [stdout] | [INFO] [stdout] 425 | fn coordinate_to_index(&self, x: u32, y: u32) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Move` [INFO] [stdout] --> src/day17/mod.rs:440:6 [INFO] [stdout] | [INFO] [stdout] 440 | enum Move { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Pattern` [INFO] [stdout] --> src/day17/mod.rs:445:8 [INFO] [stdout] | [INFO] [stdout] 445 | struct Pattern { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `shortest_path_p2` [INFO] [stdout] --> src/day18/mod.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn shortest_path_p2() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `shortest_path_recurse_p2` [INFO] [stdout] --> src/day18/mod.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn shortest_path_recurse_p2( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `shortest_path` [INFO] [stdout] --> src/day18/mod.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn shortest_path() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `shortest_path_recurse` [INFO] [stdout] --> src/day18/mod.rs:119:4 [INFO] [stdout] | [INFO] [stdout] 119 | fn shortest_path_recurse(mut graph: HashMap>, at_key: char, cache: &mut HashMap) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `remove_from_graph` [INFO] [stdout] --> src/day18/mod.rs:159:4 [INFO] [stdout] | [INFO] [stdout] 159 | fn remove_from_graph( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `replace_key_in_graph` [INFO] [stdout] --> src/day18/mod.rs:210:4 [INFO] [stdout] | [INFO] [stdout] 210 | fn replace_key_in_graph ( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `construct_map` [INFO] [stdout] --> src/day18/mod.rs:226:4 [INFO] [stdout] | [INFO] [stdout] 226 | fn construct_map(path: &str) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `find_entrances` [INFO] [stdout] --> src/day18/mod.rs:259:4 [INFO] [stdout] | [INFO] [stdout] 259 | fn find_entrances(map: &Vec>) -> Vec<(usize, usize)> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `construct_graph` [INFO] [stdout] --> src/day18/mod.rs:272:4 [INFO] [stdout] | [INFO] [stdout] 272 | fn construct_graph(map: &Vec>) -> HashMap> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add_neighbors` [INFO] [stdout] --> src/day18/mod.rs:287:4 [INFO] [stdout] | [INFO] [stdout] 287 | fn add_neighbors( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `count_areas` [INFO] [stdout] --> src/day19/mod.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn count_areas() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `fit_santa` [INFO] [stdout] --> src/day19/mod.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn fit_santa() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `right` [INFO] [stdout] --> src/day19/mod.rs:66:4 [INFO] [stdout] | [INFO] [stdout] 66 | fn right(codes: &Vec, r: i128, c: i128, cache: &mut HashMap,) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `down` [INFO] [stdout] --> src/day19/mod.rs:70:4 [INFO] [stdout] | [INFO] [stdout] 70 | fn down(codes: &Vec, r: i128, c: i128, cache: &mut HashMap) -> u32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `recurse_one_dir` [INFO] [stdout] --> src/day19/mod.rs:74:4 [INFO] [stdout] | [INFO] [stdout] 74 | fn recurse_one_dir(codes: &Vec, r: i128, c: i128, cache: &mut HashMap, mov: (u32, u32)) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `shortest_path_recursive_maze` [INFO] [stdout] --> src/day20/mod.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn shortest_path_recursive_maze() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `RecursiveCost` [INFO] [stdout] --> src/day20/mod.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | struct RecursiveCost { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `shortest_path` [INFO] [stdout] --> src/day20/mod.rs:91:8 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn shortest_path() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Cost` [INFO] [stdout] --> src/day20/mod.rs:147:8 [INFO] [stdout] | [INFO] [stdout] 147 | struct Cost { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `construct_graph` [INFO] [stdout] --> src/day20/mod.rs:152:4 [INFO] [stdout] | [INFO] [stdout] 152 | fn construct_graph(map: & Vec>) -> HashMap> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add_neighbors` [INFO] [stdout] --> src/day20/mod.rs:166:4 [INFO] [stdout] | [INFO] [stdout] 166 | fn add_neighbors( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_portal_name` [INFO] [stdout] --> src/day20/mod.rs:238:4 [INFO] [stdout] | [INFO] [stdout] 238 | fn get_portal_name( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_outer_portal` [INFO] [stdout] --> src/day20/mod.rs:252:4 [INFO] [stdout] | [INFO] [stdout] 252 | fn is_outer_portal( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_sister_portal_name` [INFO] [stdout] --> src/day20/mod.rs:263:4 [INFO] [stdout] | [INFO] [stdout] 263 | fn get_sister_portal_name(portal_name: &String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `construct_map` [INFO] [stdout] --> src/day20/mod.rs:271:4 [INFO] [stdout] | [INFO] [stdout] 271 | fn construct_map() -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_portal` [INFO] [stdout] --> src/day20/mod.rs:300:4 [INFO] [stdout] | [INFO] [stdout] 300 | fn is_portal(map: &Vec>, r_idx: usize, c_idx: usize) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `two_letters` [INFO] [stdout] --> src/day20/mod.rs:328:4 [INFO] [stdout] | [INFO] [stdout] 328 | fn two_letters(map: &Vec>, r_idx: usize, c_idx: usize, delta: (i32, i32)) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `pt1` [INFO] [stdout] --> src/day21/mod.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn pt1() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `pt2` [INFO] [stdout] --> src/day21/mod.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn pt2() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `pt1` [INFO] [stdout] --> src/day22/mod.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn pt1() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `pt2` [INFO] [stdout] --> src/day22/mod.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn pt2() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `shuffle` [INFO] [stdout] --> src/day22/mod.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn shuffle(cards: u128, rounds: u128) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `stack` [INFO] [stdout] --> src/day22/mod.rs:61:4 [INFO] [stdout] | [INFO] [stdout] 61 | fn stack(list: &mut Vec) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `cut` [INFO] [stdout] --> src/day22/mod.rs:65:4 [INFO] [stdout] | [INFO] [stdout] 65 | fn cut(list:& Vec, size: i32) -> Vec { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `increment` [INFO] [stdout] --> src/day22/mod.rs:78:4 [INFO] [stdout] | [INFO] [stdout] 78 | fn increment(list: &Vec, inc: u32) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Increment` [INFO] [stdout] --> src/day22/mod.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | Increment(u32), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Cut` [INFO] [stdout] --> src/day22/mod.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 94 | Cut(i32), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Stack` [INFO] [stdout] --> src/day22/mod.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | Stack [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `communicate` [INFO] [stdout] --> src/day23/mod.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn communicate() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `monitor` [INFO] [stdout] --> src/day23/mod.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn monitor() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bug_score` [INFO] [stdout] --> src/day24/mod.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn bug_score() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `BugMap` [INFO] [stdout] --> src/day24/mod.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | struct BugMap { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `score` [INFO] [stdout] --> src/day24/mod.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | fn score(&self) -> u64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `next` [INFO] [stdout] --> src/day24/mod.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 61 | fn next(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `next_state` [INFO] [stdout] --> src/day24/mod.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 71 | fn next_state(&self, idx: u32) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get` [INFO] [stdout] --> src/day24/mod.rs:102:8 [INFO] [stdout] | [INFO] [stdout] 102 | fn get(&self, r: i32, c: i32) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_intcodes` [INFO] [stdout] --> src/utils.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn read_intcodes(path: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `centerWrapper` should have a snake case name [INFO] [stdout] --> src/day6/mod.rs:32:25 [INFO] [stdout] | [INFO] [stdout] 32 | if let Some(centerWrapper) = map.get(center) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `center_wrapper` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `orbiterWrapperOption` should have a snake case name [INFO] [stdout] --> src/day6/mod.rs:37:25 [INFO] [stdout] | [INFO] [stdout] 37 | let orbiterWrapperOption = map.get_mut(orbiter); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `orbiter_wrapper_option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `orbiterWrapper` should have a snake case name [INFO] [stdout] --> src/day6/mod.rs:39:30 [INFO] [stdout] | [INFO] [stdout] 39 | Some(orbiterWrapper) => { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `orbiter_wrapper` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `visitedByMe` should have a snake case name [INFO] [stdout] --> src/day6/mod.rs:107:13 [INFO] [stdout] | [INFO] [stdout] 107 | let mut visitedByMe: HashMap<&str, u32> = HashMap::new(); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `visited_by_me` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isFirstLayer` should have a snake case name [INFO] [stdout] --> src/day8/mod.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | let mut isFirstLayer = true; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `is_first_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/day17/mod.rs:369:8 [INFO] [stdout] | [INFO] [stdout] 369 | if n_idx < 0 || s_idx as usize >= map.len() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2.52s [INFO] [stdout] warning: 231 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "b2cbd26e4c4935ff44547d030ac580e85f33d35a0b3506df6f7b7e469383b794", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b2cbd26e4c4935ff44547d030ac580e85f33d35a0b3506df6f7b7e469383b794", kill_on_drop: false }` [INFO] [stdout] b2cbd26e4c4935ff44547d030ac580e85f33d35a0b3506df6f7b7e469383b794