[INFO] cloning repository https://github.com/iamorozov/advent2024-Rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/iamorozov/advent2024-Rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fiamorozov%2Fadvent2024-Rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fiamorozov%2Fadvent2024-Rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 92fa0f6bdb0c724f0f8e7f371080498d3b29283f [INFO] checking iamorozov/advent2024-Rust against try#802c9b5f98c16ec9d24cdfd517f740f1f3df0e29 for pr-137728 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fiamorozov%2Fadvent2024-Rust" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/iamorozov/advent2024-Rust on toolchain 802c9b5f98c16ec9d24cdfd517f740f1f3df0e29 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+802c9b5f98c16ec9d24cdfd517f740f1f3df0e29" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-0-tc2/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/iamorozov/advent2024-Rust [INFO] finished tweaking git repo https://github.com/iamorozov/advent2024-Rust [INFO] tweaked toml for git repo https://github.com/iamorozov/advent2024-Rust written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/iamorozov/advent2024-Rust 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" "+802c9b5f98c16ec9d24cdfd517f740f1f3df0e29" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+802c9b5f98c16ec9d24cdfd517f740f1f3df0e29" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 85e328008422aa5019e9f2ece590e166003e47d5bbd4a72d0abcf45197f0d8a0 [INFO] running `Command { std: "docker" "start" "-a" "85e328008422aa5019e9f2ece590e166003e47d5bbd4a72d0abcf45197f0d8a0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "85e328008422aa5019e9f2ece590e166003e47d5bbd4a72d0abcf45197f0d8a0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "85e328008422aa5019e9f2ece590e166003e47d5bbd4a72d0abcf45197f0d8a0", kill_on_drop: false }` [INFO] [stdout] 85e328008422aa5019e9f2ece590e166003e47d5bbd4a72d0abcf45197f0d8a0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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" "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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+802c9b5f98c16ec9d24cdfd517f740f1f3df0e29" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dc413939cba05dfe61098a98685e4c2790d621e723a00b5c971e4a8637aeffca [INFO] running `Command { std: "docker" "start" "-a" "dc413939cba05dfe61098a98685e4c2790d621e723a00b5c971e4a8637aeffca", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.70 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.167 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Checking memchr v2.6.4 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Compiling unicode-segmentation v1.12.0 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling unicode-width v0.1.12 [INFO] [stderr] Compiling regex-syntax v0.6.29 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Checking pico-args v0.5.0 [INFO] [stderr] Checking tinyjson v2.5.1 [INFO] [stderr] Compiling ahash v0.7.8 [INFO] [stderr] Checking itertools v0.13.0 [INFO] [stderr] Compiling convert_case v0.6.0 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.39 [INFO] [stderr] Compiling const_format_proc_macros v0.2.31 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking lru v0.7.8 [INFO] [stderr] Checking const_format v0.2.31 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Compiling sscanf_macro v0.4.2 [INFO] [stderr] Compiling memoize-inner v0.4.3 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking sscanf v0.4.2 [INFO] [stderr] Checking memoize v0.4.2 [INFO] [stderr] Checking advent_of_code v0.11.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `cmp::max` and `hash::Hash` [INFO] [stdout] --> src/bin/22.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cmp::max, collections::HashMap, hash::Hash}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `result` [INFO] [stdout] --> src/bin/24.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, result}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/bin/25.rs:42:17 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn part_two(input: &str) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::result` [INFO] [stdout] --> src/bin/17.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::result; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::min` [INFO] [stdout] --> src/bin/15.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::min; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::min` [INFO] [stdout] --> src/bin/15.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::min; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/17.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let mut A = sscanf::sscanf!(&lines[0], "Register A: {}", i64).unwrap(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/17.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let mut B = sscanf::sscanf!(&lines[1], "Register B: {}", i64).unwrap(); [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/bin/17.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let mut C = sscanf::sscanf!(&lines[2], "Register C: {}", i64).unwrap(); [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/bin/24.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let mut gates: HashMap = input.lines().skip(p + 1) [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 imports: `hash::Hash`, `mem`, and `result` [INFO] [stdout] --> src/bin/19.rs:1:43 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cmp::min, collections::HashSet, hash::Hash, mem, result}; [INFO] [stdout] | ^^^^^^^^^^ ^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::result` [INFO] [stdout] --> src/bin/17.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::result; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `wires` [INFO] [stdout] --> src/bin/24.rs:88:10 [INFO] [stdout] | [INFO] [stdout] 88 | let (wires, gates) = get_wires_and_gates(input); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_wires` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/bin/17.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | let mut A = sscanf::sscanf!(&lines[0], "Register A: {}", i64).unwrap(); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `B` should have a snake case name [INFO] [stdout] --> src/bin/17.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | let mut B = sscanf::sscanf!(&lines[1], "Register B: {}", i64).unwrap(); [INFO] [stdout] | ^ help: convert the identifier to snake case: `b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `C` should have a snake case name [INFO] [stdout] --> src/bin/17.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | let mut C = sscanf::sscanf!(&lines[2], "Register C: {}", i64).unwrap(); [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/bin/17.rs:26:33 [INFO] [stdout] | [INFO] [stdout] 26 | fn eval(program: &Vec, mut A: i64, mut B: i64, mut C: i64) -> Vec { [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `B` should have a snake case name [INFO] [stdout] --> src/bin/17.rs:26:45 [INFO] [stdout] | [INFO] [stdout] 26 | fn eval(program: &Vec, mut A: i64, mut B: i64, mut C: i64) -> Vec { [INFO] [stdout] | ^ help: convert the identifier to snake case: `b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `C` should have a snake case name [INFO] [stdout] --> src/bin/17.rs:26:57 [INFO] [stdout] | [INFO] [stdout] 26 | fn eval(program: &Vec, mut A: i64, mut B: i64, mut C: i64) -> Vec { [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/bin/17.rs:63:24 [INFO] [stdout] | [INFO] [stdout] 63 | fn combo(operand: i64, A: i64, B: i64, C: i64) -> i64 { [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `B` should have a snake case name [INFO] [stdout] --> src/bin/17.rs:63:32 [INFO] [stdout] | [INFO] [stdout] 63 | fn combo(operand: i64, A: i64, B: i64, C: i64) -> i64 { [INFO] [stdout] | ^ help: convert the identifier to snake case: `b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `C` should have a snake case name [INFO] [stdout] --> src/bin/17.rs:63:40 [INFO] [stdout] | [INFO] [stdout] 63 | fn combo(operand: i64, A: i64, B: i64, C: i64) -> i64 { [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/bin/17.rs:110:13 [INFO] [stdout] | [INFO] [stdout] 110 | let A: i64 = factors.iter().enumerate().map(|(index, v)| v * 2i64.pow(3 * index as u32)).sum(); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/bin/18.rs:2:61 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{cmp::Ordering, collections::{BinaryHeap, HashMap, HashSet}}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `result` [INFO] [stdout] --> src/bin/24.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, result}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `hash::Hash`, `mem`, and `result` [INFO] [stdout] --> src/bin/19.rs:1:43 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cmp::min, collections::HashSet, hash::Hash, mem, result}; [INFO] [stdout] | ^^^^^^^^^^ ^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/bin/20.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/20.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let mut maze = get_char_matrix(input); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/20.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | let mut maze = get_char_matrix(input); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dir` [INFO] [stdout] --> src/bin/16.rs:187:19 [INFO] [stdout] | [INFO] [stdout] 187 | .min_by_key(|(dir, (v, _))| *v) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dir` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/16.rs:115:25 [INFO] [stdout] | [INFO] [stdout] 115 | fn shortest_paths_tiles(mut map: Vec>) -> usize { [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 import: `itertools::Itertools` [INFO] [stdout] --> src/bin/20.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/24.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let mut gates: HashMap = input.lines().skip(p + 1) [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/20.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let mut maze = get_char_matrix(input); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/20.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | let mut maze = get_char_matrix(input); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/17.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let mut A = sscanf::sscanf!(&lines[0], "Register A: {}", i64).unwrap(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/17.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let mut B = sscanf::sscanf!(&lines[1], "Register B: {}", i64).unwrap(); [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/bin/17.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let mut C = sscanf::sscanf!(&lines[2], "Register C: {}", i64).unwrap(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `wires` [INFO] [stdout] --> src/bin/24.rs:88:10 [INFO] [stdout] | [INFO] [stdout] 88 | let (wires, gates) = get_wires_and_gates(input); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_wires` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/bin/17.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | let mut A = sscanf::sscanf!(&lines[0], "Register A: {}", i64).unwrap(); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `B` should have a snake case name [INFO] [stdout] --> src/bin/17.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | let mut B = sscanf::sscanf!(&lines[1], "Register B: {}", i64).unwrap(); [INFO] [stdout] | ^ help: convert the identifier to snake case: `b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `C` should have a snake case name [INFO] [stdout] --> src/bin/17.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | let mut C = sscanf::sscanf!(&lines[2], "Register C: {}", i64).unwrap(); [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/bin/17.rs:26:33 [INFO] [stdout] | [INFO] [stdout] 26 | fn eval(program: &Vec, mut A: i64, mut B: i64, mut C: i64) -> Vec { [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `B` should have a snake case name [INFO] [stdout] --> src/bin/17.rs:26:45 [INFO] [stdout] | [INFO] [stdout] 26 | fn eval(program: &Vec, mut A: i64, mut B: i64, mut C: i64) -> Vec { [INFO] [stdout] | ^ help: convert the identifier to snake case: `b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/bin/18.rs:2:61 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{cmp::Ordering, collections::{BinaryHeap, HashMap, HashSet}}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `C` should have a snake case name [INFO] [stdout] --> src/bin/17.rs:26:57 [INFO] [stdout] | [INFO] [stdout] 26 | fn eval(program: &Vec, mut A: i64, mut B: i64, mut C: i64) -> Vec { [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/bin/17.rs:63:24 [INFO] [stdout] | [INFO] [stdout] 63 | fn combo(operand: i64, A: i64, B: i64, C: i64) -> i64 { [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `B` should have a snake case name [INFO] [stdout] --> src/bin/17.rs:63:32 [INFO] [stdout] | [INFO] [stdout] 63 | fn combo(operand: i64, A: i64, B: i64, C: i64) -> i64 { [INFO] [stdout] | ^ help: convert the identifier to snake case: `b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `C` should have a snake case name [INFO] [stdout] --> src/bin/17.rs:63:40 [INFO] [stdout] | [INFO] [stdout] 63 | fn combo(operand: i64, A: i64, B: i64, C: i64) -> i64 { [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/bin/17.rs:110:13 [INFO] [stdout] | [INFO] [stdout] 110 | let A: i64 = factors.iter().enumerate().map(|(index, v)| v * 2i64.pow(3 * index as u32)).sum(); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/bin/25.rs:42:17 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn part_two(input: &str) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cmp::max` and `hash::Hash` [INFO] [stdout] --> src/bin/22.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cmp::max, collections::HashMap, hash::Hash}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dir` [INFO] [stdout] --> src/bin/16.rs:187:19 [INFO] [stdout] | [INFO] [stdout] 187 | .min_by_key(|(dir, (v, _))| *v) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dir` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/16.rs:115:25 [INFO] [stdout] | [INFO] [stdout] 115 | fn shortest_paths_tiles(mut map: Vec>) -> usize { [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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.25s [INFO] running `Command { std: "docker" "inspect" "dc413939cba05dfe61098a98685e4c2790d621e723a00b5c971e4a8637aeffca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dc413939cba05dfe61098a98685e4c2790d621e723a00b5c971e4a8637aeffca", kill_on_drop: false }` [INFO] [stdout] dc413939cba05dfe61098a98685e4c2790d621e723a00b5c971e4a8637aeffca