[INFO] cloning repository https://github.com/kyegupov/aoc2022 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kyegupov/aoc2022" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkyegupov%2Faoc2022", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkyegupov%2Faoc2022'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 70416b9f58820eb1fa6f49de31312dfba395e696 [INFO] building kyegupov/aoc2022 against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkyegupov%2Faoc2022" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kyegupov/aoc2022 on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/kyegupov/aoc2022 [INFO] finished tweaking git repo https://github.com/kyegupov/aoc2022 [INFO] tweaked toml for git repo https://github.com/kyegupov/aoc2022 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/kyegupov/aoc2022 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 596cc6b748a65d0066ab5e1b94ff6ee7cb995d9b1ccbe7bd7024cf76a1d80bec [INFO] running `Command { std: "docker" "start" "-a" "596cc6b748a65d0066ab5e1b94ff6ee7cb995d9b1ccbe7bd7024cf76a1d80bec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "596cc6b748a65d0066ab5e1b94ff6ee7cb995d9b1ccbe7bd7024cf76a1d80bec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "596cc6b748a65d0066ab5e1b94ff6ee7cb995d9b1ccbe7bd7024cf76a1d80bec", kill_on_drop: false }` [INFO] [stdout] 596cc6b748a65d0066ab5e1b94ff6ee7cb995d9b1ccbe7bd7024cf76a1d80bec [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d8a257d402e212ab8dca2ee16a868c241cad7731be2d28bd4b11a0a3d24b7b10 [INFO] running `Command { std: "docker" "start" "-a" "d8a257d402e212ab8dca2ee16a868c241cad7731be2d28bd4b11a0a3d24b7b10", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling either v1.8.0 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling bit-set v0.5.3 [INFO] [stderr] Compiling nom v7.1.1 [INFO] [stderr] Compiling aoc2022 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main04b.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | for (i, line) in read_to_string("input04.txt")?.lines().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/main03a.rs:10:30 [INFO] [stdout] | [INFO] [stdout] 10 | 'a'..='z' => (*c as i64 - 'a' as i64 + 1), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 10 - 'a'..='z' => (*c as i64 - 'a' as i64 + 1), [INFO] [stdout] 10 + 'a'..='z' => *c as i64 - 'a' as i64 + 1, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Parser` is never used [INFO] [stdout] --> src/main04b.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | type Parser<'a, T> = fn(&'a str) -> IResult<&'a str, T>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/main03a.rs:11:30 [INFO] [stdout] | [INFO] [stdout] 11 | 'A'..='Z' => (*c as i64 - 'A' as i64 + 27), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 11 - 'A'..='Z' => (*c as i64 - 'A' as i64 + 27), [INFO] [stdout] 11 + 'A'..='Z' => *c as i64 - 'A' as i64 + 27, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BTreeSet` and `VecDeque` [INFO] [stdout] --> src/main14.rs:2:29 [INFO] [stdout] | [INFO] [stdout] 2 | collections::{BTreeMap, BTreeSet, VecDeque}, [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main03a.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | for (i, line) in read_to_string("input03.txt")?.lines().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/main14.rs:129:10 [INFO] [stdout] | [INFO] [stdout] 129 | for (y, line) in read_to_string("input14.txt")?.lines().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `directions` is never used [INFO] [stdout] --> src/main14.rs:42:7 [INFO] [stdout] | [INFO] [stdout] 42 | const directions: [Coord2D; 4] = [ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `directions` should have an upper case name [INFO] [stdout] --> src/main14.rs:42:7 [INFO] [stdout] | [INFO] [stdout] 42 | const directions: [Coord2D; 4] = [ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper case: `DIRECTIONS` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BTreeMap` and `VecDeque` [INFO] [stdout] --> src/main15.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | collections::{BTreeMap, BTreeSet, VecDeque}, [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/main15.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `error`, `is_digit`, and `multi::separated_list1` [INFO] [stdout] --> src/main15.rs:11:35 [INFO] [stdout] | [INFO] [stdout] 11 | character::{complete::digit1, is_digit}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 12 | combinator::{map, map_res, recognize}, [INFO] [stdout] 13 | error, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 14 | multi::separated_list1, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `bytes::complete::tag`, `character::complete::digit0`, `combinator::map`, `error`, and `sequence::tuple` [INFO] [stdout] --> src/main07.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | bytes::complete::tag, character::complete::digit0, combinator::map, error, sequence::tuple, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `bytes::complete::tag`, `character::complete::digit0`, `combinator::map`, `error`, and `sequence::tuple` [INFO] [stdout] --> src/main08.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | bytes::complete::tag, character::complete::digit0, combinator::map, error, sequence::tuple, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/main08.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `bytes::complete::tag`, `character::complete::digit0`, `combinator::map`, `error`, and `sequence::tuple` [INFO] [stdout] --> src/main05b.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | bytes::complete::tag, character::complete::digit0, combinator::map, error, sequence::tuple, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BTreeSet` [INFO] [stdout] --> src/main03b.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | collections::{BTreeMap, BTreeSet}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/main03b.rs:20:34 [INFO] [stdout] | [INFO] [stdout] 20 | 'a'..='z' => (c as i64 - 'a' as i64 + 1), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 20 - 'a'..='z' => (c as i64 - 'a' as i64 + 1), [INFO] [stdout] 20 + 'a'..='z' => c as i64 - 'a' as i64 + 1, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/main03b.rs:21:34 [INFO] [stdout] | [INFO] [stdout] 21 | 'A'..='Z' => (c as i64 - 'A' as i64 + 27), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 21 - 'A'..='Z' => (c as i64 - 'A' as i64 + 27), [INFO] [stdout] 21 + 'A'..='Z' => c as i64 - 'A' as i64 + 27, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main01a.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | for (i, line) in read_to_string("input01.txt")?.lines().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cmp::max` [INFO] [stdout] --> src/main09.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | cmp::max, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `bytes::complete::tag`, `character::complete::digit0`, `combinator::map`, `error`, and `sequence::tuple` [INFO] [stdout] --> src/main09.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | bytes::complete::tag, character::complete::digit0, combinator::map, error, sequence::tuple, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main01a.rs:12:17 [INFO] [stdout] | [INFO] [stdout] 12 | Err(x) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BTreeSet` [INFO] [stdout] --> src/main12.rs:2:29 [INFO] [stdout] | [INFO] [stdout] 2 | collections::{BTreeMap, BTreeSet, VecDeque}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `bytes::complete::tag`, `character::complete::digit0`, `combinator::map`, `error`, and `sequence::tuple` [INFO] [stdout] --> src/main06.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | bytes::complete::tag, character::complete::digit0, combinator::map, error, sequence::tuple, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ops::Index` [INFO] [stdout] --> src/main13.rs:1:62 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{env, error::Error, fmt::Debug, fs::read_to_string, ops::Index}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `digit0` [INFO] [stdout] --> src/main13.rs:7:27 [INFO] [stdout] | [INFO] [stdout] 7 | character::complete::{digit0, digit1}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `directions` should have an upper case name [INFO] [stdout] --> src/main12.rs:23:7 [INFO] [stdout] | [INFO] [stdout] 23 | const directions: [Coord2D; 4] = [ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper case: `DIRECTIONS` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rules` [INFO] [stdout] --> src/main15.rs:95:27 [INFO] [stdout] | [INFO] [stdout] 95 | fn do_tick(&mut self, rules: &Rules) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_rules` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main02b.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | for (i, line) in read_to_string("input02.txt")?.lines().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/main15.rs:105:10 [INFO] [stdout] | [INFO] [stdout] 105 | for (y, line) in read_to_string("input15.txt")?.lines().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main15.rs:145:14 [INFO] [stdout] | [INFO] [stdout] 145 | for (s, b) in rules.sensors_beacons { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main06.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | for (i, line) in read_to_string("input06.txt")?.lines().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add` and `signum` are never used [INFO] [stdout] --> src/main15.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 25 | impl Coord2D { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] 26 | fn add(self, o: Self) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | fn signum(&self) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `directions4` is never used [INFO] [stdout] --> src/main15.rs:50:7 [INFO] [stdout] | [INFO] [stdout] 50 | const directions4: [Coord2D; 4] = [ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `State` is never constructed [INFO] [stdout] --> src/main15.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | struct State {} [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `State` has a derived impl for the trait `Default`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_u64` is never used [INFO] [stdout] --> src/main15.rs:65:4 [INFO] [stdout] | [INFO] [stdout] 65 | fn parse_u64(input: &str) -> IResult<&str, u64> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `do_tick` is never used [INFO] [stdout] --> src/main15.rs:95:8 [INFO] [stdout] | [INFO] [stdout] 94 | impl State { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 95 | fn do_tick(&mut self, rules: &Rules) {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `directions4` should have an upper case name [INFO] [stdout] --> src/main15.rs:50:7 [INFO] [stdout] | [INFO] [stdout] 50 | const directions4: [Coord2D; 4] = [ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `DIRECTIONS4` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main05b.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | for (i, line) in read_to_string("input05.txt")?.lines().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main05b.rs:38:17 [INFO] [stdout] | [INFO] [stdout] 38 | for i in 0..qty { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Parser` is never used [INFO] [stdout] --> src/main06.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | type Parser<'a, T> = fn(&'a str) -> IResult<&'a str, T>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Parser` is never used [INFO] [stdout] --> src/main05b.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | type Parser<'a, T> = fn(&'a str) -> IResult<&'a str, T>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/main16.rs:95:30 [INFO] [stdout] | [INFO] [stdout] 95 | .filter(|(k)| !s.opened.contains(*k)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 95 - .filter(|(k)| !s.opened.contains(*k)) [INFO] [stdout] 95 + .filter(|k| !s.opened.contains(*k)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/main16.rs:96:27 [INFO] [stdout] | [INFO] [stdout] 96 | .map(|(k)| r.flows_by_idx[k] * (26 - 1 - r.distances_by_idx[0][k])) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 96 - .map(|(k)| r.flows_by_idx[k] * (26 - 1 - r.distances_by_idx[0][k])) [INFO] [stdout] 96 + .map(|k| r.flows_by_idx[k] * (26 - 1 - r.distances_by_idx[0][k])) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main08.rs:23:10 [INFO] [stdout] | [INFO] [stdout] 23 | for (i, line) in read_to_string("input08.txt")?.lines().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Parser` is never used [INFO] [stdout] --> src/main08.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | type Parser<'a, T> = fn(&'a str) -> IResult<&'a str, T>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Entry` is never used [INFO] [stdout] --> src/main08.rs:13:6 [INFO] [stdout] | [INFO] [stdout] 13 | enum Entry { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main13.rs:36:27 [INFO] [stdout] | [INFO] [stdout] 36 | (Item::Number(x), Item::List(_)) => Item::List(vec![self.clone()]).cmp(other), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/main13.rs:37:42 [INFO] [stdout] | [INFO] [stdout] 37 | (Item::List(_), Item::Number(y)) => self.cmp(&Item::List(vec![other.clone()])), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main09.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | for (i, line) in read_to_string("input09.txt")?.lines().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/main16.rs:167:10 [INFO] [stdout] | [INFO] [stdout] 167 | for (y, line) in read_to_string("input16.txt")?.lines().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i1` [INFO] [stdout] --> src/main16.rs:204:10 [INFO] [stdout] | [INFO] [stdout] 204 | for (i1, n1) in iter::once(&rules.start) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_i1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i2` [INFO] [stdout] --> src/main16.rs:209:14 [INFO] [stdout] | [INFO] [stdout] 209 | for (i2, n2) in iter::once(&rules.start) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_i2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main07.rs:25:10 [INFO] [stdout] | [INFO] [stdout] 25 | for (i, line) in read_to_string("input07.txt")?.lines().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Parser` is never used [INFO] [stdout] --> src/main09.rs:17:6 [INFO] [stdout] | [INFO] [stdout] 17 | type Parser<'a, T> = fn(&'a str) -> IResult<&'a str, T>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Entry` is never used [INFO] [stdout] --> src/main09.rs:20:6 [INFO] [stdout] | [INFO] [stdout] 20 | enum Entry { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Parser` is never used [INFO] [stdout] --> src/main07.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | type Parser<'a, T> = fn(&'a str) -> IResult<&'a str, T>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_i64` is never used [INFO] [stdout] --> src/main16.rs:133:4 [INFO] [stdout] | [INFO] [stdout] 133 | fn parse_i64(input: &str) -> IResult<&str, i64> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main04a.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | for (i, line) in read_to_string("input04.txt")?.lines().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main01b.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | for (i, line) in read_to_string("input01.txt")?.lines().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main01b.rs:12:17 [INFO] [stdout] | [INFO] [stdout] 12 | Err(x) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Parser` is never used [INFO] [stdout] --> src/main04a.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | type Parser<'a, T> = fn(&'a str) -> IResult<&'a str, T>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main02a.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | for (i, line) in read_to_string("input02.txt")?.lines().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BTreeMap`, `BTreeSet`, `cmp::max`, and `iter` [INFO] [stdout] --> src/main10.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | cmp::max, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 3 | collections::{BTreeMap, BTreeSet}, [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 7 | iter, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `IResult`, `bytes::complete::tag`, `character::complete::digit0`, `combinator::map`, `error`, and `sequence::tuple` [INFO] [stdout] --> src/main10.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | bytes::complete::tag, character::complete::digit0, combinator::map, error, sequence::tuple, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | IResult, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `bytes::complete::tag`, `character::complete::digit0`, `combinator::map`, `error`, and `sequence::tuple` [INFO] [stdout] --> src/main05a.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | bytes::complete::tag, character::complete::digit0, combinator::map, error, sequence::tuple, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main10.rs:56:10 [INFO] [stdout] | [INFO] [stdout] 56 | for (i, line) in read_to_string("input10.txt")?.lines().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main05a.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | for (i, line) in read_to_string("input05.txt")?.lines().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main05a.rs:37:17 [INFO] [stdout] | [INFO] [stdout] 37 | for i in 0..qty { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Parser` is never used [INFO] [stdout] --> src/main05a.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | type Parser<'a, T> = fn(&'a str) -> IResult<&'a str, T>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.87s [INFO] running `Command { std: "docker" "inspect" "d8a257d402e212ab8dca2ee16a868c241cad7731be2d28bd4b11a0a3d24b7b10", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d8a257d402e212ab8dca2ee16a868c241cad7731be2d28bd4b11a0a3d24b7b10", kill_on_drop: false }` [INFO] [stdout] d8a257d402e212ab8dca2ee16a868c241cad7731be2d28bd4b11a0a3d24b7b10 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bc67cfd59f2f330b3ed7f9d412747a7b4e0bfd7755b44a6ac2d23e5354559b8e [INFO] running `Command { std: "docker" "start" "-a" "bc67cfd59f2f330b3ed7f9d412747a7b4e0bfd7755b44a6ac2d23e5354559b8e", kill_on_drop: false }` [INFO] [stderr] Compiling aoc2022 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/main03a.rs:10:30 [INFO] [stdout] | [INFO] [stdout] 10 | 'a'..='z' => (*c as i64 - 'a' as i64 + 1), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 10 - 'a'..='z' => (*c as i64 - 'a' as i64 + 1), [INFO] [stdout] 10 + 'a'..='z' => *c as i64 - 'a' as i64 + 1, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/main03a.rs:11:30 [INFO] [stdout] | [INFO] [stdout] 11 | 'A'..='Z' => (*c as i64 - 'A' as i64 + 27), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 11 - 'A'..='Z' => (*c as i64 - 'A' as i64 + 27), [INFO] [stdout] 11 + 'A'..='Z' => *c as i64 - 'A' as i64 + 27, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BTreeSet` [INFO] [stdout] --> src/main03b.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | collections::{BTreeMap, BTreeSet}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/main03b.rs:20:34 [INFO] [stdout] | [INFO] [stdout] 20 | 'a'..='z' => (c as i64 - 'a' as i64 + 1), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 20 - 'a'..='z' => (c as i64 - 'a' as i64 + 1), [INFO] [stdout] 20 + 'a'..='z' => c as i64 - 'a' as i64 + 1, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/main03b.rs:21:34 [INFO] [stdout] | [INFO] [stdout] 21 | 'A'..='Z' => (c as i64 - 'A' as i64 + 27), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 21 - 'A'..='Z' => (c as i64 - 'A' as i64 + 27), [INFO] [stdout] 21 + 'A'..='Z' => c as i64 - 'A' as i64 + 27, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `bytes::complete::tag`, `character::complete::digit0`, `combinator::map`, `error`, and `sequence::tuple` [INFO] [stdout] --> src/main05b.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | bytes::complete::tag, character::complete::digit0, combinator::map, error, sequence::tuple, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BTreeSet` [INFO] [stdout] --> src/main12.rs:2:29 [INFO] [stdout] | [INFO] [stdout] 2 | collections::{BTreeMap, BTreeSet, VecDeque}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main03a.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | for (i, line) in read_to_string("input03.txt")?.lines().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main04b.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | for (i, line) in read_to_string("input04.txt")?.lines().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main02a.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | for (i, line) in read_to_string("input02.txt")?.lines().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `bytes::complete::tag`, `character::complete::digit0`, `combinator::map`, `error`, and `sequence::tuple` [INFO] [stdout] --> src/main08.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | bytes::complete::tag, character::complete::digit0, combinator::map, error, sequence::tuple, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main05b.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | for (i, line) in read_to_string("input05.txt")?.lines().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main05b.rs:38:17 [INFO] [stdout] | [INFO] [stdout] 38 | for i in 0..qty { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/main08.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BTreeMap`, `BTreeSet`, `cmp::max`, and `iter` [INFO] [stdout] --> src/main10.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | cmp::max, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 3 | collections::{BTreeMap, BTreeSet}, [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 7 | iter, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `IResult`, `bytes::complete::tag`, `character::complete::digit0`, `combinator::map`, `error`, and `sequence::tuple` [INFO] [stdout] --> src/main10.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | bytes::complete::tag, character::complete::digit0, combinator::map, error, sequence::tuple, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | IResult, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Parser` is never used [INFO] [stdout] --> src/main05b.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | type Parser<'a, T> = fn(&'a str) -> IResult<&'a str, T>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Parser` is never used [INFO] [stdout] --> src/main04b.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | type Parser<'a, T> = fn(&'a str) -> IResult<&'a str, T>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ops::Index` [INFO] [stdout] --> src/main13.rs:1:62 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{env, error::Error, fmt::Debug, fs::read_to_string, ops::Index}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `digit0` [INFO] [stdout] --> src/main13.rs:7:27 [INFO] [stdout] | [INFO] [stdout] 7 | character::complete::{digit0, digit1}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main01a.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | for (i, line) in read_to_string("input01.txt")?.lines().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main01a.rs:12:17 [INFO] [stdout] | [INFO] [stdout] 12 | Err(x) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main01b.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | for (i, line) in read_to_string("input01.txt")?.lines().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main01b.rs:12:17 [INFO] [stdout] | [INFO] [stdout] 12 | Err(x) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cmp::max` [INFO] [stdout] --> src/main09.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | cmp::max, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `bytes::complete::tag`, `character::complete::digit0`, `combinator::map`, `error`, and `sequence::tuple` [INFO] [stdout] --> src/main09.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | bytes::complete::tag, character::complete::digit0, combinator::map, error, sequence::tuple, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main04a.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | for (i, line) in read_to_string("input04.txt")?.lines().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main02b.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | for (i, line) in read_to_string("input02.txt")?.lines().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main10.rs:56:10 [INFO] [stdout] | [INFO] [stdout] 56 | for (i, line) in read_to_string("input10.txt")?.lines().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `directions` should have an upper case name [INFO] [stdout] --> src/main12.rs:23:7 [INFO] [stdout] | [INFO] [stdout] 23 | const directions: [Coord2D; 4] = [ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper case: `DIRECTIONS` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main08.rs:23:10 [INFO] [stdout] | [INFO] [stdout] 23 | for (i, line) in read_to_string("input08.txt")?.lines().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Parser` is never used [INFO] [stdout] --> src/main04a.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | type Parser<'a, T> = fn(&'a str) -> IResult<&'a str, T>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main09.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | for (i, line) in read_to_string("input09.txt")?.lines().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main13.rs:36:27 [INFO] [stdout] | [INFO] [stdout] 36 | (Item::Number(x), Item::List(_)) => Item::List(vec![self.clone()]).cmp(other), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/main13.rs:37:42 [INFO] [stdout] | [INFO] [stdout] 37 | (Item::List(_), Item::Number(y)) => self.cmp(&Item::List(vec![other.clone()])), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Parser` is never used [INFO] [stdout] --> src/main08.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | type Parser<'a, T> = fn(&'a str) -> IResult<&'a str, T>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Entry` is never used [INFO] [stdout] --> src/main08.rs:13:6 [INFO] [stdout] | [INFO] [stdout] 13 | enum Entry { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Parser` is never used [INFO] [stdout] --> src/main09.rs:17:6 [INFO] [stdout] | [INFO] [stdout] 17 | type Parser<'a, T> = fn(&'a str) -> IResult<&'a str, T>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Entry` is never used [INFO] [stdout] --> src/main09.rs:20:6 [INFO] [stdout] | [INFO] [stdout] 20 | enum Entry { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `bytes::complete::tag`, `character::complete::digit0`, `combinator::map`, `error`, and `sequence::tuple` [INFO] [stdout] --> src/main07.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | bytes::complete::tag, character::complete::digit0, combinator::map, error, sequence::tuple, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main07.rs:25:10 [INFO] [stdout] | [INFO] [stdout] 25 | for (i, line) in read_to_string("input07.txt")?.lines().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Parser` is never used [INFO] [stdout] --> src/main07.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | type Parser<'a, T> = fn(&'a str) -> IResult<&'a str, T>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `bytes::complete::tag`, `character::complete::digit0`, `combinator::map`, `error`, and `sequence::tuple` [INFO] [stdout] --> src/main05a.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | bytes::complete::tag, character::complete::digit0, combinator::map, error, sequence::tuple, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main05a.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | for (i, line) in read_to_string("input05.txt")?.lines().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main05a.rs:37:17 [INFO] [stdout] | [INFO] [stdout] 37 | for i in 0..qty { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Parser` is never used [INFO] [stdout] --> src/main05a.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | type Parser<'a, T> = fn(&'a str) -> IResult<&'a str, T>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `bytes::complete::tag`, `character::complete::digit0`, `combinator::map`, `error`, and `sequence::tuple` [INFO] [stdout] --> src/main06.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | bytes::complete::tag, character::complete::digit0, combinator::map, error, sequence::tuple, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main06.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | for (i, line) in read_to_string("input06.txt")?.lines().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Parser` is never used [INFO] [stdout] --> src/main06.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | type Parser<'a, T> = fn(&'a str) -> IResult<&'a str, T>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BTreeSet` and `VecDeque` [INFO] [stdout] --> src/main14.rs:2:29 [INFO] [stdout] | [INFO] [stdout] 2 | collections::{BTreeMap, BTreeSet, VecDeque}, [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/main14.rs:129:10 [INFO] [stdout] | [INFO] [stdout] 129 | for (y, line) in read_to_string("input14.txt")?.lines().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `directions` is never used [INFO] [stdout] --> src/main14.rs:42:7 [INFO] [stdout] | [INFO] [stdout] 42 | const directions: [Coord2D; 4] = [ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `directions` should have an upper case name [INFO] [stdout] --> src/main14.rs:42:7 [INFO] [stdout] | [INFO] [stdout] 42 | const directions: [Coord2D; 4] = [ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper case: `DIRECTIONS` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/main16.rs:95:30 [INFO] [stdout] | [INFO] [stdout] 95 | .filter(|(k)| !s.opened.contains(*k)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 95 - .filter(|(k)| !s.opened.contains(*k)) [INFO] [stdout] 95 + .filter(|k| !s.opened.contains(*k)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/main16.rs:96:27 [INFO] [stdout] | [INFO] [stdout] 96 | .map(|(k)| r.flows_by_idx[k] * (26 - 1 - r.distances_by_idx[0][k])) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 96 - .map(|(k)| r.flows_by_idx[k] * (26 - 1 - r.distances_by_idx[0][k])) [INFO] [stdout] 96 + .map(|k| r.flows_by_idx[k] * (26 - 1 - r.distances_by_idx[0][k])) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BTreeMap` and `VecDeque` [INFO] [stdout] --> src/main15.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | collections::{BTreeMap, BTreeSet, VecDeque}, [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/main15.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `error`, `is_digit`, and `multi::separated_list1` [INFO] [stdout] --> src/main15.rs:11:35 [INFO] [stdout] | [INFO] [stdout] 11 | character::{complete::digit1, is_digit}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 12 | combinator::{map, map_res, recognize}, [INFO] [stdout] 13 | error, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 14 | multi::separated_list1, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rules` [INFO] [stdout] --> src/main15.rs:95:27 [INFO] [stdout] | [INFO] [stdout] 95 | fn do_tick(&mut self, rules: &Rules) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_rules` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/main15.rs:105:10 [INFO] [stdout] | [INFO] [stdout] 105 | for (y, line) in read_to_string("input15.txt")?.lines().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main15.rs:145:14 [INFO] [stdout] | [INFO] [stdout] 145 | for (s, b) in rules.sensors_beacons { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add` and `signum` are never used [INFO] [stdout] --> src/main15.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 25 | impl Coord2D { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] 26 | fn add(self, o: Self) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | fn signum(&self) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `directions4` is never used [INFO] [stdout] --> src/main15.rs:50:7 [INFO] [stdout] | [INFO] [stdout] 50 | const directions4: [Coord2D; 4] = [ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `State` is never constructed [INFO] [stdout] --> src/main15.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | struct State {} [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `State` has a derived impl for the trait `Default`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_u64` is never used [INFO] [stdout] --> src/main15.rs:65:4 [INFO] [stdout] | [INFO] [stdout] 65 | fn parse_u64(input: &str) -> IResult<&str, u64> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `do_tick` is never used [INFO] [stdout] --> src/main15.rs:95:8 [INFO] [stdout] | [INFO] [stdout] 94 | impl State { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 95 | fn do_tick(&mut self, rules: &Rules) {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `directions4` should have an upper case name [INFO] [stdout] --> src/main15.rs:50:7 [INFO] [stdout] | [INFO] [stdout] 50 | const directions4: [Coord2D; 4] = [ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `DIRECTIONS4` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/main16.rs:167:10 [INFO] [stdout] | [INFO] [stdout] 167 | for (y, line) in read_to_string("input16.txt")?.lines().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i1` [INFO] [stdout] --> src/main16.rs:204:10 [INFO] [stdout] | [INFO] [stdout] 204 | for (i1, n1) in iter::once(&rules.start) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_i1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i2` [INFO] [stdout] --> src/main16.rs:209:14 [INFO] [stdout] | [INFO] [stdout] 209 | for (i2, n2) in iter::once(&rules.start) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_i2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_i64` is never used [INFO] [stdout] --> src/main16.rs:133:4 [INFO] [stdout] | [INFO] [stdout] 133 | fn parse_i64(input: &str) -> IResult<&str, i64> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.17s [INFO] running `Command { std: "docker" "inspect" "bc67cfd59f2f330b3ed7f9d412747a7b4e0bfd7755b44a6ac2d23e5354559b8e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bc67cfd59f2f330b3ed7f9d412747a7b4e0bfd7755b44a6ac2d23e5354559b8e", kill_on_drop: false }` [INFO] [stdout] bc67cfd59f2f330b3ed7f9d412747a7b4e0bfd7755b44a6ac2d23e5354559b8e