[INFO] cloning repository https://github.com/reedspool/aoc-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/reedspool/aoc-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Freedspool%2Faoc-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Freedspool%2Faoc-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9b3fc2040da0d841d24befe435b32b02b1814941 [INFO] checking reedspool/aoc-rust against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Freedspool%2Faoc-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/reedspool/aoc-rust on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/reedspool/aoc-rust [INFO] finished tweaking git repo https://github.com/reedspool/aoc-rust [INFO] tweaked toml for git repo https://github.com/reedspool/aoc-rust written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/reedspool/aoc-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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d71ea4f349504143535ad6170322f7374ee33a698ce8fbdb58993fe57db5e193 [INFO] running `Command { std: "docker" "start" "-a" "d71ea4f349504143535ad6170322f7374ee33a698ce8fbdb58993fe57db5e193", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d71ea4f349504143535ad6170322f7374ee33a698ce8fbdb58993fe57db5e193", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d71ea4f349504143535ad6170322f7374ee33a698ce8fbdb58993fe57db5e193", kill_on_drop: false }` [INFO] [stdout] d71ea4f349504143535ad6170322f7374ee33a698ce8fbdb58993fe57db5e193 [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" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 08a897c99e99560fe4823b55509fb0753c7653ba40e026380ee5dc116aa562d2 [INFO] running `Command { std: "docker" "start" "-a" "08a897c99e99560fe4823b55509fb0753c7653ba40e026380ee5dc116aa562d2", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.32 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.78 [INFO] [stderr] Compiling syn v1.0.82 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling bumpalo v3.8.0 [INFO] [stderr] Compiling wasm-bindgen v0.2.78 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.78 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.78 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.78 [INFO] [stderr] Checking rust-advent-of-code v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `OpCode` [INFO] [stdout] --> src/intcode_interpreter.rs:1:45 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::intcode_interpreter::operation::{OpCode, Operation}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/intcode_interpreter/operation.rs:78:21 [INFO] [stdout] | [INFO] [stdout] 78 | let (output_location) = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 78 - let (output_location) = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] 78 + let output_location = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/intcode_interpreter/operation.rs:89:21 [INFO] [stdout] | [INFO] [stdout] 89 | let (output) = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 89 - let (output) = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] 89 + let output = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/intcode_interpreter/operation.rs:153:10 [INFO] [stdout] | [INFO] [stdout] 153 | ) -> (i32) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 153 - ) -> (i32) { [INFO] [stdout] 153 + ) -> i32 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OpCode` [INFO] [stdout] --> src/intcode_interpreter.rs:1:45 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::intcode_interpreter::operation::{OpCode, Operation}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OpCode` [INFO] [stdout] --> src/intcode_interpreter.rs:1:45 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::intcode_interpreter::operation::{OpCode, Operation}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/intcode_interpreter/operation.rs:78:21 [INFO] [stdout] | [INFO] [stdout] 78 | let (output_location) = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 78 - let (output_location) = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] 78 + let output_location = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/intcode_interpreter/operation.rs:89:21 [INFO] [stdout] | [INFO] [stdout] 89 | let (output) = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 89 - let (output) = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] 89 + let output = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/intcode_interpreter/operation.rs:153:10 [INFO] [stdout] | [INFO] [stdout] 153 | ) -> (i32) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 153 - ) -> (i32) { [INFO] [stdout] 153 + ) -> i32 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `directions` should have an upper camel case name [INFO] [stdout] --> src/aoc_2021/day_2.rs:1:6 [INFO] [stdout] | [INFO] [stdout] 1 | enum directions { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `Directions` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `forward` should have an upper camel case name [INFO] [stdout] --> src/aoc_2021/day_2.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | forward, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Forward` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `up` should have an upper camel case name [INFO] [stdout] --> src/aoc_2021/day_2.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | up, [INFO] [stdout] | ^^ help: convert the identifier to upper camel case (notice the capitalization): `Up` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `down` should have an upper camel case name [INFO] [stdout] --> src/aoc_2021/day_2.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | down [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Down` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `regex::Regex` [INFO] [stdout] --> src/aoc_2021/day_4.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use regex::Regex; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OpCode` [INFO] [stdout] --> src/intcode_interpreter.rs:1:45 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::intcode_interpreter::operation::{OpCode, Operation}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/intcode_interpreter/operation.rs:78:21 [INFO] [stdout] | [INFO] [stdout] 78 | let (output_location) = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 78 - let (output_location) = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] 78 + let output_location = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/intcode_interpreter/operation.rs:89:21 [INFO] [stdout] | [INFO] [stdout] 89 | let (output) = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 89 - let (output) = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] 89 + let output = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/intcode_interpreter/operation.rs:153:10 [INFO] [stdout] | [INFO] [stdout] 153 | ) -> (i32) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 153 - ) -> (i32) { [INFO] [stdout] 153 + ) -> i32 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> src/aoc_2021/day_9.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap`, `HashSet` [INFO] [stdout] --> src/aoc_2021/day_10.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/aoc_2021/day_12.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/aoc_2021/day_12.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 71 | if (infinite_loop_trap == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 71 - if (infinite_loop_trap == 0) { [INFO] [stdout] 71 + if infinite_loop_trap == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/intcode_interpreter/operation.rs:78:21 [INFO] [stdout] | [INFO] [stdout] 78 | let (output_location) = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 78 - let (output_location) = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] 78 + let output_location = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/intcode_interpreter/operation.rs:89:21 [INFO] [stdout] | [INFO] [stdout] 89 | let (output) = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 89 - let (output) = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] 89 + let output = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/intcode_interpreter/operation.rs:153:10 [INFO] [stdout] | [INFO] [stdout] 153 | ) -> (i32) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 153 - ) -> (i32) { [INFO] [stdout] 153 + ) -> i32 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::advent_utilities::read_input` [INFO] [stdout] --> src/aoc_2015/day_1.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | use crate::advent_utilities::read_input; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `directions` should have an upper camel case name [INFO] [stdout] --> src/aoc_2021/day_2.rs:1:6 [INFO] [stdout] | [INFO] [stdout] 1 | enum directions { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `Directions` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `forward` should have an upper camel case name [INFO] [stdout] --> src/aoc_2021/day_2.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | forward, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Forward` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `up` should have an upper camel case name [INFO] [stdout] --> src/aoc_2021/day_2.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | up, [INFO] [stdout] | ^^ help: convert the identifier to upper camel case (notice the capitalization): `Up` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `down` should have an upper camel case name [INFO] [stdout] --> src/aoc_2021/day_2.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | down [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Down` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `regex::Regex` [INFO] [stdout] --> src/aoc_2021/day_4.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use regex::Regex; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> src/aoc_2021/day_9.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap`, `HashSet` [INFO] [stdout] --> src/aoc_2021/day_10.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/aoc_2021/day_12.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/aoc_2021/day_12.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 71 | if (infinite_loop_trap == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 71 - if (infinite_loop_trap == 0) { [INFO] [stdout] 71 + if infinite_loop_trap == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output_location` [INFO] [stdout] --> src/intcode_interpreter/operation.rs:78:22 [INFO] [stdout] | [INFO] [stdout] 78 | let (output_location) = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_output_location` [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/lib.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let mut program = Program::parse(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: unused variable: `output_location` [INFO] [stdout] --> src/intcode_interpreter/operation.rs:78:22 [INFO] [stdout] | [INFO] [stdout] 78 | let (output_location) = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_output_location` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/intcode_interpreter.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 115 | let mut program = Program::parse("4,0,99"); [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/intcode_interpreter.rs:121:13 [INFO] [stdout] | [INFO] [stdout] 121 | let mut program = Program::parse("1102,4,3,0,99"); [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/intcode_interpreter.rs:124:13 [INFO] [stdout] | [INFO] [stdout] 124 | let mut program = Program::parse("1002,4,3,0,99"); [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/intcode_interpreter.rs:127:13 [INFO] [stdout] | [INFO] [stdout] 127 | let mut program = Program::parse("102,4,3,0,99"); [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/lib.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let mut program = Program::parse(input); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::BufRead` [INFO] [stdout] --> src/aoc_2021/day_4.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::BufRead; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output_location` [INFO] [stdout] --> src/intcode_interpreter/operation.rs:78:22 [INFO] [stdout] | [INFO] [stdout] 78 | let (output_location) = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_output_location` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_string` [INFO] [stdout] --> src/aoc_2019/day_4.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | let mut current_string: &str; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/aoc_2019/day_4.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | let mut current_string = ¤t.to_string(); [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: `current_string` [INFO] [stdout] --> src/aoc_2019/day_4.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | let mut current_string: &str; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/aoc_2019/day_4.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | let mut current_string = ¤t.to_string(); [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/aoc_2021/day_3.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let mut num_bits = lines[0].len(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/aoc_2021/day_3.rs:157:10 [INFO] [stdout] | [INFO] [stdout] 157 | for (index, byte) in oxygen_rating_candidates[0].as_bytes().iter().enumerate() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/aoc_2021/day_3.rs:166:10 [INFO] [stdout] | [INFO] [stdout] 166 | for (index, byte) in co2_rating_candidates[0].as_bytes().iter().enumerate() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/aoc_2021/day_3.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | let mut lines = input.trim().split("\n"); [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/aoc_2021/day_3.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | let mut lines_vec = lines.clone().collect::>(); [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/aoc_2021/day_3.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | let mut counts = count_it(lines_vec); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `newborn` [INFO] [stdout] --> src/aoc_2021/day_6.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | for newborn in 0..reproducing { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_newborn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `day` [INFO] [stdout] --> src/aoc_2021/day_6.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | for day in 0..days { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_day` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/aoc_2021/day_6.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let mut fish : Vec = input.trim().split(",").map(|f| f.parse().unwrap()).collect(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max` [INFO] [stdout] --> src/aoc_2021/day_7.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let max = xs.iter().max().unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_max` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/aoc_2021/day_7.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let mut median; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `left_side` [INFO] [stdout] --> src/aoc_2021/day_8.rs:62:10 [INFO] [stdout] | [INFO] [stdout] 62 | for (left_side, right_side, all_digits) in &parts { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_left_side` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::BufRead` [INFO] [stdout] --> src/aoc_2021/day_4.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::BufRead; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output_location` [INFO] [stdout] --> src/intcode_interpreter/operation.rs:78:22 [INFO] [stdout] | [INFO] [stdout] 78 | let (output_location) = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_output_location` [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/aoc_2021/day_9.rs:148:25 [INFO] [stdout] | [INFO] [stdout] 148 | let mut top_basin = basins.get_mut(top_basin_index).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/aoc_2021/day_9.rs:158:25 [INFO] [stdout] | [INFO] [stdout] 158 | let mut left_basin = basins.get_mut(left_basin_index).unwrap(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unknown` [INFO] [stdout] --> src/aoc_2021/day_10.rs:40:17 [INFO] [stdout] | [INFO] [stdout] 40 | unknown => panic!(), [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unknown` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unknown` [INFO] [stdout] --> src/aoc_2021/day_10.rs:82:21 [INFO] [stdout] | [INFO] [stdout] 82 | unknown => panic!(), [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unknown` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `point` [INFO] [stdout] --> src/aoc_2021/day_11.rs:71:10 [INFO] [stdout] | [INFO] [stdout] 71 | for (point, value) in map.iter_mut() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_point` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/intcode_interpreter.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 115 | let mut program = Program::parse("4,0,99"); [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/intcode_interpreter.rs:121:13 [INFO] [stdout] | [INFO] [stdout] 121 | let mut program = Program::parse("1102,4,3,0,99"); [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/intcode_interpreter.rs:124:13 [INFO] [stdout] | [INFO] [stdout] 124 | let mut program = Program::parse("1002,4,3,0,99"); [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/intcode_interpreter.rs:127:13 [INFO] [stdout] | [INFO] [stdout] 127 | let mut program = Program::parse("102,4,3,0,99"); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `START` is never used [INFO] [stdout] --> src/aoc_2019/day_4.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | const START: i32 = 271973; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `END` is never used [INFO] [stdout] --> src/aoc_2019/day_4.rs:2:7 [INFO] [stdout] | [INFO] [stdout] 2 | const END: i32 = 785961; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_1` is never used [INFO] [stdout] --> src/aoc_2019/day_4.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn part_1() -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_2` is never used [INFO] [stdout] --> src/aoc_2019/day_4.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn part_2() -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `contains_pairs` is never used [INFO] [stdout] --> src/aoc_2019/day_4.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn contains_pairs(value: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `contains_pairs_no_triples` is never used [INFO] [stdout] --> src/aoc_2019/day_4.rs:70:4 [INFO] [stdout] | [INFO] [stdout] 70 | fn contains_pairs_no_triples(value: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `next_decrease` is never used [INFO] [stdout] --> src/aoc_2019/day_4.rs:105:4 [INFO] [stdout] | [INFO] [stdout] 105 | fn next_decrease(value: &str) -> Option<(usize, u8)> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_next_increase` is never used [INFO] [stdout] --> src/aoc_2019/day_4.rs:118:4 [INFO] [stdout] | [INFO] [stdout] 118 | fn find_next_increase(value: &str, place: (usize, u8)) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `start` and `end` are never read [INFO] [stdout] --> src/aoc_2021/day_12.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | struct Cave { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 5 | big: bool, [INFO] [stdout] 6 | start: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | end: bool, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Cave` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/aoc_2021/day_3.rs:73:11 [INFO] [stdout] | [INFO] [stdout] 73 | while index >= 0 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/aoc_2021/day_3.rs:105:11 [INFO] [stdout] | [INFO] [stdout] 105 | while index >= 0 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stepX` should have a snake case name [INFO] [stdout] --> src/aoc_2021/day_5.rs:223:13 [INFO] [stdout] | [INFO] [stdout] 223 | let stepX: i32 = match line.beg.x < line.end.x { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `step_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stepY` should have a snake case name [INFO] [stdout] --> src/aoc_2021/day_5.rs:228:13 [INFO] [stdout] | [INFO] [stdout] 228 | let stepY: i32 = match line.beg.y < line.end.y { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `step_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `collect` that must be used [INFO] [stdout] --> src/aoc_2021/day_11.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | / input.trim().split("\n").map(|line| { [INFO] [stdout] 14 | | line.trim().chars().map(|energy| { [INFO] [stdout] 15 | | [INFO] [stdout] 16 | | let energy = energy.to_string().parse::().unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 24 | | y += 1; [INFO] [stdout] 25 | | }).collect::<()>(); [INFO] [stdout] | |______________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you really need to exhaust the iterator, consider `.for_each(drop)` instead [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 13 | let _ = input.trim().split("\n").map(|line| { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `collect` that must be used [INFO] [stdout] --> src/aoc_2021/day_11.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | / line.trim().chars().map(|energy| { [INFO] [stdout] 15 | | [INFO] [stdout] 16 | | let energy = energy.to_string().parse::().unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 20 | | x += 1; [INFO] [stdout] 21 | | }).collect::<()>(); [INFO] [stdout] | |__________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you really need to exhaust the iterator, consider `.for_each(drop)` instead [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 14 | let _ = line.trim().chars().map(|energy| { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 52 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_string` [INFO] [stdout] --> src/aoc_2019/day_4.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | let mut current_string: &str; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/aoc_2019/day_4.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | let mut current_string = ¤t.to_string(); [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_string` [INFO] [stdout] --> src/aoc_2019/day_4.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | let mut current_string: &str; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/aoc_2019/day_4.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | let mut current_string = ¤t.to_string(); [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/aoc_2021/day_3.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let mut num_bits = lines[0].len(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/aoc_2021/day_3.rs:157:10 [INFO] [stdout] | [INFO] [stdout] 157 | for (index, byte) in oxygen_rating_candidates[0].as_bytes().iter().enumerate() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/aoc_2021/day_3.rs:166:10 [INFO] [stdout] | [INFO] [stdout] 166 | for (index, byte) in co2_rating_candidates[0].as_bytes().iter().enumerate() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/aoc_2021/day_3.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | let mut lines = input.trim().split("\n"); [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/aoc_2021/day_3.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | let mut lines_vec = lines.clone().collect::>(); [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/aoc_2021/day_3.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | let mut counts = count_it(lines_vec); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/aoc_2021/day_5.rs:346:13 [INFO] [stdout] | [INFO] [stdout] 346 | for i in 1..=1 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `newborn` [INFO] [stdout] --> src/aoc_2021/day_6.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | for newborn in 0..reproducing { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_newborn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `day` [INFO] [stdout] --> src/aoc_2021/day_6.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | for day in 0..days { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_day` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/aoc_2021/day_6.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let mut fish : Vec = input.trim().split(",").map(|f| f.parse().unwrap()).collect(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max` [INFO] [stdout] --> src/aoc_2021/day_7.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let max = xs.iter().max().unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_max` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/aoc_2021/day_7.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let mut median; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `left_side` [INFO] [stdout] --> src/aoc_2021/day_8.rs:62:10 [INFO] [stdout] | [INFO] [stdout] 62 | for (left_side, right_side, all_digits) in &parts { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_left_side` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/aoc_2021/day_9.rs:148:25 [INFO] [stdout] | [INFO] [stdout] 148 | let mut top_basin = basins.get_mut(top_basin_index).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/aoc_2021/day_9.rs:158:25 [INFO] [stdout] | [INFO] [stdout] 158 | let mut left_basin = basins.get_mut(left_basin_index).unwrap(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unknown` [INFO] [stdout] --> src/aoc_2021/day_10.rs:40:17 [INFO] [stdout] | [INFO] [stdout] 40 | unknown => panic!(), [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unknown` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unknown` [INFO] [stdout] --> src/aoc_2021/day_10.rs:82:21 [INFO] [stdout] | [INFO] [stdout] 82 | unknown => panic!(), [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unknown` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `point` [INFO] [stdout] --> src/aoc_2021/day_11.rs:71:10 [INFO] [stdout] | [INFO] [stdout] 71 | for (point, value) in map.iter_mut() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_point` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_part_2` is never used [INFO] [stdout] --> src/aoc_2019/day_2.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | fn test_part_2() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `start` and `end` are never read [INFO] [stdout] --> src/aoc_2021/day_12.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | struct Cave { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 5 | big: bool, [INFO] [stdout] 6 | start: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | end: bool, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Cave` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/aoc_2021/day_3.rs:73:11 [INFO] [stdout] | [INFO] [stdout] 73 | while index >= 0 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/aoc_2021/day_3.rs:105:11 [INFO] [stdout] | [INFO] [stdout] 105 | while index >= 0 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stepX` should have a snake case name [INFO] [stdout] --> src/aoc_2021/day_5.rs:223:13 [INFO] [stdout] | [INFO] [stdout] 223 | let stepX: i32 = match line.beg.x < line.end.x { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `step_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stepY` should have a snake case name [INFO] [stdout] --> src/aoc_2021/day_5.rs:228:13 [INFO] [stdout] | [INFO] [stdout] 228 | let stepY: i32 = match line.beg.y < line.end.y { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `step_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `collect` that must be used [INFO] [stdout] --> src/aoc_2021/day_11.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | / input.trim().split("\n").map(|line| { [INFO] [stdout] 14 | | line.trim().chars().map(|energy| { [INFO] [stdout] 15 | | [INFO] [stdout] 16 | | let energy = energy.to_string().parse::().unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 24 | | y += 1; [INFO] [stdout] 25 | | }).collect::<()>(); [INFO] [stdout] | |______________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you really need to exhaust the iterator, consider `.for_each(drop)` instead [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 13 | let _ = input.trim().split("\n").map(|line| { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `collect` that must be used [INFO] [stdout] --> src/aoc_2021/day_11.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | / line.trim().chars().map(|energy| { [INFO] [stdout] 15 | | [INFO] [stdout] 16 | | let energy = energy.to_string().parse::().unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 20 | | x += 1; [INFO] [stdout] 21 | | }).collect::<()>(); [INFO] [stdout] | |__________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you really need to exhaust the iterator, consider `.for_each(drop)` instead [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 14 | let _ = line.trim().chars().map(|energy| { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 49 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.86s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: wasm-bindgen v0.2.78 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] running `Command { std: "docker" "inspect" "08a897c99e99560fe4823b55509fb0753c7653ba40e026380ee5dc116aa562d2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "08a897c99e99560fe4823b55509fb0753c7653ba40e026380ee5dc116aa562d2", kill_on_drop: false }` [INFO] [stdout] 08a897c99e99560fe4823b55509fb0753c7653ba40e026380ee5dc116aa562d2 [INFO] checking reedspool/aoc-rust against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Freedspool%2Faoc-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/reedspool/aoc-rust on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/reedspool/aoc-rust [INFO] finished tweaking git repo https://github.com/reedspool/aoc-rust [INFO] tweaked toml for git repo https://github.com/reedspool/aoc-rust written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/reedspool/aoc-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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ef854e59dc02c3bacbd86e7ead2a06fcd80ff947aeb166ee8158de2f520ff9af [INFO] running `Command { std: "docker" "start" "-a" "ef854e59dc02c3bacbd86e7ead2a06fcd80ff947aeb166ee8158de2f520ff9af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ef854e59dc02c3bacbd86e7ead2a06fcd80ff947aeb166ee8158de2f520ff9af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ef854e59dc02c3bacbd86e7ead2a06fcd80ff947aeb166ee8158de2f520ff9af", kill_on_drop: false }` [INFO] [stdout] ef854e59dc02c3bacbd86e7ead2a06fcd80ff947aeb166ee8158de2f520ff9af [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bf452c138169764effaba62fb3df3828add9793445e28172864eacb644a00518 [INFO] running `Command { std: "docker" "start" "-a" "bf452c138169764effaba62fb3df3828add9793445e28172864eacb644a00518", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.32 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.78 [INFO] [stderr] Compiling syn v1.0.82 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling bumpalo v3.8.0 [INFO] [stderr] Compiling wasm-bindgen v0.2.78 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.78 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.78 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.78 [INFO] [stderr] Checking rust-advent-of-code v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `OpCode` [INFO] [stdout] --> src/intcode_interpreter.rs:1:45 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::intcode_interpreter::operation::{OpCode, Operation}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/intcode_interpreter/operation.rs:78:21 [INFO] [stdout] | [INFO] [stdout] 78 | let (output_location) = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 78 - let (output_location) = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] 78 + let output_location = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OpCode` [INFO] [stdout] --> src/intcode_interpreter.rs:1:45 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::intcode_interpreter::operation::{OpCode, Operation}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/intcode_interpreter/operation.rs:78:21 [INFO] [stdout] | [INFO] [stdout] 78 | let (output_location) = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 78 - let (output_location) = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] 78 + let output_location = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/intcode_interpreter/operation.rs:89:21 [INFO] [stdout] | [INFO] [stdout] 89 | let (output) = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 89 - let (output) = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] 89 + let output = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/intcode_interpreter/operation.rs:153:10 [INFO] [stdout] | [INFO] [stdout] 153 | ) -> (i32) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 153 - ) -> (i32) { [INFO] [stdout] 153 + ) -> i32 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OpCode` [INFO] [stdout] --> src/intcode_interpreter.rs:1:45 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::intcode_interpreter::operation::{OpCode, Operation}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/intcode_interpreter/operation.rs:89:21 [INFO] [stdout] | [INFO] [stdout] 89 | let (output) = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 89 - let (output) = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] 89 + let output = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/intcode_interpreter/operation.rs:153:10 [INFO] [stdout] | [INFO] [stdout] 153 | ) -> (i32) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 153 - ) -> (i32) { [INFO] [stdout] 153 + ) -> i32 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/intcode_interpreter/operation.rs:78:21 [INFO] [stdout] | [INFO] [stdout] 78 | let (output_location) = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 78 - let (output_location) = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] 78 + let output_location = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/intcode_interpreter/operation.rs:89:21 [INFO] [stdout] | [INFO] [stdout] 89 | let (output) = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 89 - let (output) = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] 89 + let output = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/intcode_interpreter/operation.rs:153:10 [INFO] [stdout] | [INFO] [stdout] 153 | ) -> (i32) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 153 - ) -> (i32) { [INFO] [stdout] 153 + ) -> i32 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::advent_utilities::read_input` [INFO] [stdout] --> src/aoc_2015/day_1.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | use crate::advent_utilities::read_input; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `directions` should have an upper camel case name [INFO] [stdout] --> src/aoc_2021/day_2.rs:1:6 [INFO] [stdout] | [INFO] [stdout] 1 | enum directions { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `Directions` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `forward` should have an upper camel case name [INFO] [stdout] --> src/aoc_2021/day_2.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | forward, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Forward` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `up` should have an upper camel case name [INFO] [stdout] --> src/aoc_2021/day_2.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | up, [INFO] [stdout] | ^^ help: convert the identifier to upper camel case (notice the capitalization): `Up` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `down` should have an upper camel case name [INFO] [stdout] --> src/aoc_2021/day_2.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | down [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Down` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `regex::Regex` [INFO] [stdout] --> src/aoc_2021/day_4.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use regex::Regex; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> src/aoc_2021/day_9.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap`, `HashSet` [INFO] [stdout] --> src/aoc_2021/day_10.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/aoc_2021/day_12.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/aoc_2021/day_12.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 71 | if (infinite_loop_trap == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 71 - if (infinite_loop_trap == 0) { [INFO] [stdout] 71 + if infinite_loop_trap == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OpCode` [INFO] [stdout] --> src/intcode_interpreter.rs:1:45 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::intcode_interpreter::operation::{OpCode, Operation}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/intcode_interpreter/operation.rs:78:21 [INFO] [stdout] | [INFO] [stdout] 78 | let (output_location) = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 78 - let (output_location) = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] 78 + let output_location = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/intcode_interpreter/operation.rs:89:21 [INFO] [stdout] | [INFO] [stdout] 89 | let (output) = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 89 - let (output) = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] 89 + let output = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/intcode_interpreter/operation.rs:153:10 [INFO] [stdout] | [INFO] [stdout] 153 | ) -> (i32) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 153 - ) -> (i32) { [INFO] [stdout] 153 + ) -> i32 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `directions` should have an upper camel case name [INFO] [stdout] --> src/aoc_2021/day_2.rs:1:6 [INFO] [stdout] | [INFO] [stdout] 1 | enum directions { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `Directions` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `forward` should have an upper camel case name [INFO] [stdout] --> src/aoc_2021/day_2.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | forward, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Forward` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `up` should have an upper camel case name [INFO] [stdout] --> src/aoc_2021/day_2.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | up, [INFO] [stdout] | ^^ help: convert the identifier to upper camel case (notice the capitalization): `Up` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `down` should have an upper camel case name [INFO] [stdout] --> src/aoc_2021/day_2.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | down [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Down` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `regex::Regex` [INFO] [stdout] --> src/aoc_2021/day_4.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use regex::Regex; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> src/aoc_2021/day_9.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap`, `HashSet` [INFO] [stdout] --> src/aoc_2021/day_10.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/aoc_2021/day_12.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/aoc_2021/day_12.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 71 | if (infinite_loop_trap == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 71 - if (infinite_loop_trap == 0) { [INFO] [stdout] 71 + if infinite_loop_trap == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output_location` [INFO] [stdout] --> src/intcode_interpreter/operation.rs:78:22 [INFO] [stdout] | [INFO] [stdout] 78 | let (output_location) = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_output_location` [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/lib.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let mut program = Program::parse(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: unused variable: `output_location` [INFO] [stdout] --> src/intcode_interpreter/operation.rs:78:22 [INFO] [stdout] | [INFO] [stdout] 78 | let (output_location) = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_output_location` [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/intcode_interpreter.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 115 | let mut program = Program::parse("4,0,99"); [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: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/intcode_interpreter.rs:121:13 [INFO] [stdout] | [INFO] [stdout] 121 | let mut program = Program::parse("1102,4,3,0,99"); [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/intcode_interpreter.rs:124:13 [INFO] [stdout] | [INFO] [stdout] 124 | let mut program = Program::parse("1002,4,3,0,99"); [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/intcode_interpreter.rs:127:13 [INFO] [stdout] | [INFO] [stdout] 127 | let mut program = Program::parse("102,4,3,0,99"); [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/lib.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let mut program = Program::parse(input); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::BufRead` [INFO] [stdout] --> src/aoc_2021/day_4.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::BufRead; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output_location` [INFO] [stdout] --> src/intcode_interpreter/operation.rs:78:22 [INFO] [stdout] | [INFO] [stdout] 78 | let (output_location) = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_output_location` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_string` [INFO] [stdout] --> src/aoc_2019/day_4.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | let mut current_string: &str; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/aoc_2019/day_4.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | let mut current_string = ¤t.to_string(); [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: `current_string` [INFO] [stdout] --> src/aoc_2019/day_4.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | let mut current_string: &str; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/aoc_2019/day_4.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | let mut current_string = ¤t.to_string(); [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/aoc_2021/day_3.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let mut num_bits = lines[0].len(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/aoc_2021/day_3.rs:157:10 [INFO] [stdout] | [INFO] [stdout] 157 | for (index, byte) in oxygen_rating_candidates[0].as_bytes().iter().enumerate() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/aoc_2021/day_3.rs:166:10 [INFO] [stdout] | [INFO] [stdout] 166 | for (index, byte) in co2_rating_candidates[0].as_bytes().iter().enumerate() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/aoc_2021/day_3.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | let mut lines = input.trim().split("\n"); [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/aoc_2021/day_3.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | let mut lines_vec = lines.clone().collect::>(); [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/aoc_2021/day_3.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | let mut counts = count_it(lines_vec); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `newborn` [INFO] [stdout] --> src/aoc_2021/day_6.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | for newborn in 0..reproducing { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_newborn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `day` [INFO] [stdout] --> src/aoc_2021/day_6.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | for day in 0..days { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_day` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/aoc_2021/day_6.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let mut fish : Vec = input.trim().split(",").map(|f| f.parse().unwrap()).collect(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max` [INFO] [stdout] --> src/aoc_2021/day_7.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let max = xs.iter().max().unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_max` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::BufRead` [INFO] [stdout] --> src/aoc_2021/day_4.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::BufRead; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/aoc_2021/day_7.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let mut median; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `left_side` [INFO] [stdout] --> src/aoc_2021/day_8.rs:62:10 [INFO] [stdout] | [INFO] [stdout] 62 | for (left_side, right_side, all_digits) in &parts { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_left_side` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output_location` [INFO] [stdout] --> src/intcode_interpreter/operation.rs:78:22 [INFO] [stdout] | [INFO] [stdout] 78 | let (output_location) = Operation::get_stuff_for_basic_unary_op( [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_output_location` [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/intcode_interpreter.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 115 | let mut program = Program::parse("4,0,99"); [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/intcode_interpreter.rs:121:13 [INFO] [stdout] | [INFO] [stdout] 121 | let mut program = Program::parse("1102,4,3,0,99"); [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/intcode_interpreter.rs:124:13 [INFO] [stdout] | [INFO] [stdout] 124 | let mut program = Program::parse("1002,4,3,0,99"); [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/intcode_interpreter.rs:127:13 [INFO] [stdout] | [INFO] [stdout] 127 | let mut program = Program::parse("102,4,3,0,99"); [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/aoc_2021/day_9.rs:148:25 [INFO] [stdout] | [INFO] [stdout] 148 | let mut top_basin = basins.get_mut(top_basin_index).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/aoc_2021/day_9.rs:158:25 [INFO] [stdout] | [INFO] [stdout] 158 | let mut left_basin = basins.get_mut(left_basin_index).unwrap(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unknown` [INFO] [stdout] --> src/aoc_2021/day_10.rs:40:17 [INFO] [stdout] | [INFO] [stdout] 40 | unknown => panic!(), [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unknown` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unknown` [INFO] [stdout] --> src/aoc_2021/day_10.rs:82:21 [INFO] [stdout] | [INFO] [stdout] 82 | unknown => panic!(), [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unknown` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `point` [INFO] [stdout] --> src/aoc_2021/day_11.rs:71:10 [INFO] [stdout] | [INFO] [stdout] 71 | for (point, value) in map.iter_mut() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_point` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `START` is never used [INFO] [stdout] --> src/aoc_2019/day_4.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | const START: i32 = 271973; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `END` is never used [INFO] [stdout] --> src/aoc_2019/day_4.rs:2:7 [INFO] [stdout] | [INFO] [stdout] 2 | const END: i32 = 785961; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_1` is never used [INFO] [stdout] --> src/aoc_2019/day_4.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn part_1() -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_2` is never used [INFO] [stdout] --> src/aoc_2019/day_4.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn part_2() -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `contains_pairs` is never used [INFO] [stdout] --> src/aoc_2019/day_4.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn contains_pairs(value: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `contains_pairs_no_triples` is never used [INFO] [stdout] --> src/aoc_2019/day_4.rs:70:4 [INFO] [stdout] | [INFO] [stdout] 70 | fn contains_pairs_no_triples(value: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `next_decrease` is never used [INFO] [stdout] --> src/aoc_2019/day_4.rs:105:4 [INFO] [stdout] | [INFO] [stdout] 105 | fn next_decrease(value: &str) -> Option<(usize, u8)> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_next_increase` is never used [INFO] [stdout] --> src/aoc_2019/day_4.rs:118:4 [INFO] [stdout] | [INFO] [stdout] 118 | fn find_next_increase(value: &str, place: (usize, u8)) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `start` and `end` are never read [INFO] [stdout] --> src/aoc_2021/day_12.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | struct Cave { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 5 | big: bool, [INFO] [stdout] 6 | start: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | end: bool, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Cave` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/aoc_2021/day_3.rs:73:11 [INFO] [stdout] | [INFO] [stdout] 73 | while index >= 0 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_string` [INFO] [stdout] --> src/aoc_2019/day_4.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | let mut current_string: &str; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/aoc_2021/day_3.rs:105:11 [INFO] [stdout] | [INFO] [stdout] 105 | while index >= 0 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/aoc_2019/day_4.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | let mut current_string = ¤t.to_string(); [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stepX` should have a snake case name [INFO] [stdout] --> src/aoc_2021/day_5.rs:223:13 [INFO] [stdout] | [INFO] [stdout] 223 | let stepX: i32 = match line.beg.x < line.end.x { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `step_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_string` [INFO] [stdout] --> src/aoc_2019/day_4.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | let mut current_string: &str; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stepY` should have a snake case name [INFO] [stdout] --> src/aoc_2021/day_5.rs:228:13 [INFO] [stdout] | [INFO] [stdout] 228 | let stepY: i32 = match line.beg.y < line.end.y { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `step_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/aoc_2019/day_4.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | let mut current_string = ¤t.to_string(); [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `collect` that must be used [INFO] [stdout] --> src/aoc_2021/day_11.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | / input.trim().split("\n").map(|line| { [INFO] [stdout] 14 | | line.trim().chars().map(|energy| { [INFO] [stdout] 15 | | [INFO] [stdout] 16 | | let energy = energy.to_string().parse::().unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 24 | | y += 1; [INFO] [stdout] 25 | | }).collect::<()>(); [INFO] [stdout] | |______________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you really need to exhaust the iterator, consider `.for_each(drop)` instead [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 13 | let _ = input.trim().split("\n").map(|line| { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `collect` that must be used [INFO] [stdout] --> src/aoc_2021/day_11.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | / line.trim().chars().map(|energy| { [INFO] [stdout] 15 | | [INFO] [stdout] 16 | | let energy = energy.to_string().parse::().unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 20 | | x += 1; [INFO] [stdout] 21 | | }).collect::<()>(); [INFO] [stdout] | |__________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you really need to exhaust the iterator, consider `.for_each(drop)` instead [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 14 | let _ = line.trim().chars().map(|energy| { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 52 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/aoc_2021/day_3.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let mut num_bits = lines[0].len(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/aoc_2021/day_3.rs:157:10 [INFO] [stdout] | [INFO] [stdout] 157 | for (index, byte) in oxygen_rating_candidates[0].as_bytes().iter().enumerate() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/aoc_2021/day_3.rs:166:10 [INFO] [stdout] | [INFO] [stdout] 166 | for (index, byte) in co2_rating_candidates[0].as_bytes().iter().enumerate() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/aoc_2021/day_3.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | let mut lines = input.trim().split("\n"); [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/aoc_2021/day_3.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | let mut lines_vec = lines.clone().collect::>(); [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/aoc_2021/day_3.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | let mut counts = count_it(lines_vec); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/aoc_2021/day_5.rs:346:13 [INFO] [stdout] | [INFO] [stdout] 346 | for i in 1..=1 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `newborn` [INFO] [stdout] --> src/aoc_2021/day_6.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | for newborn in 0..reproducing { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_newborn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `day` [INFO] [stdout] --> src/aoc_2021/day_6.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | for day in 0..days { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_day` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/aoc_2021/day_6.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let mut fish : Vec = input.trim().split(",").map(|f| f.parse().unwrap()).collect(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max` [INFO] [stdout] --> src/aoc_2021/day_7.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let max = xs.iter().max().unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_max` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/aoc_2021/day_7.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let mut median; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `left_side` [INFO] [stdout] --> src/aoc_2021/day_8.rs:62:10 [INFO] [stdout] | [INFO] [stdout] 62 | for (left_side, right_side, all_digits) in &parts { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_left_side` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/aoc_2021/day_9.rs:148:25 [INFO] [stdout] | [INFO] [stdout] 148 | let mut top_basin = basins.get_mut(top_basin_index).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/aoc_2021/day_9.rs:158:25 [INFO] [stdout] | [INFO] [stdout] 158 | let mut left_basin = basins.get_mut(left_basin_index).unwrap(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unknown` [INFO] [stdout] --> src/aoc_2021/day_10.rs:40:17 [INFO] [stdout] | [INFO] [stdout] 40 | unknown => panic!(), [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unknown` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unknown` [INFO] [stdout] --> src/aoc_2021/day_10.rs:82:21 [INFO] [stdout] | [INFO] [stdout] 82 | unknown => panic!(), [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unknown` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `point` [INFO] [stdout] --> src/aoc_2021/day_11.rs:71:10 [INFO] [stdout] | [INFO] [stdout] 71 | for (point, value) in map.iter_mut() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_point` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_part_2` is never used [INFO] [stdout] --> src/aoc_2019/day_2.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | fn test_part_2() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `start` and `end` are never read [INFO] [stdout] --> src/aoc_2021/day_12.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | struct Cave { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 5 | big: bool, [INFO] [stdout] 6 | start: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | end: bool, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Cave` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/aoc_2021/day_3.rs:73:11 [INFO] [stdout] | [INFO] [stdout] 73 | while index >= 0 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/aoc_2021/day_3.rs:105:11 [INFO] [stdout] | [INFO] [stdout] 105 | while index >= 0 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stepX` should have a snake case name [INFO] [stdout] --> src/aoc_2021/day_5.rs:223:13 [INFO] [stdout] | [INFO] [stdout] 223 | let stepX: i32 = match line.beg.x < line.end.x { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `step_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stepY` should have a snake case name [INFO] [stdout] --> src/aoc_2021/day_5.rs:228:13 [INFO] [stdout] | [INFO] [stdout] 228 | let stepY: i32 = match line.beg.y < line.end.y { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `step_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `collect` that must be used [INFO] [stdout] --> src/aoc_2021/day_11.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | / input.trim().split("\n").map(|line| { [INFO] [stdout] 14 | | line.trim().chars().map(|energy| { [INFO] [stdout] 15 | | [INFO] [stdout] 16 | | let energy = energy.to_string().parse::().unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 24 | | y += 1; [INFO] [stdout] 25 | | }).collect::<()>(); [INFO] [stdout] | |______________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you really need to exhaust the iterator, consider `.for_each(drop)` instead [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 13 | let _ = input.trim().split("\n").map(|line| { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `collect` that must be used [INFO] [stdout] --> src/aoc_2021/day_11.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | / line.trim().chars().map(|energy| { [INFO] [stdout] 15 | | [INFO] [stdout] 16 | | let energy = energy.to_string().parse::().unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 20 | | x += 1; [INFO] [stdout] 21 | | }).collect::<()>(); [INFO] [stdout] | |__________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you really need to exhaust the iterator, consider `.for_each(drop)` instead [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 14 | let _ = line.trim().chars().map(|energy| { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 49 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.22s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: wasm-bindgen v0.2.78 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "bf452c138169764effaba62fb3df3828add9793445e28172864eacb644a00518", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bf452c138169764effaba62fb3df3828add9793445e28172864eacb644a00518", kill_on_drop: false }` [INFO] [stdout] bf452c138169764effaba62fb3df3828add9793445e28172864eacb644a00518