[INFO] cloning repository https://github.com/reiterative/aoc2020 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/reiterative/aoc2020" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Freiterative%2Faoc2020", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Freiterative%2Faoc2020'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 76c7f87691d32877c0296b3b9bcb2fc1111bd2d3 [INFO] checking reiterative/aoc2020 against master#39b841dfe36f90a7cd111e7f0c55f32594f6e578 for pr-77035 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Freiterative%2Faoc2020" "/workspace/builds/worker-8/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/reiterative/aoc2020 on toolchain 39b841dfe36f90a7cd111e7f0c55f32594f6e578 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+39b841dfe36f90a7cd111e7f0c55f32594f6e578" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/reiterative/aoc2020 [INFO] finished tweaking git repo https://github.com/reiterative/aoc2020 [INFO] tweaked toml for git repo https://github.com/reiterative/aoc2020 written to /workspace/builds/worker-8/source/Cargo.toml [INFO] crate git repo https://github.com/reiterative/aoc2020 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+39b841dfe36f90a7cd111e7f0c55f32594f6e578" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+39b841dfe36f90a7cd111e7f0c55f32594f6e578" "metadata" "--no-deps" "--format-version=1", 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] a4501b38f71f9d0422c0b0e3c39a426eda71c27e75e206df4eaaba5b1f8c809d [INFO] running `Command { std: "docker" "start" "-a" "a4501b38f71f9d0422c0b0e3c39a426eda71c27e75e206df4eaaba5b1f8c809d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a4501b38f71f9d0422c0b0e3c39a426eda71c27e75e206df4eaaba5b1f8c809d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a4501b38f71f9d0422c0b0e3c39a426eda71c27e75e206df4eaaba5b1f8c809d", kill_on_drop: false }` [INFO] [stdout] a4501b38f71f9d0422c0b0e3c39a426eda71c27e75e206df4eaaba5b1f8c809d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+39b841dfe36f90a7cd111e7f0c55f32594f6e578" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c5314f7b4248e5c4de04aed8982a81490890c985b63e73d3f7a4faddca5b52ad [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" "c5314f7b4248e5c4de04aed8982a81490890c985b63e73d3f7a4faddca5b52ad", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking regex-syntax v0.6.21 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Checking aho-corasick v0.7.15 [INFO] [stderr] Checking regex v1.4.2 [INFO] [stderr] Checking aoc2020 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `get_signed`, `get_unsigned` [INFO] [stdout] --> src/main.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::utils::{get_signed, get_strings, get_unsigned}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `min` [INFO] [stdout] --> src/main.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | use std::cmp::{max, min}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:38:20 [INFO] [stdout] | [INFO] [stdout] 38 | if (wait < earliest) { [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 `while` condition [INFO] [stdout] --> src/main.rs:415:11 [INFO] [stdout] | [INFO] [stdout] 415 | while (stable == false) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/main.rs:429:11 [INFO] [stdout] | [INFO] [stdout] 429 | while (stable == false) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/main.rs:712:15 [INFO] [stdout] | [INFO] [stdout] 712 | while (self.run) { [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `min` [INFO] [stdout] --> src/main.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | use std::cmp::{max, min}; [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/main.rs:38:20 [INFO] [stdout] | [INFO] [stdout] 38 | if (wait < earliest) { [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 `while` condition [INFO] [stdout] --> src/main.rs:415:11 [INFO] [stdout] | [INFO] [stdout] 415 | while (stable == false) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/main.rs:429:11 [INFO] [stdout] | [INFO] [stdout] 429 | while (stable == false) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/main.rs:712:15 [INFO] [stdout] | [INFO] [stdout] 712 | while (self.run) { [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/main.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | let mut result: u64 = 0; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `searching` [INFO] [stdout] --> src/main.rs:562:9 [INFO] [stdout] | [INFO] [stdout] 562 | let mut searching = true; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_searching` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `min` [INFO] [stdout] --> src/main.rs:591:9 [INFO] [stdout] | [INFO] [stdout] 591 | let mut min: u64 = 0; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_min` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num` [INFO] [stdout] --> src/main.rs:828:14 [INFO] [stdout] | [INFO] [stdout] 828 | for (num, name) in r { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bagset` [INFO] [stdout] --> src/main.rs:880:9 [INFO] [stdout] | [INFO] [stdout] 880 | let mut bagset: HashSet = HashSet::new(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bagset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/main.rs:737:23 [INFO] [stdout] | [INFO] [stdout] 737 | fn nop(&mut self, val: i32) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | let mut result: u64 = 0; [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: `result` [INFO] [stdout] --> src/main.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | let mut result: u64 = 0; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `searching` [INFO] [stdout] --> src/main.rs:562:9 [INFO] [stdout] | [INFO] [stdout] 562 | let mut searching = true; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_searching` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `min` [INFO] [stdout] --> src/main.rs:591:9 [INFO] [stdout] | [INFO] [stdout] 591 | let mut min: u64 = 0; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_min` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num` [INFO] [stdout] --> src/main.rs:828:14 [INFO] [stdout] | [INFO] [stdout] 828 | for (num, name) in r { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bagset` [INFO] [stdout] --> src/main.rs:880:9 [INFO] [stdout] | [INFO] [stdout] 880 | let mut bagset: HashSet = HashSet::new(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bagset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/main.rs:737:23 [INFO] [stdout] | [INFO] [stdout] 737 | fn nop(&mut self, val: i32) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `adaptors` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/main.rs:486:9 [INFO] [stdout] | [INFO] [stdout] 485 | if let Some(high) = adaptors.last() { [INFO] [stdout] | -------- immutable borrow occurs here [INFO] [stdout] 486 | adaptors.push(*high + 3); [INFO] [stdout] | ^^^^^^^^ ----- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs 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/main.rs:562:9 [INFO] [stdout] | [INFO] [stdout] 562 | let mut searching = true; [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/main.rs:591:9 [INFO] [stdout] | [INFO] [stdout] 591 | let mut min: u64 = 0; [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/main.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | let mut result: u64 = 0; [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: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/main.rs:724:38 [INFO] [stdout] | [INFO] [stdout] 721 | if let Some(i) = self.code.get(self.pc as usize) { [INFO] [stdout] | --------- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 724 | VmOp::Acc => self.acc(i.val), [INFO] [stdout] | ^^^^ ----- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [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: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/main.rs:723:38 [INFO] [stdout] | [INFO] [stdout] 721 | if let Some(i) = self.code.get(self.pc as usize) { [INFO] [stdout] | --------- immutable borrow occurs here [INFO] [stdout] 722 | match i.op { [INFO] [stdout] 723 | VmOp::Nop => self.nop(i.val), [INFO] [stdout] | ^^^^ ----- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [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: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/main.rs:725:38 [INFO] [stdout] | [INFO] [stdout] 721 | if let Some(i) = self.code.get(self.pc as usize) { [INFO] [stdout] | --------- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 725 | VmOp::Jmp => self.jmp(i.val), [INFO] [stdout] | ^^^^ ----- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [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/main.rs:788:9 [INFO] [stdout] | [INFO] [stdout] 788 | for mut it in vm.code { [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/main.rs:879:9 [INFO] [stdout] | [INFO] [stdout] 879 | let mut rules: HashMap> = get_bag_rules(strings); [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/main.rs:880:9 [INFO] [stdout] | [INFO] [stdout] 880 | let mut bagset: HashSet = HashSet::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/main.rs:886:9 [INFO] [stdout] | [INFO] [stdout] 886 | let mut rules: HashMap> = get_bag_rules(strings); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `adaptors` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/main.rs:486:9 [INFO] [stdout] | [INFO] [stdout] 485 | if let Some(high) = adaptors.last() { [INFO] [stdout] | -------- immutable borrow occurs here [INFO] [stdout] 486 | adaptors.push(*high + 3); [INFO] [stdout] | ^^^^^^^^ ----- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs 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/main.rs:562:9 [INFO] [stdout] | [INFO] [stdout] 562 | let mut searching = true; [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/main.rs:591:9 [INFO] [stdout] | [INFO] [stdout] 591 | let mut min: u64 = 0; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/main.rs:724:38 [INFO] [stdout] | [INFO] [stdout] 721 | if let Some(i) = self.code.get(self.pc as usize) { [INFO] [stdout] | --------- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 724 | VmOp::Acc => self.acc(i.val), [INFO] [stdout] | ^^^^ ----- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [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: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/main.rs:723:38 [INFO] [stdout] | [INFO] [stdout] 721 | if let Some(i) = self.code.get(self.pc as usize) { [INFO] [stdout] | --------- immutable borrow occurs here [INFO] [stdout] 722 | match i.op { [INFO] [stdout] 723 | VmOp::Nop => self.nop(i.val), [INFO] [stdout] | ^^^^ ----- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [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: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/main.rs:725:38 [INFO] [stdout] | [INFO] [stdout] 721 | if let Some(i) = self.code.get(self.pc as usize) { [INFO] [stdout] | --------- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 725 | VmOp::Jmp => self.jmp(i.val), [INFO] [stdout] | ^^^^ ----- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [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/main.rs:788:9 [INFO] [stdout] | [INFO] [stdout] 788 | for mut it in vm.code { [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_signed` [INFO] [stdout] --> src/utils.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn get_signed(filename: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_unsigned` [INFO] [stdout] --> src/utils.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn get_unsigned(filename: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_unsigned` [INFO] [stdout] --> src/utils.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn read_unsigned(lines: io::Lines>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_signed` [INFO] [stdout] --> src/utils.rs:42:4 [INFO] [stdout] | [INFO] [stdout] 42 | fn read_signed(lines: io::Lines>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `NORTH` [INFO] [stdout] --> src/main.rs:105:1 [INFO] [stdout] | [INFO] [stdout] 105 | const NORTH: u16 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `EAST` [INFO] [stdout] --> src/main.rs:106:1 [INFO] [stdout] | [INFO] [stdout] 106 | const EAST: u16 = 90; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SOUTH` [INFO] [stdout] --> src/main.rs:107:1 [INFO] [stdout] | [INFO] [stdout] 107 | const SOUTH: u16 = 180; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `WEST` [INFO] [stdout] --> src/main.rs:108:1 [INFO] [stdout] | [INFO] [stdout] 108 | const WEST: u16 = 270; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Waypoint` [INFO] [stdout] --> src/main.rs:110:8 [INFO] [stdout] | [INFO] [stdout] 110 | struct Waypoint { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `north` [INFO] [stdout] --> src/main.rs:117:8 [INFO] [stdout] | [INFO] [stdout] 117 | fn north(&mut self, value: u16) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `south` [INFO] [stdout] --> src/main.rs:120:8 [INFO] [stdout] | [INFO] [stdout] 120 | fn south(&mut self, value: u16) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `east` [INFO] [stdout] --> src/main.rs:123:8 [INFO] [stdout] | [INFO] [stdout] 123 | fn east(&mut self, value: u16) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `west` [INFO] [stdout] --> src/main.rs:126:8 [INFO] [stdout] | [INFO] [stdout] 126 | fn west(&mut self, value: u16) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `left` [INFO] [stdout] --> src/main.rs:129:8 [INFO] [stdout] | [INFO] [stdout] 129 | fn left(&mut self, value: u16) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `right` [INFO] [stdout] --> src/main.rs:138:8 [INFO] [stdout] | [INFO] [stdout] 138 | fn right(&mut self, value: u16) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `forward` [INFO] [stdout] --> src/main.rs:147:8 [INFO] [stdout] | [INFO] [stdout] 147 | fn forward(&mut self, value: u16) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `manhattan` [INFO] [stdout] --> src/main.rs:153:8 [INFO] [stdout] | [INFO] [stdout] 153 | fn manhattan(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `north` [INFO] [stdout] --> src/main.rs:170:8 [INFO] [stdout] | [INFO] [stdout] 170 | fn north(&mut self, value: u16) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `south` [INFO] [stdout] --> src/main.rs:173:8 [INFO] [stdout] | [INFO] [stdout] 173 | fn south(&mut self, value: u16) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `east` [INFO] [stdout] --> src/main.rs:176:8 [INFO] [stdout] | [INFO] [stdout] 176 | fn east(&mut self, value: u16) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `west` [INFO] [stdout] --> src/main.rs:179:8 [INFO] [stdout] | [INFO] [stdout] 179 | fn west(&mut self, value: u16) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `left` [INFO] [stdout] --> src/main.rs:182:8 [INFO] [stdout] | [INFO] [stdout] 182 | fn left(&mut self, value: u16) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `right` [INFO] [stdout] --> src/main.rs:190:8 [INFO] [stdout] | [INFO] [stdout] 190 | fn right(&mut self, value: u16) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `forward` [INFO] [stdout] --> src/main.rs:196:8 [INFO] [stdout] | [INFO] [stdout] 196 | fn forward(&mut self, value: u16) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `manhattan` [INFO] [stdout] --> src/main.rs:205:8 [INFO] [stdout] | [INFO] [stdout] 205 | fn manhattan(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day12_1` [INFO] [stdout] --> src/main.rs:211:4 [INFO] [stdout] | [INFO] [stdout] 211 | fn day12_1(strings: &Vec) -> u64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day12_2` [INFO] [stdout] --> src/main.rs:236:4 [INFO] [stdout] | [INFO] [stdout] 236 | fn day12_2(strings: &Vec) -> u64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/main.rs:296:8 [INFO] [stdout] | [INFO] [stdout] 296 | fn new(strings: &Vec) -> SeatMap { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `count_occupied` [INFO] [stdout] --> src/main.rs:318:8 [INFO] [stdout] | [INFO] [stdout] 318 | fn count_occupied(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `seat_passengers` [INFO] [stdout] --> src/main.rs:328:8 [INFO] [stdout] | [INFO] [stdout] 328 | fn seat_passengers(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `COORDS` [INFO] [stdout] --> src/main.rs:351:5 [INFO] [stdout] | [INFO] [stdout] 351 | / const COORDS: [(i16, i16); 8] = [ [INFO] [stdout] 352 | | (-1, 0), [INFO] [stdout] 353 | | (-1, 1), [INFO] [stdout] 354 | | (-1, -1), [INFO] [stdout] ... | [INFO] [stdout] 359 | | (1, -1), [INFO] [stdout] 360 | | ]; [INFO] [stdout] | |______^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `check_seats` [INFO] [stdout] --> src/main.rs:362:8 [INFO] [stdout] | [INFO] [stdout] 362 | fn check_seats(&self, row: u8, col: u8) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `print` [INFO] [stdout] --> src/main.rs:398:8 [INFO] [stdout] | [INFO] [stdout] 398 | fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day11_1` [INFO] [stdout] --> src/main.rs:411:4 [INFO] [stdout] | [INFO] [stdout] 411 | fn day11_1(strings: &Vec) -> u64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day11_2` [INFO] [stdout] --> src/main.rs:422:4 [INFO] [stdout] | [INFO] [stdout] 422 | fn day11_2(strings: &Vec) -> u64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day10_1` [INFO] [stdout] --> src/main.rs:459:4 [INFO] [stdout] | [INFO] [stdout] 459 | fn day10_1(numbers: &Vec) -> u64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day10_2` [INFO] [stdout] --> src/main.rs:481:4 [INFO] [stdout] | [INFO] [stdout] 481 | fn day10_2(numbers: &Vec) -> u64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `trib` [INFO] [stdout] --> src/main.rs:508:4 [INFO] [stdout] | [INFO] [stdout] 508 | fn trib(max: u32) -> Vec { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day9_1` [INFO] [stdout] --> src/main.rs:543:4 [INFO] [stdout] | [INFO] [stdout] 543 | fn day9_1(preamble: u16, numbers: &Vec) -> u64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day9_2` [INFO] [stdout] --> src/main.rs:561:4 [INFO] [stdout] | [INFO] [stdout] 561 | fn day9_2(invalid: u64, numbers: &Vec) -> u64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `max_range` [INFO] [stdout] --> src/main.rs:580:4 [INFO] [stdout] | [INFO] [stdout] 580 | fn max_range(range: Option<&[u64]>) -> u64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `min_range` [INFO] [stdout] --> src/main.rs:590:4 [INFO] [stdout] | [INFO] [stdout] 590 | fn min_range(range: Option<&[u64]>) -> u64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sum_range` [INFO] [stdout] --> src/main.rs:601:4 [INFO] [stdout] | [INFO] [stdout] 601 | fn sum_range(range: Option<&[u64]>) -> u64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `checksum` [INFO] [stdout] --> src/main.rs:611:4 [INFO] [stdout] | [INFO] [stdout] 611 | fn checksum(target: u64, buffer: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Invalid` [INFO] [stdout] --> src/main.rs:643:5 [INFO] [stdout] | [INFO] [stdout] 643 | Invalid, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Nop` [INFO] [stdout] --> src/main.rs:644:5 [INFO] [stdout] | [INFO] [stdout] 644 | Nop, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Acc` [INFO] [stdout] --> src/main.rs:645:5 [INFO] [stdout] | [INFO] [stdout] 645 | Acc, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Jmp` [INFO] [stdout] --> src/main.rs:646:5 [INFO] [stdout] | [INFO] [stdout] 646 | Jmp, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/main.rs:666:8 [INFO] [stdout] | [INFO] [stdout] 666 | fn new(strings: &Vec, debug: bool) -> VirtualMachine { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `run_to_repeat` [INFO] [stdout] --> src/main.rs:707:8 [INFO] [stdout] | [INFO] [stdout] 707 | fn run_to_repeat(&mut self) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `nop` [INFO] [stdout] --> src/main.rs:737:8 [INFO] [stdout] | [INFO] [stdout] 737 | fn nop(&mut self, val: i32) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `acc` [INFO] [stdout] --> src/main.rs:742:8 [INFO] [stdout] | [INFO] [stdout] 742 | fn acc(&mut self, val: i32) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `jmp` [INFO] [stdout] --> src/main.rs:747:8 [INFO] [stdout] | [INFO] [stdout] 747 | fn jmp(&mut self, val: i32) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `err` [INFO] [stdout] --> src/main.rs:757:8 [INFO] [stdout] | [INFO] [stdout] 757 | fn err(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `normal_exit` [INFO] [stdout] --> src/main.rs:762:8 [INFO] [stdout] | [INFO] [stdout] 762 | fn normal_exit(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `switch` [INFO] [stdout] --> src/main.rs:766:8 [INFO] [stdout] | [INFO] [stdout] 766 | fn switch(&mut self, i: usize) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day8_1` [INFO] [stdout] --> src/main.rs:779:4 [INFO] [stdout] | [INFO] [stdout] 779 | fn day8_1(strings: &Vec) -> i64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day8_2` [INFO] [stdout] --> src/main.rs:783:4 [INFO] [stdout] | [INFO] [stdout] 783 | fn day8_2(strings: &Vec) -> i64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `bag` [INFO] [stdout] --> src/main.rs:821:5 [INFO] [stdout] | [INFO] [stdout] 821 | bag: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `contents` [INFO] [stdout] --> src/main.rs:822:5 [INFO] [stdout] | [INFO] [stdout] 822 | contents: Vec<(u8, String)>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_outer_bags` [INFO] [stdout] --> src/main.rs:825:4 [INFO] [stdout] | [INFO] [stdout] 825 | fn get_outer_bags<'a>(target: &str, rules: &'a HashMap>) -> Vec<&'a str> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_inner_bags` [INFO] [stdout] --> src/main.rs:837:4 [INFO] [stdout] | [INFO] [stdout] 837 | fn get_inner_bags<'a>(target: &str, rules: &'a HashMap>) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_bag_rules` [INFO] [stdout] --> src/main.rs:854:4 [INFO] [stdout] | [INFO] [stdout] 854 | fn get_bag_rules(strings: &Vec) -> HashMap> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day7_2` [INFO] [stdout] --> src/main.rs:878:4 [INFO] [stdout] | [INFO] [stdout] 878 | fn day7_2(strings: &Vec) -> u64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day7_1` [INFO] [stdout] --> src/main.rs:885:4 [INFO] [stdout] | [INFO] [stdout] 885 | fn day7_1(strings: &Vec) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `AnswerGroup` [INFO] [stdout] --> src/main.rs:937:8 [INFO] [stdout] | [INFO] [stdout] 937 | struct AnswerGroup { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/main.rs:943:8 [INFO] [stdout] | [INFO] [stdout] 943 | fn new() -> AnswerGroup { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_answer_groups` [INFO] [stdout] --> src/main.rs:949:4 [INFO] [stdout] | [INFO] [stdout] 949 | fn get_answer_groups(strings: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day6_1` [INFO] [stdout] --> src/main.rs:975:4 [INFO] [stdout] | [INFO] [stdout] 975 | fn day6_1(strings: &Vec) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day6_2` [INFO] [stdout] --> src/main.rs:994:4 [INFO] [stdout] | [INFO] [stdout] 994 | fn day6_2(strings: &Vec) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day5_1` [INFO] [stdout] --> src/main.rs:1024:4 [INFO] [stdout] | [INFO] [stdout] 1024 | fn day5_1(strings: &Vec) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day5_2` [INFO] [stdout] --> src/main.rs:1033:4 [INFO] [stdout] | [INFO] [stdout] 1033 | fn day5_2(strings: &Vec) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_seats` [INFO] [stdout] --> src/main.rs:1049:4 [INFO] [stdout] | [INFO] [stdout] 1049 | fn get_seats(strings: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `lower` [INFO] [stdout] --> src/main.rs:1071:4 [INFO] [stdout] | [INFO] [stdout] 1071 | fn lower(range: (u16, u16, u16)) -> (u16, u16, u16) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `upper` [INFO] [stdout] --> src/main.rs:1075:4 [INFO] [stdout] | [INFO] [stdout] 1075 | fn upper(range: (u16, u16, u16)) -> (u16, u16, u16) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `PassportEntry` [INFO] [stdout] --> src/main.rs:1102:8 [INFO] [stdout] | [INFO] [stdout] 1102 | struct PassportEntry { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `required_fields` [INFO] [stdout] --> src/main.rs:1107:8 [INFO] [stdout] | [INFO] [stdout] 1107 | fn required_fields() -> Vec<(&'static str, bool)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `check_fields` [INFO] [stdout] --> src/main.rs:1121:8 [INFO] [stdout] | [INFO] [stdout] 1121 | fn check_fields(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `validate_fields` [INFO] [stdout] --> src/main.rs:1133:8 [INFO] [stdout] | [INFO] [stdout] 1133 | fn validate_fields(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `check_byr` [INFO] [stdout] --> src/main.rs:1144:8 [INFO] [stdout] | [INFO] [stdout] 1144 | fn check_byr(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `check_iyr` [INFO] [stdout] --> src/main.rs:1148:8 [INFO] [stdout] | [INFO] [stdout] 1148 | fn check_iyr(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `check_eyr` [INFO] [stdout] --> src/main.rs:1152:8 [INFO] [stdout] | [INFO] [stdout] 1152 | fn check_eyr(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `check_year_range` [INFO] [stdout] --> src/main.rs:1156:8 [INFO] [stdout] | [INFO] [stdout] 1156 | fn check_year_range(&self, field: &str, min: u64, max: u64) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `check_hgt` [INFO] [stdout] --> src/main.rs:1169:8 [INFO] [stdout] | [INFO] [stdout] 1169 | fn check_hgt(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `check_hcl` [INFO] [stdout] --> src/main.rs:1198:8 [INFO] [stdout] | [INFO] [stdout] 1198 | fn check_hcl(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `check_ecl` [INFO] [stdout] --> src/main.rs:1218:8 [INFO] [stdout] | [INFO] [stdout] 1218 | fn check_ecl(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `check_pid` [INFO] [stdout] --> src/main.rs:1235:8 [INFO] [stdout] | [INFO] [stdout] 1235 | fn check_pid(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `check_num_range` [INFO] [stdout] --> src/main.rs:1244:4 [INFO] [stdout] | [INFO] [stdout] 1244 | fn check_num_range(value: &str, min: u64, max: u64) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `check_num` [INFO] [stdout] --> src/main.rs:1253:4 [INFO] [stdout] | [INFO] [stdout] 1253 | fn check_num(value: &str, required_len: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_passports` [INFO] [stdout] --> src/main.rs:1265:4 [INFO] [stdout] | [INFO] [stdout] 1265 | fn read_passports(strings: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day4_1` [INFO] [stdout] --> src/main.rs:1287:4 [INFO] [stdout] | [INFO] [stdout] 1287 | fn day4_1(strings: &Vec) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day4_2` [INFO] [stdout] --> src/main.rs:1299:4 [INFO] [stdout] | [INFO] [stdout] 1299 | fn day4_2(strings: &Vec) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day3_rules` [INFO] [stdout] --> src/main.rs:1327:4 [INFO] [stdout] | [INFO] [stdout] 1327 | fn day3_rules() -> Vec<(i32, i32)> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day3_2` [INFO] [stdout] --> src/main.rs:1338:4 [INFO] [stdout] | [INFO] [stdout] 1338 | fn day3_2(strings: &Vec, rules: &Vec<(i32, i32)>) -> u64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day3_1` [INFO] [stdout] --> src/main.rs:1365:4 [INFO] [stdout] | [INFO] [stdout] 1365 | fn day3_1(strings: &Vec) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `TREE` [INFO] [stdout] --> src/main.rs:1382:1 [INFO] [stdout] | [INFO] [stdout] 1382 | static TREE: &'static str = "#"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `check_for_trees` [INFO] [stdout] --> src/main.rs:1383:4 [INFO] [stdout] | [INFO] [stdout] 1383 | fn check_for_trees(xpos: &i32, map: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day2_1` [INFO] [stdout] --> src/main.rs:1408:4 [INFO] [stdout] | [INFO] [stdout] 1408 | fn day2_1(strings: &Vec) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day2_2` [INFO] [stdout] --> src/main.rs:1429:4 [INFO] [stdout] | [INFO] [stdout] 1429 | fn day2_2(strings: &Vec) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day1_1` [INFO] [stdout] --> src/main.rs:1472:4 [INFO] [stdout] | [INFO] [stdout] 1472 | fn day1_1(numbers: Vec) -> u64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day1_2` [INFO] [stdout] --> src/main.rs:1486:4 [INFO] [stdout] | [INFO] [stdout] 1486 | fn day1_2(numbers: Vec) -> u64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:879:9 [INFO] [stdout] | [INFO] [stdout] 879 | let mut rules: HashMap> = get_bag_rules(strings); [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/main.rs:880:9 [INFO] [stdout] | [INFO] [stdout] 880 | let mut bagset: HashSet = HashSet::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/main.rs:886:9 [INFO] [stdout] | [INFO] [stdout] 886 | let mut rules: HashMap> = get_bag_rules(strings); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 124 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `TEST_FILE_R1` [INFO] [stdout] --> src/main.rs:270:5 [INFO] [stdout] | [INFO] [stdout] 270 | static TEST_FILE_R1: &str = "./test/test11_r1"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `TEST_FILE_R2` [INFO] [stdout] --> src/main.rs:271:5 [INFO] [stdout] | [INFO] [stdout] 271 | static TEST_FILE_R2: &str = "./test/test11_r2"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `TEST_FILE_R3` [INFO] [stdout] --> src/main.rs:272:5 [INFO] [stdout] | [INFO] [stdout] 272 | static TEST_FILE_R3: &str = "./test/test11_r3"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `print` [INFO] [stdout] --> src/main.rs:398:8 [INFO] [stdout] | [INFO] [stdout] 398 | fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `bag` [INFO] [stdout] --> src/main.rs:821:5 [INFO] [stdout] | [INFO] [stdout] 821 | bag: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `contents` [INFO] [stdout] --> src/main.rs:822:5 [INFO] [stdout] | [INFO] [stdout] 822 | contents: Vec<(u8, String)>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day5_2` [INFO] [stdout] --> src/main.rs:1033:4 [INFO] [stdout] | [INFO] [stdout] 1033 | fn day5_2(strings: &Vec) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 7.19s [INFO] running `Command { std: "docker" "inspect" "c5314f7b4248e5c4de04aed8982a81490890c985b63e73d3f7a4faddca5b52ad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c5314f7b4248e5c4de04aed8982a81490890c985b63e73d3f7a4faddca5b52ad", kill_on_drop: false }` [INFO] [stdout] c5314f7b4248e5c4de04aed8982a81490890c985b63e73d3f7a4faddca5b52ad