[INFO] cloning repository https://github.com/AlvinThorn008/aoc2024 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/AlvinThorn008/aoc2024" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAlvinThorn008%2Faoc2024", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAlvinThorn008%2Faoc2024'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d60cb61881483886906d60cf27e64e2b6997c1cb [INFO] building AlvinThorn008/aoc2024 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%2FAlvinThorn008%2Faoc2024" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/AlvinThorn008/aoc2024 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/AlvinThorn008/aoc2024 [INFO] finished tweaking git repo https://github.com/AlvinThorn008/aoc2024 [INFO] tweaked toml for git repo https://github.com/AlvinThorn008/aoc2024 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/AlvinThorn008/aoc2024 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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 990fec8d440f70baa73c281501079a90a9e4f5d4075f6ef8e7a376743513c904 [INFO] running `Command { std: "docker" "start" "-a" "990fec8d440f70baa73c281501079a90a9e4f5d4075f6ef8e7a376743513c904", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "990fec8d440f70baa73c281501079a90a9e4f5d4075f6ef8e7a376743513c904", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "990fec8d440f70baa73c281501079a90a9e4f5d4075f6ef8e7a376743513c904", kill_on_drop: false }` [INFO] [stdout] 990fec8d440f70baa73c281501079a90a9e4f5d4075f6ef8e7a376743513c904 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] f4b824de0caa0b25690c71dd1bb88a18c8abaf33dbab9ca37445fc1e3fc1b4c3 [INFO] running `Command { std: "docker" "start" "-a" "f4b824de0caa0b25690c71dd1bb88a18c8abaf33dbab9ca37445fc1e3fc1b4c3", kill_on_drop: false }` [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling itertools v0.13.0 [INFO] [stderr] Compiling aoc2024 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `hint::black_box` [INFO] [stdout] --> src/bin/cw7.rs:3:38 [INFO] [stdout] | [INFO] [stdout] 3 | collections::{HashMap, HashSet}, hint::black_box, iter::repeat_n [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hint::black_box` [INFO] [stdout] --> src/bin/day7.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | use std::{hint::black_box, time::Instant}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hint::black_box` [INFO] [stdout] --> src/bin/day7d.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::hint::black_box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part1` is never used [INFO] [stdout] --> src/bin/cw7.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn part1(equations: &[Vec]) -> u64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part1_3` is never used [INFO] [stdout] --> src/bin/day7.rs:45:4 [INFO] [stdout] | [INFO] [stdout] 45 | fn part1_3(equations: &[Vec]) -> u64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part1` is never used [INFO] [stdout] --> src/bin/day7.rs:70:4 [INFO] [stdout] | [INFO] [stdout] 70 | fn part1(equations: &[Vec]) -> u64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part2` is never used [INFO] [stdout] --> src/bin/day7.rs:98:4 [INFO] [stdout] | [INFO] [stdout] 98 | fn part2(equations: &[Vec]) -> u64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_gauss` is never used [INFO] [stdout] --> src/bin/day13/main.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn solve_gauss(system: &mut [[i64; 3];2]) -> Option<(i64, i64)> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ops::ControlFlow` and `process::Output` [INFO] [stdout] --> src/bin/day2.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cmp::Ordering, ops::ControlFlow, process::Output}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part1` is never used [INFO] [stdout] --> src/bin/day2.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn part1<'a>(reports: impl Iterator) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `next_X` should have a snake case name [INFO] [stdout] --> src/bin/day4.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | let mut next_X: (isize, isize) = (0,0); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `next_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::slice` [INFO] [stdout] --> src/bin/day6.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use core::slice; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/bin/day6.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `grid` [INFO] [stdout] --> src/bin/day6.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let grid: Vec<&[u8]> = data.lines().map(str::as_bytes).collect(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_grid` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DIR_VECS` is never used [INFO] [stdout] --> src/bin/day6.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const DIR_VECS: [(i32, i32); 4] = [ (1, 0), (0, 1), (-1, 0), (0, -1) ]; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Direction` is never used [INFO] [stdout] --> src/bin/day6.rs:16:6 [INFO] [stdout] | [INFO] [stdout] 16 | enum Direction { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `turn` is never used [INFO] [stdout] --> src/bin/day6.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn turn(dir: Direction) -> Direction { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dir` is never used [INFO] [stdout] --> src/bin/day6.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn dir(ch: u8) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `follow_line` is never used [INFO] [stdout] --> src/bin/day6.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn follow_line(grid: &[&[u8]], state: &mut (Direction, i32, i32)) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_start` is never used [INFO] [stdout] --> src/bin/day6.rs:56:4 [INFO] [stdout] | [INFO] [stdout] 56 | fn find_start(grid: &[&[u8]]) -> (Direction, i32, i32) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part1` is never used [INFO] [stdout] --> src/bin/day6.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn part1(grid: &[&[u8]]) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `collections::HashMap` [INFO] [stdout] --> src/bin/day1.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, fs::File, io::Read}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::str` [INFO] [stdout] --> src/bin/day9.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use core::str; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part1` is never used [INFO] [stdout] --> src/bin/day1.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn part1(left: &[i32], right: &[i32]) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part2` is never used [INFO] [stdout] --> src/bin/day9.rs:66:4 [INFO] [stdout] | [INFO] [stdout] 66 | fn part2(data: &mut [u8]) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_diskmap` is never used [INFO] [stdout] --> src/bin/day9.rs:108:4 [INFO] [stdout] | [INFO] [stdout] 108 | fn print_diskmap(data: &[u8]) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `next_X` should have a snake case name [INFO] [stdout] --> src/bin/day4-p2.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | let mut next_X: (isize, isize) = (0,0); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `next_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.66s [INFO] running `Command { std: "docker" "inspect" "f4b824de0caa0b25690c71dd1bb88a18c8abaf33dbab9ca37445fc1e3fc1b4c3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f4b824de0caa0b25690c71dd1bb88a18c8abaf33dbab9ca37445fc1e3fc1b4c3", kill_on_drop: false }` [INFO] [stdout] f4b824de0caa0b25690c71dd1bb88a18c8abaf33dbab9ca37445fc1e3fc1b4c3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 107ed11f0704a1fc4b384e7216476f508255f54376905e79675beba6fcedfbe2 [INFO] running `Command { std: "docker" "start" "-a" "107ed11f0704a1fc4b384e7216476f508255f54376905e79675beba6fcedfbe2", kill_on_drop: false }` [INFO] [stderr] Compiling aoc2024 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `collections::HashMap` [INFO] [stdout] --> src/bin/day1.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, fs::File, io::Read}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::str` [INFO] [stdout] --> src/bin/day9.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use core::str; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hint::black_box` [INFO] [stdout] --> src/bin/cw7.rs:3:38 [INFO] [stdout] | [INFO] [stdout] 3 | collections::{HashMap, HashSet}, hint::black_box, iter::repeat_n [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part1` is never used [INFO] [stdout] --> src/bin/day1.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn part1(left: &[i32], right: &[i32]) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part2` is never used [INFO] [stdout] --> src/bin/day9.rs:66:4 [INFO] [stdout] | [INFO] [stdout] 66 | fn part2(data: &mut [u8]) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_diskmap` is never used [INFO] [stdout] --> src/bin/day9.rs:108:4 [INFO] [stdout] | [INFO] [stdout] 108 | fn print_diskmap(data: &[u8]) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part1` is never used [INFO] [stdout] --> src/bin/cw7.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn part1(equations: &[Vec]) -> u64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_gauss` is never used [INFO] [stdout] --> src/bin/day13/main.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn solve_gauss(system: &mut [[i64; 3];2]) -> Option<(i64, i64)> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ops::ControlFlow` and `process::Output` [INFO] [stdout] --> src/bin/day2.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cmp::Ordering, ops::ControlFlow, process::Output}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::slice` [INFO] [stdout] --> src/bin/day6.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use core::slice; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/bin/day6.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part1` is never used [INFO] [stdout] --> src/bin/day2.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn part1<'a>(reports: impl Iterator) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `grid` [INFO] [stdout] --> src/bin/day6.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let grid: Vec<&[u8]> = data.lines().map(str::as_bytes).collect(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_grid` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DIR_VECS` is never used [INFO] [stdout] --> src/bin/day6.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const DIR_VECS: [(i32, i32); 4] = [ (1, 0), (0, 1), (-1, 0), (0, -1) ]; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Direction` is never used [INFO] [stdout] --> src/bin/day6.rs:16:6 [INFO] [stdout] | [INFO] [stdout] 16 | enum Direction { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `turn` is never used [INFO] [stdout] --> src/bin/day6.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn turn(dir: Direction) -> Direction { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dir` is never used [INFO] [stdout] --> src/bin/day6.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn dir(ch: u8) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `follow_line` is never used [INFO] [stdout] --> src/bin/day6.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn follow_line(grid: &[&[u8]], state: &mut (Direction, i32, i32)) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_start` is never used [INFO] [stdout] --> src/bin/day6.rs:56:4 [INFO] [stdout] | [INFO] [stdout] 56 | fn find_start(grid: &[&[u8]]) -> (Direction, i32, i32) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part1` is never used [INFO] [stdout] --> src/bin/day6.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn part1(grid: &[&[u8]]) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hint::black_box` [INFO] [stdout] --> src/bin/day7.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | use std::{hint::black_box, time::Instant}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `next_X` should have a snake case name [INFO] [stdout] --> src/bin/day4-p2.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | let mut next_X: (isize, isize) = (0,0); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `next_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hint::black_box` [INFO] [stdout] --> src/bin/day7d.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::hint::black_box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `next_X` should have a snake case name [INFO] [stdout] --> src/bin/day4.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | let mut next_X: (isize, isize) = (0,0); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `next_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part1_3` is never used [INFO] [stdout] --> src/bin/day7.rs:45:4 [INFO] [stdout] | [INFO] [stdout] 45 | fn part1_3(equations: &[Vec]) -> u64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part1` is never used [INFO] [stdout] --> src/bin/day7.rs:70:4 [INFO] [stdout] | [INFO] [stdout] 70 | fn part1(equations: &[Vec]) -> u64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part2` is never used [INFO] [stdout] --> src/bin/day7.rs:98:4 [INFO] [stdout] | [INFO] [stdout] 98 | fn part2(equations: &[Vec]) -> u64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.30s [INFO] running `Command { std: "docker" "inspect" "107ed11f0704a1fc4b384e7216476f508255f54376905e79675beba6fcedfbe2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "107ed11f0704a1fc4b384e7216476f508255f54376905e79675beba6fcedfbe2", kill_on_drop: false }` [INFO] [stdout] 107ed11f0704a1fc4b384e7216476f508255f54376905e79675beba6fcedfbe2