[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#b1cc2963e8346ba1f5afb1edb86dbcf3f9ef0c5f for pr-76104 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFeiyang1%2Faoc_2019" "/workspace/builds/worker-2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Feiyang1/aoc_2019 on toolchain b1cc2963e8346ba1f5afb1edb86dbcf3f9ef0c5f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+b1cc2963e8346ba1f5afb1edb86dbcf3f9ef0c5f" "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-2/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" "+b1cc2963e8346ba1f5afb1edb86dbcf3f9ef0c5f" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "+b1cc2963e8346ba1f5afb1edb86dbcf3f9ef0c5f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 109a862fe085ca124681ace26aff3b1cd57e9e34317731af058259a82683141a [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" "109a862fe085ca124681ace26aff3b1cd57e9e34317731af058259a82683141a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "109a862fe085ca124681ace26aff3b1cd57e9e34317731af058259a82683141a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "109a862fe085ca124681ace26aff3b1cd57e9e34317731af058259a82683141a", kill_on_drop: false }` [INFO] [stdout] 109a862fe085ca124681ace26aff3b1cd57e9e34317731af058259a82683141a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "+b1cc2963e8346ba1f5afb1edb86dbcf3f9ef0c5f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] b825c0bf79bc0510f3366b0b2b2f17956a3ebba84994d86bbd277074697297ab [INFO] running `Command { std: "docker" "start" "-a" "b825c0bf79bc0510f3366b0b2b2f17956a3ebba84994d86bbd277074697297ab", kill_on_drop: false }` [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: 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 `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/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 `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: 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: 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: 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: 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: 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: 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: `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: 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] error: 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: `#[deny(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/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: 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] error: 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: `#[deny(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/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/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/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: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: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: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: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: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/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: 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] error: aborting due to previous error; 65 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `aoc` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to previous error; 65 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "b825c0bf79bc0510f3366b0b2b2f17956a3ebba84994d86bbd277074697297ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b825c0bf79bc0510f3366b0b2b2f17956a3ebba84994d86bbd277074697297ab", kill_on_drop: false }` [INFO] [stdout] b825c0bf79bc0510f3366b0b2b2f17956a3ebba84994d86bbd277074697297ab