[INFO] cloning repository https://github.com/pauldambra/aoc-2023-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/pauldambra/aoc-2023-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpauldambra%2Faoc-2023-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpauldambra%2Faoc-2023-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8e9f3d441e292bc3a91ee6637e6ab4a8b1e3a41f [INFO] building pauldambra/aoc-2023-rust 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%2Fpauldambra%2Faoc-2023-rust" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/pauldambra/aoc-2023-rust 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/pauldambra/aoc-2023-rust [INFO] finished tweaking git repo https://github.com/pauldambra/aoc-2023-rust [INFO] tweaked toml for git repo https://github.com/pauldambra/aoc-2023-rust written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/pauldambra/aoc-2023-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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] c7d15686f25302b168d295811eaba0b73afccf3d4dd426bb46e55de13c1267af [INFO] running `Command { std: "docker" "start" "-a" "c7d15686f25302b168d295811eaba0b73afccf3d4dd426bb46e55de13c1267af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c7d15686f25302b168d295811eaba0b73afccf3d4dd426bb46e55de13c1267af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c7d15686f25302b168d295811eaba0b73afccf3d4dd426bb46e55de13c1267af", kill_on_drop: false }` [INFO] [stdout] c7d15686f25302b168d295811eaba0b73afccf3d4dd426bb46e55de13c1267af [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 33ad54f704708b49c8f78edf60524d76cc37f2fbd2b51a502452e9c184078609 [INFO] running `Command { std: "docker" "start" "-a" "33ad54f704708b49c8f78edf60524d76cc37f2fbd2b51a502452e9c184078609", kill_on_drop: false }` [INFO] [stderr] Compiling either v1.9.0 [INFO] [stderr] Compiling itertools v0.12.0 [INFO] [stderr] Compiling untitled v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/day_two.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | if (is_invalid) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 35 - if (is_invalid) { [INFO] [stdout] 35 + if is_invalid { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Mul` [INFO] [stdout] --> src/day_three.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::ops::Mul; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/day_three.rs:96:16 [INFO] [stdout] | [INFO] [stdout] 96 | if (potential_gear == "*") { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 96 - if (potential_gear == "*") { [INFO] [stdout] 96 + if potential_gear == "*" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/day_three.rs:198:12 [INFO] [stdout] | [INFO] [stdout] 198 | if (reading_number) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 198 - if (reading_number) { [INFO] [stdout] 198 + if reading_number { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/day_four.rs:47:16 [INFO] [stdout] | [INFO] [stdout] 47 | if (game_id >= *max_game_id + 1) { // wat why + 1 [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 47 - if (game_id >= *max_game_id + 1) { // wat why + 1 [INFO] [stdout] 47 + if game_id >= *max_game_id + 1 { // wat why + 1 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/aoc.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first_numeric` [INFO] [stdout] --> src/day_one.rs:71:17 [INFO] [stdout] | [INFO] [stdout] 71 | let mut first_numeric: Option = None; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_first_numeric` [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/day_one.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | let mut first_numeric: Option = None; [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/day_two.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | let mut line = line_result?; [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/day_two.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | let mut first_parts: Vec<_> = line.split(':').collect(); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/day_two.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | let id = first_parts.first().unwrap().split(" ").nth(1).unwrap().parse::().unwrap(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day_two.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | let mut line = line_result?; [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/day_two.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | let mut first_parts: Vec<_> = line.split(':').collect(); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `needle_x` [INFO] [stdout] --> src/day_three.rs:25:14 [INFO] [stdout] | [INFO] [stdout] 25 | for (needle_x, needle) in xs.iter().sorted() { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_needle_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/day_three.rs:29:21 [INFO] [stdout] | [INFO] [stdout] 29 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `part_numbers` [INFO] [stdout] --> src/day_three.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | let mut part_numbers: Vec = vec![]; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_part_numbers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day_three.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | let mut part_numbers: Vec = vec![]; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `line_x` is never read [INFO] [stdout] --> src/day_three.rs:157:13 [INFO] [stdout] | [INFO] [stdout] 157 | let mut line_x: i32 = 0; [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: value assigned to `reading_number` is never read [INFO] [stdout] --> src/day_three.rs:199:13 [INFO] [stdout] | [INFO] [stdout] 199 | reading_number = false; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `number_being_read` is never read [INFO] [stdout] --> src/day_three.rs:207:13 [INFO] [stdout] | [INFO] [stdout] 207 | number_being_read = String::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day_three.rs:162:13 [INFO] [stdout] | [INFO] [stdout] 162 | let mut line = line_result?; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `match_count` is assigned to, but never used [INFO] [stdout] --> src/day_four.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | let mut match_count = 0; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_match_count` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `score` [INFO] [stdout] --> src/day_four.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | let mut score = 0; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_score` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day_four.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | let mut score = 0; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `WhatAmI` is never constructed [INFO] [stdout] --> src/aoc.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum CoordinateError { [INFO] [stdout] | --------------- variant in this enum [INFO] [stdout] 13 | WhatAmI [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CoordinateError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.34s [INFO] running `Command { std: "docker" "inspect" "33ad54f704708b49c8f78edf60524d76cc37f2fbd2b51a502452e9c184078609", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "33ad54f704708b49c8f78edf60524d76cc37f2fbd2b51a502452e9c184078609", kill_on_drop: false }` [INFO] [stdout] 33ad54f704708b49c8f78edf60524d76cc37f2fbd2b51a502452e9c184078609 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 18d80eb303a58b7c09959646f75ee57b3cccb91c9aaee117f5302416ed68d7d1 [INFO] running `Command { std: "docker" "start" "-a" "18d80eb303a58b7c09959646f75ee57b3cccb91c9aaee117f5302416ed68d7d1", kill_on_drop: false }` [INFO] [stderr] Compiling untitled v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/day_two.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | if (is_invalid) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 35 - if (is_invalid) { [INFO] [stdout] 35 + if is_invalid { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Mul` [INFO] [stdout] --> src/day_three.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::ops::Mul; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/day_three.rs:96:16 [INFO] [stdout] | [INFO] [stdout] 96 | if (potential_gear == "*") { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 96 - if (potential_gear == "*") { [INFO] [stdout] 96 + if potential_gear == "*" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/day_three.rs:198:12 [INFO] [stdout] | [INFO] [stdout] 198 | if (reading_number) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 198 - if (reading_number) { [INFO] [stdout] 198 + if reading_number { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/day_four.rs:47:16 [INFO] [stdout] | [INFO] [stdout] 47 | if (game_id >= *max_game_id + 1) { // wat why + 1 [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 47 - if (game_id >= *max_game_id + 1) { // wat why + 1 [INFO] [stdout] 47 + if game_id >= *max_game_id + 1 { // wat why + 1 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/aoc.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first_numeric` [INFO] [stdout] --> src/day_one.rs:71:17 [INFO] [stdout] | [INFO] [stdout] 71 | let mut first_numeric: Option = None; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_first_numeric` [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/day_one.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | let mut first_numeric: Option = None; [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/day_two.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | let mut line = line_result?; [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/day_two.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | let mut first_parts: Vec<_> = line.split(':').collect(); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/day_two.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | let id = first_parts.first().unwrap().split(" ").nth(1).unwrap().parse::().unwrap(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day_two.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | let mut line = line_result?; [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/day_two.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | let mut first_parts: Vec<_> = line.split(':').collect(); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `needle_x` [INFO] [stdout] --> src/day_three.rs:25:14 [INFO] [stdout] | [INFO] [stdout] 25 | for (needle_x, needle) in xs.iter().sorted() { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_needle_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/day_three.rs:29:21 [INFO] [stdout] | [INFO] [stdout] 29 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `part_numbers` [INFO] [stdout] --> src/day_three.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | let mut part_numbers: Vec = vec![]; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_part_numbers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day_three.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | let mut part_numbers: Vec = vec![]; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `line_x` is never read [INFO] [stdout] --> src/day_three.rs:157:13 [INFO] [stdout] | [INFO] [stdout] 157 | let mut line_x: i32 = 0; [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: value assigned to `reading_number` is never read [INFO] [stdout] --> src/day_three.rs:199:13 [INFO] [stdout] | [INFO] [stdout] 199 | reading_number = false; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `number_being_read` is never read [INFO] [stdout] --> src/day_three.rs:207:13 [INFO] [stdout] | [INFO] [stdout] 207 | number_being_read = String::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day_three.rs:162:13 [INFO] [stdout] | [INFO] [stdout] 162 | let mut line = line_result?; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `match_count` is assigned to, but never used [INFO] [stdout] --> src/day_four.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | let mut match_count = 0; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_match_count` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `score` [INFO] [stdout] --> src/day_four.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | let mut score = 0; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_score` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day_four.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | let mut score = 0; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `WhatAmI` is never constructed [INFO] [stdout] --> src/aoc.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum CoordinateError { [INFO] [stdout] | --------------- variant in this enum [INFO] [stdout] 13 | WhatAmI [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CoordinateError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.46s [INFO] running `Command { std: "docker" "inspect" "18d80eb303a58b7c09959646f75ee57b3cccb91c9aaee117f5302416ed68d7d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "18d80eb303a58b7c09959646f75ee57b3cccb91c9aaee117f5302416ed68d7d1", kill_on_drop: false }` [INFO] [stdout] 18d80eb303a58b7c09959646f75ee57b3cccb91c9aaee117f5302416ed68d7d1