[INFO] cloning repository https://github.com/thuchede/advent-of-code-2023 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/thuchede/advent-of-code-2023" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthuchede%2Fadvent-of-code-2023", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthuchede%2Fadvent-of-code-2023'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 76d3342b9c2d63e11bdae631444ebc346e277778 [INFO] checking thuchede/advent-of-code-2023 against master#642c19bfc3a5c1de985bf5d0cc8207ac9d22708a for pr-148577 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthuchede%2Fadvent-of-code-2023" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/thuchede/advent-of-code-2023 [INFO] finished tweaking git repo https://github.com/thuchede/advent-of-code-2023 [INFO] tweaked toml for git repo https://github.com/thuchede/advent-of-code-2023 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/thuchede/advent-of-code-2023 on toolchain 642c19bfc3a5c1de985bf5d0cc8207ac9d22708a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+642c19bfc3a5c1de985bf5d0cc8207ac9d22708a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/thuchede/advent-of-code-2023 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" "+642c19bfc3a5c1de985bf5d0cc8207ac9d22708a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded find_all v2.0.0 [INFO] [stderr] Downloaded num-complex v0.4.4 [INFO] [stderr] Downloaded num v0.4.1 [INFO] [stderr] Downloaded globset v0.4.14 [INFO] [stderr] Downloaded ignore v0.4.21 [INFO] [stderr] Downloaded syn v2.0.40 [INFO] [stderr] Downloaded bstr v1.8.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+642c19bfc3a5c1de985bf5d0cc8207ac9d22708a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 154600f21e938479f1e22f3bcaa28448a13a8f8e7ec7f188679185d19ccb13a2 [INFO] running `Command { std: "docker" "start" "-a" "154600f21e938479f1e22f3bcaa28448a13a8f8e7ec7f188679185d19ccb13a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "154600f21e938479f1e22f3bcaa28448a13a8f8e7ec7f188679185d19ccb13a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "154600f21e938479f1e22f3bcaa28448a13a8f8e7ec7f188679185d19ccb13a2", kill_on_drop: false }` [INFO] [stdout] 154600f21e938479f1e22f3bcaa28448a13a8f8e7ec7f188679185d19ccb13a2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+642c19bfc3a5c1de985bf5d0cc8207ac9d22708a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6959f402ee046d3aa45913a0e1ec7df0162fb9adfd1abba955d6e39c03aeefdb [INFO] running `Command { std: "docker" "start" "-a" "6959f402ee046d3aa45913a0e1ec7df0162fb9adfd1abba955d6e39c03aeefdb", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling memoffset v0.9.0 [INFO] [stderr] Checking memchr v2.6.4 [INFO] [stderr] Compiling crossbeam-utils v0.8.16 [INFO] [stderr] Compiling crossbeam-epoch v0.9.15 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Compiling rayon-core v1.12.0 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Checking walkdir v2.4.0 [INFO] [stderr] Checking find_all v2.0.0 [INFO] [stderr] Checking itertools v0.12.0 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Checking bstr v1.8.0 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking crossbeam-deque v0.8.3 [INFO] [stderr] Checking rayon v1.8.0 [INFO] [stderr] Checking num-complex v0.4.4 [INFO] [stderr] Checking regex-automata v0.4.3 [INFO] [stderr] Checking num v0.4.1 [INFO] [stderr] Checking globset v0.4.14 [INFO] [stderr] Checking regex v1.10.2 [INFO] [stderr] Checking ignore v0.4.21 [INFO] [stderr] Checking aoc-2023-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/day12.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/day12.rs:31:14 [INFO] [stdout] | [INFO] [stdout] 31 | for x in (0..(record.len())) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 31 - for x in (0..(record.len())) { [INFO] [stdout] 31 + for x in 0..(record.len()) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/day12.rs:54:14 [INFO] [stdout] | [INFO] [stdout] 54 | for x in (0..(record.len())) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 54 - for x in (0..(record.len())) { [INFO] [stdout] 54 + for x in 0..(record.len()) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/day12.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/day12.rs:31:14 [INFO] [stdout] | [INFO] [stdout] 31 | for x in (0..(record.len())) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 31 - for x in (0..(record.len())) { [INFO] [stdout] 31 + for x in 0..(record.len()) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/day12.rs:54:14 [INFO] [stdout] | [INFO] [stdout] 54 | for x in (0..(record.len())) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 54 - for x in (0..(record.len())) { [INFO] [stdout] 54 + for x in 0..(record.len()) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/day12.rs:193:18 [INFO] [stdout] | [INFO] [stdout] 193 | for x in (0..(sample.len())) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 193 - for x in (0..(sample.len())) { [INFO] [stdout] 193 + for x in 0..(sample.len()) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/day12.rs:123:24 [INFO] [stdout] | [INFO] [stdout] 123 | fn find_large_solution(line: String, records: Vec) -> (String, Vec) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `records` [INFO] [stdout] --> src/day12.rs:123:38 [INFO] [stdout] | [INFO] [stdout] 123 | fn find_large_solution(line: String, records: Vec) -> (String, Vec) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_records` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `group` [INFO] [stdout] --> src/day13.rs:25:24 [INFO] [stdout] | [INFO] [stdout] 25 | .filter(|(key, group)| *key) [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_group` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `group` [INFO] [stdout] --> src/day13.rs:172:24 [INFO] [stdout] | [INFO] [stdout] 172 | .filter(|(key, group)| *key) [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_group` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day14.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | let mut previous_layouts: Vec> = vec![]; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day14.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | let mut iterations = 0; [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/day14.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let mut flipped: Vec = flip(&sample); [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/day14.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let mut new_layout: Vec = flipped.iter().map(|line| slide_rock(line)).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/day14.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | let mut flipped: Vec = flip(&sample); [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/day14.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | let mut new_layout: Vec = flipped.iter().map(|line| slide_rock(line)).collect(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `previous_layouts` [INFO] [stdout] --> src/day14.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | let mut previous_layouts: Vec> = vec![]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_previous_layouts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iterations` [INFO] [stdout] --> src/day14.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | let mut iterations = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_iterations` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_layout` [INFO] [stdout] --> src/day14.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let mut new_layout: Vec = flipped.iter().map(|line| slide_rock(line)).collect(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_layout` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `part2` [INFO] [stdout] --> src/main.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let part2 = day14::part_2(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_part2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Hand` is never used [INFO] [stdout] --> src/day07.rs:158:6 [INFO] [stdout] | [INFO] [stdout] 158 | type Hand<'a> = (&'a str, i64, Strength); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ByStrength` is never used [INFO] [stdout] --> src/day07.rs:161:7 [INFO] [stdout] | [INFO] [stdout] 161 | trait ByStrength { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DesertMap` is never constructed [INFO] [stdout] --> src/day08.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | struct DesertMap { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_not_valid` is never used [INFO] [stdout] --> src/day12.rs:101:4 [INFO] [stdout] | [INFO] [stdout] 101 | fn is_not_valid(line: &str, groups: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_large_solution` is never used [INFO] [stdout] --> src/day12.rs:123:4 [INFO] [stdout] | [INFO] [stdout] 123 | fn find_large_solution(line: String, records: Vec) -> (String, Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/day03.rs:41:21 [INFO] [stdout] | [INFO] [stdout] 41 | fn parse_line(line: &str) -> (&str, Vec) { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 41 | fn parse_line(line: &str) -> (&str, Vec>) { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/day03.rs:71:24 [INFO] [stdout] | [INFO] [stdout] 71 | fn parse_line_v2(line: &str) -> (&str, Vec) { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 71 | fn parse_line_v2(line: &str) -> (&str, Vec>) { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/day12.rs:123:24 [INFO] [stdout] | [INFO] [stdout] 123 | fn find_large_solution(line: String, records: Vec) -> (String, Vec) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `records` [INFO] [stdout] --> src/day12.rs:123:38 [INFO] [stdout] | [INFO] [stdout] 123 | fn find_large_solution(line: String, records: Vec) -> (String, Vec) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_records` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `group` [INFO] [stdout] --> src/day13.rs:25:24 [INFO] [stdout] | [INFO] [stdout] 25 | .filter(|(key, group)| *key) [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_group` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `group` [INFO] [stdout] --> src/day13.rs:172:24 [INFO] [stdout] | [INFO] [stdout] 172 | .filter(|(key, group)| *key) [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_group` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day14.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | let mut previous_layouts: Vec> = vec![]; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day14.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | let mut iterations = 0; [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/day14.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let mut flipped: Vec = flip(&sample); [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/day14.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let mut new_layout: Vec = flipped.iter().map(|line| slide_rock(line)).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/day14.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | let mut flipped: Vec = flip(&sample); [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/day14.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | let mut new_layout: Vec = flipped.iter().map(|line| slide_rock(line)).collect(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `previous_layouts` [INFO] [stdout] --> src/day14.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | let mut previous_layouts: Vec> = vec![]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_previous_layouts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `iterations` [INFO] [stdout] --> src/day14.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | let mut iterations = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_iterations` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_layout` [INFO] [stdout] --> src/day14.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let mut new_layout: Vec = flipped.iter().map(|line| slide_rock(line)).collect(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_layout` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/day14.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | let res = read_from("src/input/sample14.txt"); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `part2` [INFO] [stdout] --> src/main.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let part2 = day14::part_2(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_part2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DesertMap` is never constructed [INFO] [stdout] --> src/day08.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | struct DesertMap { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_large_solution` is never used [INFO] [stdout] --> src/day12.rs:123:4 [INFO] [stdout] | [INFO] [stdout] 123 | fn find_large_solution(line: String, records: Vec) -> (String, Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/day03.rs:41:21 [INFO] [stdout] | [INFO] [stdout] 41 | fn parse_line(line: &str) -> (&str, Vec) { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 41 | fn parse_line(line: &str) -> (&str, Vec>) { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/day03.rs:71:24 [INFO] [stdout] | [INFO] [stdout] 71 | fn parse_line_v2(line: &str) -> (&str, Vec) { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 71 | fn parse_line_v2(line: &str) -> (&str, Vec>) { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.13s [INFO] running `Command { std: "docker" "inspect" "6959f402ee046d3aa45913a0e1ec7df0162fb9adfd1abba955d6e39c03aeefdb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6959f402ee046d3aa45913a0e1ec7df0162fb9adfd1abba955d6e39c03aeefdb", kill_on_drop: false }` [INFO] [stdout] 6959f402ee046d3aa45913a0e1ec7df0162fb9adfd1abba955d6e39c03aeefdb