[INFO] cloning repository https://github.com/Rnd-Guy/Advent-of-code-2022 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Rnd-Guy/Advent-of-code-2022" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRnd-Guy%2FAdvent-of-code-2022", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRnd-Guy%2FAdvent-of-code-2022'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6e0fb286a3a38cf0ff909159c14d710204b30e03 [INFO] building Rnd-Guy/Advent-of-code-2022 against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRnd-Guy%2FAdvent-of-code-2022" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Rnd-Guy/Advent-of-code-2022 on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Rnd-Guy/Advent-of-code-2022 [INFO] finished tweaking git repo https://github.com/Rnd-Guy/Advent-of-code-2022 [INFO] tweaked toml for git repo https://github.com/Rnd-Guy/Advent-of-code-2022 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Rnd-Guy/Advent-of-code-2022 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c596c6a7fee842411dedb3513f954ca113cff66143b6f9511ba53766e4296e38 [INFO] running `Command { std: "docker" "start" "-a" "c596c6a7fee842411dedb3513f954ca113cff66143b6f9511ba53766e4296e38", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c596c6a7fee842411dedb3513f954ca113cff66143b6f9511ba53766e4296e38", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c596c6a7fee842411dedb3513f954ca113cff66143b6f9511ba53766e4296e38", kill_on_drop: false }` [INFO] [stdout] c596c6a7fee842411dedb3513f954ca113cff66143b6f9511ba53766e4296e38 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bc7152baa962feda3ff1c1e7ccb80c43654104813d2fcc599209ab743ea3f705 [INFO] running `Command { std: "docker" "start" "-a" "bc7152baa962feda3ff1c1e7ccb80c43654104813d2fcc599209ab743ea3f705", kill_on_drop: false }` [INFO] [stderr] Compiling regex-syntax v0.6.28 [INFO] [stderr] Compiling aho-corasick v0.7.20 [INFO] [stderr] Compiling regex v1.7.0 [INFO] [stderr] Compiling adventofcode-2022 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::num` [INFO] [stdout] --> src/day11.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::num; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::current` [INFO] [stdout] --> src/day12.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::thread::current; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/day21.rs:214:90 [INFO] [stdout] | [INFO] [stdout] 214 | let initial_val = if root.monkey1_partial {root.monkey1_val} else {root.monkey2_val};; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around `if` condition [INFO] [stdout] --> src/day21.rs:330:16 [INFO] [stdout] | [INFO] [stdout] 330 | let v = if {m1_p} {m1_v} else if {m2_p} {m2_v} else {panic!("ahh")}; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_braces)]` on by default [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 330 - let v = if {m1_p} {m1_v} else if {m2_p} {m2_v} else {panic!("ahh")}; [INFO] [stdout] 330 + let v = if m1_p {m1_v} else if {m2_p} {m2_v} else {panic!("ahh")}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around `if` condition [INFO] [stdout] --> src/day21.rs:330:38 [INFO] [stdout] | [INFO] [stdout] 330 | let v = if {m1_p} {m1_v} else if {m2_p} {m2_v} else {panic!("ahh")}; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 330 - let v = if {m1_p} {m1_v} else if {m2_p} {m2_v} else {panic!("ahh")}; [INFO] [stdout] 330 + let v = if {m1_p} {m1_v} else if m2_p {m2_v} else {panic!("ahh")}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `thread` and `time` [INFO] [stdout] --> src/day22.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use std::{thread, time}; [INFO] [stdout] | ^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate-level attribute should be in the root module [INFO] [stdout] --> src/day15.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(mixed_integer_ops)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/day11.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 114 | for i in 0..rounds { [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/day11.rs:223:9 [INFO] [stdout] | [INFO] [stdout] 223 | for i in 0..rounds { [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/day14.rs:65:21 [INFO] [stdout] | [INFO] [stdout] 65 | for i in max_x..x { [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/day14.rs:81:21 [INFO] [stdout] | [INFO] [stdout] 81 | for i in max_y..y { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day14.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let mut max_y = 200; [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/day14.rs:182:21 [INFO] [stdout] | [INFO] [stdout] 182 | for i in max_x..x { [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/day14.rs:198:21 [INFO] [stdout] | [INFO] [stdout] 198 | for i in max_y..y { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day14.rs:162:9 [INFO] [stdout] | [INFO] [stdout] 162 | let mut max_y = 200; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `all_true` is assigned to, but never used [INFO] [stdout] --> src/day17.rs:102:17 [INFO] [stdout] | [INFO] [stdout] 102 | let mut all_true = true; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_all_true` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `all_true` is never read [INFO] [stdout] --> src/day17.rs:108:17 [INFO] [stdout] | [INFO] [stdout] 108 | all_true = false; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `all_true` is assigned to, but never used [INFO] [stdout] --> src/day17.rs:127:17 [INFO] [stdout] | [INFO] [stdout] 127 | let mut all_true = true; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_all_true` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `all_true` is never read [INFO] [stdout] --> src/day17.rs:133:17 [INFO] [stdout] | [INFO] [stdout] 133 | all_true = false; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target_shapes` [INFO] [stdout] --> src/day17.rs:305:9 [INFO] [stdout] | [INFO] [stdout] 305 | let target_shapes: u64 = cycle_len * 50; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_target_shapes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `check` is never read [INFO] [stdout] --> src/day20.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | check = check % len as i32; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item2` [INFO] [stdout] --> src/day20.rs:73:13 [INFO] [stdout] | [INFO] [stdout] 73 | let item2 = numbers.iter().enumerate().find(|en| en.1.1 == i).unwrap(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_item2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/day20.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | for j in 0..10 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `check` is never read [INFO] [stdout] --> src/day20.rs:141:13 [INFO] [stdout] | [INFO] [stdout] 141 | check = check % len as i64; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item2` [INFO] [stdout] --> src/day20.rs:148:17 [INFO] [stdout] | [INFO] [stdout] 148 | let item2 = numbers.iter().enumerate().find(|en| en.1.1 == i).unwrap(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_item2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> src/day21.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | let len = parsed_line[0].len(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> src/day21.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 128 | let len = parsed_line[0].len(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `special` [INFO] [stdout] --> src/day21.rs:160:21 [INFO] [stdout] | [INFO] [stdout] 160 | let mut special = false; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_special` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m2` [INFO] [stdout] --> src/day21.rs:171:17 [INFO] [stdout] | [INFO] [stdout] 171 | let m2 = get_monkey(&monkeys, monkeys[i].monkey2.to_string()); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_m2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m1` [INFO] [stdout] --> src/day21.rs:180:17 [INFO] [stdout] | [INFO] [stdout] 180 | let m1 = get_monkey(&monkeys, monkeys[i].monkey1.to_string()); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_m1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `special` [INFO] [stdout] --> src/day21.rs:240:21 [INFO] [stdout] | [INFO] [stdout] 240 | let mut special = false; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_special` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m2` [INFO] [stdout] --> src/day21.rs:252:17 [INFO] [stdout] | [INFO] [stdout] 252 | let m2 = get_monkey(&monkeys, monkeys[i].monkey2.to_string()); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_m2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m1` [INFO] [stdout] --> src/day21.rs:261:17 [INFO] [stdout] | [INFO] [stdout] 261 | let m1 = get_monkey(&monkeys, monkeys[i].monkey1.to_string()); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_m1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day21.rs:160:17 [INFO] [stdout] | [INFO] [stdout] 160 | let mut special = false; [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/day21.rs:240:17 [INFO] [stdout] | [INFO] [stdout] 240 | let mut special = false; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `increment_x` is never read [INFO] [stdout] --> src/day22.rs:375:13 [INFO] [stdout] | [INFO] [stdout] 375 | let mut increment_x = 0; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `increment_y` is never read [INFO] [stdout] --> src/day22.rs:376:13 [INFO] [stdout] | [INFO] [stdout] 376 | let mut increment_y = 0; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/day25.rs:109:13 [INFO] [stdout] | [INFO] [stdout] 109 | let line = line.unwrap(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Valve2` is never constructed [INFO] [stdout] --> src/day16.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | struct Valve2 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/day16.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 35 | impl Valve2 { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 36 | fn new(s: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `memoize_combinations2` is never used [INFO] [stdout] --> src/day16.rs:214:4 [INFO] [stdout] | [INFO] [stdout] 214 | fn memoize_combinations2(memos: &mut HashMap, valves: &Vec, my_valve: &Valve, e_valve: &Valve, valves_open: &Vec<... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `memoize_combinations2_no_loops_hash` is never used [INFO] [stdout] --> src/day16.rs:438:4 [INFO] [stdout] | [INFO] [stdout] 438 | fn memoize_combinations2_no_loops_hash(memos: &mut HashMap, valves: &Vec, my_valve: &Valve, e_valve: &Valve, valv... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `memoize_combinations2_hash` is never used [INFO] [stdout] --> src/day16.rs:552:4 [INFO] [stdout] | [INFO] [stdout] 552 | fn memoize_combinations2_hash(memos: &mut HashMap, valves: &Vec, my_valve: &Valve, e_valve: &Valve, valves_open: ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `memoize_combinations2_super_hash` is never used [INFO] [stdout] --> src/day16.rs:660:4 [INFO] [stdout] | [INFO] [stdout] 660 | fn memoize_combinations2_super_hash(memos: &mut HashMap, valves: &HashSet, my_valve: &Valve2, e_valve: &Valve2, ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `memoize_combinations2_super_hash2` is never used [INFO] [stdout] --> src/day16.rs:770:4 [INFO] [stdout] | [INFO] [stdout] 770 | fn memoize_combinations2_super_hash2(memos: &mut HashMap, valves: &HashSet, my_valve: &Valve2, e_valve: &Valve2,... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_memo2_hash` is never used [INFO] [stdout] --> src/day16.rs:986:4 [INFO] [stdout] | [INFO] [stdout] 986 | fn generate_memo2_hash(valves: &Vec, my_valve: &Valve, e_valve: &Valve, valves_open: &HashSet, time: u32) -> ValveMemo2 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_memo2_super_hash` is never used [INFO] [stdout] --> src/day16.rs:1015:4 [INFO] [stdout] | [INFO] [stdout] 1015 | fn generate_memo2_super_hash(valves: &HashSet, my_valve: &Valve2, e_valve: &Valve2, valves_open: &HashSet, time: u32) -> ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_line2` is never used [INFO] [stdout] --> src/day16.rs:1075:4 [INFO] [stdout] | [INFO] [stdout] 1075 | fn parse_line2(line: String, index: u32) -> Valve2 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part2_hash` is never used [INFO] [stdout] --> src/day16.rs:1140:4 [INFO] [stdout] | [INFO] [stdout] 1140 | fn part2_hash(day : &str) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_field` is never used [INFO] [stdout] --> src/day17.rs:97:4 [INFO] [stdout] | [INFO] [stdout] 97 | fn print_field(field: &Vec<[bool; 7]>) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_top_ten_field` is never used [INFO] [stdout] --> src/day17.rs:122:4 [INFO] [stdout] | [INFO] [stdout] 122 | fn print_top_ten_field(field: &Vec<[bool; 7]>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part2_attempt_1` is never used [INFO] [stdout] --> src/day18.rs:62:4 [INFO] [stdout] | [INFO] [stdout] 62 | fn part2_attempt_1(day : &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_if_escapable` is never used [INFO] [stdout] --> src/day18.rs:161:4 [INFO] [stdout] | [INFO] [stdout] 161 | fn check_if_escapable(grid: &[[[bool;50];50];50], x: usize, y: usize, z: usize, bounds: (usize,usize,usize,usize,usize,usize), checked: &... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_max_geodes` is never used [INFO] [stdout] --> src/day19.rs:115:4 [INFO] [stdout] | [INFO] [stdout] 115 | fn calculate_max_geodes(memos: &mut HashMap<(i32, Resource, Resource), i32>, blueprint: &Blueprint, time_elapsed: i32, current_resources:... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_map` is never used [INFO] [stdout] --> src/day22.rs:441:4 [INFO] [stdout] | [INFO] [stdout] 441 | fn print_map(map: &Vec>, me: &Me) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getDataSize` is never used [INFO] [stdout] --> src/day23.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn getDataSize(day: &str) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getDataSize` should have a snake case name [INFO] [stdout] --> src/day23.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn getDataSize(day: &str) { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `get_data_size` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `getRowSize` should have a snake case name [INFO] [stdout] --> src/day23.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | let mut getRowSize = false; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `get_row_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `lineCount` should have a snake case name [INFO] [stdout] --> src/day23.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | let mut lineCount = 0; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `line_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getDirection` should have a snake case name [INFO] [stdout] --> src/day23.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn getDirection(priority: u32, step: u32) -> Dir { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `get_direction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `nextStep` should have a snake case name [INFO] [stdout] --> src/day23.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let nextStep = (step+2+ priority) % 4; // prevent going below 0, and step begins at 1 [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `next_step` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proposedMap` should have a snake case name [INFO] [stdout] --> src/day23.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | let proposedMap = getProposedMap(&elves, step); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `proposed_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getBoundingBox` should have a snake case name [INFO] [stdout] --> src/day23.rs:70:4 [INFO] [stdout] | [INFO] [stdout] 70 | fn getBoundingBox(elves: &[[bool;200];200]) -> (usize,usize,usize,usize){ [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_bounding_box` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `updateMap` should have a snake case name [INFO] [stdout] --> src/day23.rs:91:4 [INFO] [stdout] | [INFO] [stdout] 91 | fn updateMap(elves: &[[bool;200];200], proposedMap: &[[u32;200];200], step: u32) -> ([[bool;200];200], bool) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `update_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proposedMap` should have a snake case name [INFO] [stdout] --> src/day23.rs:91:40 [INFO] [stdout] | [INFO] [stdout] 91 | fn updateMap(elves: &[[bool;200];200], proposedMap: &[[u32;200];200], step: u32) -> ([[bool;200];200], bool) { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `proposed_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newMap` should have a snake case name [INFO] [stdout] --> src/day23.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | let mut newMap = [[false;200];200]; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `new_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `printMap` should have a snake case name [INFO] [stdout] --> src/day23.rs:112:4 [INFO] [stdout] | [INFO] [stdout] 112 | fn printMap(elves: [[bool;200];200]) { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `print_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getProposedMap` should have a snake case name [INFO] [stdout] --> src/day23.rs:125:4 [INFO] [stdout] | [INFO] [stdout] 125 | fn getProposedMap(elves: &[[bool;200];200], step: u32) -> [[u32;200];200]{ [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_proposed_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proposedMap` should have a snake case name [INFO] [stdout] --> src/day23.rs:126:13 [INFO] [stdout] | [INFO] [stdout] 126 | let mut proposedMap = [[0;200];200]; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `proposed_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getProposedDirection` should have a snake case name [INFO] [stdout] --> src/day23.rs:138:4 [INFO] [stdout] | [INFO] [stdout] 138 | fn getProposedDirection(elves: &[[bool;200];200], x: usize, y: usize, step: u32) -> (usize,usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_proposed_direction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getInitialMap` should have a snake case name [INFO] [stdout] --> src/day23.rs:203:4 [INFO] [stdout] | [INFO] [stdout] 203 | fn getInitialMap(day: &str) -> [[bool;200];200] { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_initial_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `lineOffset` should have a snake case name [INFO] [stdout] --> src/day23.rs:205:9 [INFO] [stdout] | [INFO] [stdout] 205 | let lineOffset = 70; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `line_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `lineNumber` should have a snake case name [INFO] [stdout] --> src/day23.rs:206:13 [INFO] [stdout] | [INFO] [stdout] 206 | let mut lineNumber = 0; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `line_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proposedMap` should have a snake case name [INFO] [stdout] --> src/day23.rs:230:13 [INFO] [stdout] | [INFO] [stdout] 230 | let proposedMap = getProposedMap(&elves, step); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `proposed_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.68s [INFO] running `Command { std: "docker" "inspect" "bc7152baa962feda3ff1c1e7ccb80c43654104813d2fcc599209ab743ea3f705", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bc7152baa962feda3ff1c1e7ccb80c43654104813d2fcc599209ab743ea3f705", kill_on_drop: false }` [INFO] [stdout] bc7152baa962feda3ff1c1e7ccb80c43654104813d2fcc599209ab743ea3f705 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bb5a5b3246dec9a1b4d9d378ef755fc96629a5aed8e40ea104a23784115f02ec [INFO] running `Command { std: "docker" "start" "-a" "bb5a5b3246dec9a1b4d9d378ef755fc96629a5aed8e40ea104a23784115f02ec", kill_on_drop: false }` [INFO] [stderr] Compiling adventofcode-2022 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::num` [INFO] [stdout] --> src/day11.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::num; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::current` [INFO] [stdout] --> src/day12.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::thread::current; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/day21.rs:214:90 [INFO] [stdout] | [INFO] [stdout] 214 | let initial_val = if root.monkey1_partial {root.monkey1_val} else {root.monkey2_val};; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around `if` condition [INFO] [stdout] --> src/day21.rs:330:16 [INFO] [stdout] | [INFO] [stdout] 330 | let v = if {m1_p} {m1_v} else if {m2_p} {m2_v} else {panic!("ahh")}; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_braces)]` on by default [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 330 - let v = if {m1_p} {m1_v} else if {m2_p} {m2_v} else {panic!("ahh")}; [INFO] [stdout] 330 + let v = if m1_p {m1_v} else if {m2_p} {m2_v} else {panic!("ahh")}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around `if` condition [INFO] [stdout] --> src/day21.rs:330:38 [INFO] [stdout] | [INFO] [stdout] 330 | let v = if {m1_p} {m1_v} else if {m2_p} {m2_v} else {panic!("ahh")}; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 330 - let v = if {m1_p} {m1_v} else if {m2_p} {m2_v} else {panic!("ahh")}; [INFO] [stdout] 330 + let v = if {m1_p} {m1_v} else if m2_p {m2_v} else {panic!("ahh")}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `thread` and `time` [INFO] [stdout] --> src/day22.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use std::{thread, time}; [INFO] [stdout] | ^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate-level attribute should be in the root module [INFO] [stdout] --> src/day15.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(mixed_integer_ops)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/day11.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 114 | for i in 0..rounds { [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/day11.rs:223:9 [INFO] [stdout] | [INFO] [stdout] 223 | for i in 0..rounds { [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/day14.rs:65:21 [INFO] [stdout] | [INFO] [stdout] 65 | for i in max_x..x { [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/day14.rs:81:21 [INFO] [stdout] | [INFO] [stdout] 81 | for i in max_y..y { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day14.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let mut max_y = 200; [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/day14.rs:182:21 [INFO] [stdout] | [INFO] [stdout] 182 | for i in max_x..x { [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/day14.rs:198:21 [INFO] [stdout] | [INFO] [stdout] 198 | for i in max_y..y { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day14.rs:162:9 [INFO] [stdout] | [INFO] [stdout] 162 | let mut max_y = 200; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `all_true` is assigned to, but never used [INFO] [stdout] --> src/day17.rs:102:17 [INFO] [stdout] | [INFO] [stdout] 102 | let mut all_true = true; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_all_true` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `all_true` is never read [INFO] [stdout] --> src/day17.rs:108:17 [INFO] [stdout] | [INFO] [stdout] 108 | all_true = false; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `all_true` is assigned to, but never used [INFO] [stdout] --> src/day17.rs:127:17 [INFO] [stdout] | [INFO] [stdout] 127 | let mut all_true = true; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_all_true` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `all_true` is never read [INFO] [stdout] --> src/day17.rs:133:17 [INFO] [stdout] | [INFO] [stdout] 133 | all_true = false; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target_shapes` [INFO] [stdout] --> src/day17.rs:305:9 [INFO] [stdout] | [INFO] [stdout] 305 | let target_shapes: u64 = cycle_len * 50; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_target_shapes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `check` is never read [INFO] [stdout] --> src/day20.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | check = check % len as i32; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item2` [INFO] [stdout] --> src/day20.rs:73:13 [INFO] [stdout] | [INFO] [stdout] 73 | let item2 = numbers.iter().enumerate().find(|en| en.1.1 == i).unwrap(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_item2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/day20.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | for j in 0..10 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `check` is never read [INFO] [stdout] --> src/day20.rs:141:13 [INFO] [stdout] | [INFO] [stdout] 141 | check = check % len as i64; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item2` [INFO] [stdout] --> src/day20.rs:148:17 [INFO] [stdout] | [INFO] [stdout] 148 | let item2 = numbers.iter().enumerate().find(|en| en.1.1 == i).unwrap(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_item2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> src/day21.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | let len = parsed_line[0].len(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> src/day21.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 128 | let len = parsed_line[0].len(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `special` [INFO] [stdout] --> src/day21.rs:160:21 [INFO] [stdout] | [INFO] [stdout] 160 | let mut special = false; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_special` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m2` [INFO] [stdout] --> src/day21.rs:171:17 [INFO] [stdout] | [INFO] [stdout] 171 | let m2 = get_monkey(&monkeys, monkeys[i].monkey2.to_string()); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_m2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m1` [INFO] [stdout] --> src/day21.rs:180:17 [INFO] [stdout] | [INFO] [stdout] 180 | let m1 = get_monkey(&monkeys, monkeys[i].monkey1.to_string()); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_m1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `special` [INFO] [stdout] --> src/day21.rs:240:21 [INFO] [stdout] | [INFO] [stdout] 240 | let mut special = false; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_special` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m2` [INFO] [stdout] --> src/day21.rs:252:17 [INFO] [stdout] | [INFO] [stdout] 252 | let m2 = get_monkey(&monkeys, monkeys[i].monkey2.to_string()); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_m2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m1` [INFO] [stdout] --> src/day21.rs:261:17 [INFO] [stdout] | [INFO] [stdout] 261 | let m1 = get_monkey(&monkeys, monkeys[i].monkey1.to_string()); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_m1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day21.rs:160:17 [INFO] [stdout] | [INFO] [stdout] 160 | let mut special = false; [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/day21.rs:240:17 [INFO] [stdout] | [INFO] [stdout] 240 | let mut special = false; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `increment_x` is never read [INFO] [stdout] --> src/day22.rs:375:13 [INFO] [stdout] | [INFO] [stdout] 375 | let mut increment_x = 0; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `increment_y` is never read [INFO] [stdout] --> src/day22.rs:376:13 [INFO] [stdout] | [INFO] [stdout] 376 | let mut increment_y = 0; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/day25.rs:109:13 [INFO] [stdout] | [INFO] [stdout] 109 | let line = line.unwrap(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Valve2` is never constructed [INFO] [stdout] --> src/day16.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | struct Valve2 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/day16.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 35 | impl Valve2 { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 36 | fn new(s: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `memoize_combinations2` is never used [INFO] [stdout] --> src/day16.rs:214:4 [INFO] [stdout] | [INFO] [stdout] 214 | fn memoize_combinations2(memos: &mut HashMap, valves: &Vec, my_valve: &Valve, e_valve: &Valve, valves_open: &Vec<... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `memoize_combinations2_no_loops_hash` is never used [INFO] [stdout] --> src/day16.rs:438:4 [INFO] [stdout] | [INFO] [stdout] 438 | fn memoize_combinations2_no_loops_hash(memos: &mut HashMap, valves: &Vec, my_valve: &Valve, e_valve: &Valve, valv... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `memoize_combinations2_hash` is never used [INFO] [stdout] --> src/day16.rs:552:4 [INFO] [stdout] | [INFO] [stdout] 552 | fn memoize_combinations2_hash(memos: &mut HashMap, valves: &Vec, my_valve: &Valve, e_valve: &Valve, valves_open: ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `memoize_combinations2_super_hash` is never used [INFO] [stdout] --> src/day16.rs:660:4 [INFO] [stdout] | [INFO] [stdout] 660 | fn memoize_combinations2_super_hash(memos: &mut HashMap, valves: &HashSet, my_valve: &Valve2, e_valve: &Valve2, ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `memoize_combinations2_super_hash2` is never used [INFO] [stdout] --> src/day16.rs:770:4 [INFO] [stdout] | [INFO] [stdout] 770 | fn memoize_combinations2_super_hash2(memos: &mut HashMap, valves: &HashSet, my_valve: &Valve2, e_valve: &Valve2,... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_memo2_hash` is never used [INFO] [stdout] --> src/day16.rs:986:4 [INFO] [stdout] | [INFO] [stdout] 986 | fn generate_memo2_hash(valves: &Vec, my_valve: &Valve, e_valve: &Valve, valves_open: &HashSet, time: u32) -> ValveMemo2 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_memo2_super_hash` is never used [INFO] [stdout] --> src/day16.rs:1015:4 [INFO] [stdout] | [INFO] [stdout] 1015 | fn generate_memo2_super_hash(valves: &HashSet, my_valve: &Valve2, e_valve: &Valve2, valves_open: &HashSet, time: u32) -> ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_line2` is never used [INFO] [stdout] --> src/day16.rs:1075:4 [INFO] [stdout] | [INFO] [stdout] 1075 | fn parse_line2(line: String, index: u32) -> Valve2 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part2_hash` is never used [INFO] [stdout] --> src/day16.rs:1140:4 [INFO] [stdout] | [INFO] [stdout] 1140 | fn part2_hash(day : &str) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_field` is never used [INFO] [stdout] --> src/day17.rs:97:4 [INFO] [stdout] | [INFO] [stdout] 97 | fn print_field(field: &Vec<[bool; 7]>) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_top_ten_field` is never used [INFO] [stdout] --> src/day17.rs:122:4 [INFO] [stdout] | [INFO] [stdout] 122 | fn print_top_ten_field(field: &Vec<[bool; 7]>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part2_attempt_1` is never used [INFO] [stdout] --> src/day18.rs:62:4 [INFO] [stdout] | [INFO] [stdout] 62 | fn part2_attempt_1(day : &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_if_escapable` is never used [INFO] [stdout] --> src/day18.rs:161:4 [INFO] [stdout] | [INFO] [stdout] 161 | fn check_if_escapable(grid: &[[[bool;50];50];50], x: usize, y: usize, z: usize, bounds: (usize,usize,usize,usize,usize,usize), checked: &... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_max_geodes` is never used [INFO] [stdout] --> src/day19.rs:115:4 [INFO] [stdout] | [INFO] [stdout] 115 | fn calculate_max_geodes(memos: &mut HashMap<(i32, Resource, Resource), i32>, blueprint: &Blueprint, time_elapsed: i32, current_resources:... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_map` is never used [INFO] [stdout] --> src/day22.rs:441:4 [INFO] [stdout] | [INFO] [stdout] 441 | fn print_map(map: &Vec>, me: &Me) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getDataSize` is never used [INFO] [stdout] --> src/day23.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn getDataSize(day: &str) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getDataSize` should have a snake case name [INFO] [stdout] --> src/day23.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn getDataSize(day: &str) { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `get_data_size` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `getRowSize` should have a snake case name [INFO] [stdout] --> src/day23.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | let mut getRowSize = false; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `get_row_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `lineCount` should have a snake case name [INFO] [stdout] --> src/day23.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | let mut lineCount = 0; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `line_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getDirection` should have a snake case name [INFO] [stdout] --> src/day23.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn getDirection(priority: u32, step: u32) -> Dir { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `get_direction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `nextStep` should have a snake case name [INFO] [stdout] --> src/day23.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let nextStep = (step+2+ priority) % 4; // prevent going below 0, and step begins at 1 [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `next_step` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proposedMap` should have a snake case name [INFO] [stdout] --> src/day23.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | let proposedMap = getProposedMap(&elves, step); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `proposed_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getBoundingBox` should have a snake case name [INFO] [stdout] --> src/day23.rs:70:4 [INFO] [stdout] | [INFO] [stdout] 70 | fn getBoundingBox(elves: &[[bool;200];200]) -> (usize,usize,usize,usize){ [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_bounding_box` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `updateMap` should have a snake case name [INFO] [stdout] --> src/day23.rs:91:4 [INFO] [stdout] | [INFO] [stdout] 91 | fn updateMap(elves: &[[bool;200];200], proposedMap: &[[u32;200];200], step: u32) -> ([[bool;200];200], bool) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `update_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proposedMap` should have a snake case name [INFO] [stdout] --> src/day23.rs:91:40 [INFO] [stdout] | [INFO] [stdout] 91 | fn updateMap(elves: &[[bool;200];200], proposedMap: &[[u32;200];200], step: u32) -> ([[bool;200];200], bool) { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `proposed_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newMap` should have a snake case name [INFO] [stdout] --> src/day23.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | let mut newMap = [[false;200];200]; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `new_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `printMap` should have a snake case name [INFO] [stdout] --> src/day23.rs:112:4 [INFO] [stdout] | [INFO] [stdout] 112 | fn printMap(elves: [[bool;200];200]) { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `print_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getProposedMap` should have a snake case name [INFO] [stdout] --> src/day23.rs:125:4 [INFO] [stdout] | [INFO] [stdout] 125 | fn getProposedMap(elves: &[[bool;200];200], step: u32) -> [[u32;200];200]{ [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_proposed_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proposedMap` should have a snake case name [INFO] [stdout] --> src/day23.rs:126:13 [INFO] [stdout] | [INFO] [stdout] 126 | let mut proposedMap = [[0;200];200]; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `proposed_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getProposedDirection` should have a snake case name [INFO] [stdout] --> src/day23.rs:138:4 [INFO] [stdout] | [INFO] [stdout] 138 | fn getProposedDirection(elves: &[[bool;200];200], x: usize, y: usize, step: u32) -> (usize,usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_proposed_direction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getInitialMap` should have a snake case name [INFO] [stdout] --> src/day23.rs:203:4 [INFO] [stdout] | [INFO] [stdout] 203 | fn getInitialMap(day: &str) -> [[bool;200];200] { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_initial_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `lineOffset` should have a snake case name [INFO] [stdout] --> src/day23.rs:205:9 [INFO] [stdout] | [INFO] [stdout] 205 | let lineOffset = 70; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `line_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `lineNumber` should have a snake case name [INFO] [stdout] --> src/day23.rs:206:13 [INFO] [stdout] | [INFO] [stdout] 206 | let mut lineNumber = 0; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `line_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proposedMap` should have a snake case name [INFO] [stdout] --> src/day23.rs:230:13 [INFO] [stdout] | [INFO] [stdout] 230 | let proposedMap = getProposedMap(&elves, step); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `proposed_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.09s [INFO] running `Command { std: "docker" "inspect" "bb5a5b3246dec9a1b4d9d378ef755fc96629a5aed8e40ea104a23784115f02ec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bb5a5b3246dec9a1b4d9d378ef755fc96629a5aed8e40ea104a23784115f02ec", kill_on_drop: false }` [INFO] [stdout] bb5a5b3246dec9a1b4d9d378ef755fc96629a5aed8e40ea104a23784115f02ec