[INFO] cloning repository https://github.com/oleksanderkorn/aoc-2024-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/oleksanderkorn/aoc-2024-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Foleksanderkorn%2Faoc-2024-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Foleksanderkorn%2Faoc-2024-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1c2f0a698387abfe48d488893c2c4fb91ccd6ba5 [INFO] linting oleksanderkorn/aoc-2024-rs against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Foleksanderkorn%2Faoc-2024-rs" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/oleksanderkorn/aoc-2024-rs [INFO] finished tweaking git repo https://github.com/oleksanderkorn/aoc-2024-rs [INFO] tweaked toml for git repo https://github.com/oleksanderkorn/aoc-2024-rs written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/oleksanderkorn/aoc-2024-rs on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/oleksanderkorn/aoc-2024-rs 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" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9186c439f68d6462bfddaaa848f825b177c2fd842345d89b9f858013f1a0bb06 [INFO] running `Command { std: "docker" "start" "-a" "9186c439f68d6462bfddaaa848f825b177c2fd842345d89b9f858013f1a0bb06", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9186c439f68d6462bfddaaa848f825b177c2fd842345d89b9f858013f1a0bb06", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9186c439f68d6462bfddaaa848f825b177c2fd842345d89b9f858013f1a0bb06", kill_on_drop: false }` [INFO] [stdout] 9186c439f68d6462bfddaaa848f825b177c2fd842345d89b9f858013f1a0bb06 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 857a892c93c532c948dc6328bb2cbbcdd763028d7e6dacfbe4b90558e92fbba3 [INFO] running `Command { std: "docker" "start" "-a" "857a892c93c532c948dc6328bb2cbbcdd763028d7e6dacfbe4b90558e92fbba3", kill_on_drop: false }` [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking aoc-2024 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function `print_arr` is never used [INFO] [stdout] --> src/day9.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | fn print_arr(arr: &[(isize, String)]) { [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 `print_arr` is never used [INFO] [stdout] --> src/day9.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | fn print_arr(arr: &[(isize, String)]) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: compiling a regex in a loop [INFO] [stdout] --> src/day3.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | let re = Regex::new(r"mul\(\d+,\d+\)").unwrap(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: move the regex construction outside this loop [INFO] [stdout] --> src/day3.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | for line in lines.iter() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#regex_creation_in_loops [INFO] [stdout] = note: `#[warn(clippy::regex_creation_in_loops)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: compiling a regex in a loop [INFO] [stdout] --> src/day3.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | let re = Regex::new(r"mul\(\d+,\d+\)").unwrap(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: move the regex construction outside this loop [INFO] [stdout] --> src/day3.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | for line in lines.iter() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#regex_creation_in_loops [INFO] [stdout] = note: `#[warn(clippy::regex_creation_in_loops)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/day4.rs:112:16 [INFO] [stdout] | [INFO] [stdout] 112 | if matrix[i][j] == 'M' [INFO] [stdout] | ________________^ [INFO] [stdout] 113 | | && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 114 | | && matrix[i + 2][j + 2] == 'S' [INFO] [stdout] 115 | | && matrix[i][j + 2] == 'S' [INFO] [stdout] 116 | | && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 117 | | && matrix[i + 2][j] == 'M' [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 112 - if matrix[i][j] == 'M' [INFO] [stdout] 113 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 114 - && matrix[i + 2][j + 2] == 'S' [INFO] [stdout] 115 - && matrix[i][j + 2] == 'S' [INFO] [stdout] 116 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 117 - && matrix[i + 2][j] == 'M' [INFO] [stdout] 112 + if !(matrix[i][j] != 'M' || matrix[i + 1][j + 1] != 'A' || matrix[i + 2][j + 2] != 'S' || matrix[i][j + 2] != 'S' || matrix[i + 2][j] != 'M') [INFO] [stdout] | [INFO] [stdout] 112 - if matrix[i][j] == 'M' [INFO] [stdout] 113 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 114 - && matrix[i + 2][j + 2] == 'S' [INFO] [stdout] 115 - && matrix[i][j + 2] == 'S' [INFO] [stdout] 116 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 117 - && matrix[i + 2][j] == 'M' [INFO] [stdout] 112 + if matrix[i][j] == 'M' && matrix[i + 1][j + 1] == 'A' && matrix[i + 2][j + 2] == 'S' && matrix[i][j + 2] == 'S' && matrix[i + 2][j] == 'M' [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/day4.rs:112:16 [INFO] [stdout] | [INFO] [stdout] 112 | if matrix[i][j] == 'M' [INFO] [stdout] | ________________^ [INFO] [stdout] 113 | | && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 114 | | && matrix[i + 2][j + 2] == 'S' [INFO] [stdout] 115 | | && matrix[i][j + 2] == 'S' [INFO] [stdout] 116 | | && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] | |______________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 112 - if matrix[i][j] == 'M' [INFO] [stdout] 113 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 114 - && matrix[i + 2][j + 2] == 'S' [INFO] [stdout] 115 - && matrix[i][j + 2] == 'S' [INFO] [stdout] 116 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 112 + if !(matrix[i][j] != 'M' || matrix[i + 1][j + 1] != 'A' || matrix[i + 2][j + 2] != 'S' || matrix[i][j + 2] != 'S') [INFO] [stdout] | [INFO] [stdout] 112 - if matrix[i][j] == 'M' [INFO] [stdout] 113 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 114 - && matrix[i + 2][j + 2] == 'S' [INFO] [stdout] 115 - && matrix[i][j + 2] == 'S' [INFO] [stdout] 116 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 112 + if matrix[i][j] == 'M' && matrix[i + 1][j + 1] == 'A' && matrix[i + 2][j + 2] == 'S' && matrix[i][j + 2] == 'S' [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/day4.rs:124:16 [INFO] [stdout] | [INFO] [stdout] 124 | if matrix[i][j] == 'S' [INFO] [stdout] | ________________^ [INFO] [stdout] 125 | | && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 126 | | && matrix[i + 2][j + 2] == 'M' [INFO] [stdout] 127 | | && matrix[i][j + 2] == 'S' [INFO] [stdout] 128 | | && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 129 | | && matrix[i + 2][j] == 'M' [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 124 - if matrix[i][j] == 'S' [INFO] [stdout] 125 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 126 - && matrix[i + 2][j + 2] == 'M' [INFO] [stdout] 127 - && matrix[i][j + 2] == 'S' [INFO] [stdout] 128 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 129 - && matrix[i + 2][j] == 'M' [INFO] [stdout] 124 + if !(matrix[i][j] != 'S' || matrix[i + 1][j + 1] != 'A' || matrix[i + 2][j + 2] != 'M' || matrix[i][j + 2] != 'S' || matrix[i + 2][j] != 'M') [INFO] [stdout] | [INFO] [stdout] 124 - if matrix[i][j] == 'S' [INFO] [stdout] 125 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 126 - && matrix[i + 2][j + 2] == 'M' [INFO] [stdout] 127 - && matrix[i][j + 2] == 'S' [INFO] [stdout] 128 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 129 - && matrix[i + 2][j] == 'M' [INFO] [stdout] 124 + if matrix[i][j] == 'S' && matrix[i + 1][j + 1] == 'A' && matrix[i + 2][j + 2] == 'M' && matrix[i][j + 2] == 'S' && matrix[i + 2][j] == 'M' [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/day4.rs:112:16 [INFO] [stdout] | [INFO] [stdout] 112 | if matrix[i][j] == 'M' [INFO] [stdout] | ________________^ [INFO] [stdout] 113 | | && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 114 | | && matrix[i + 2][j + 2] == 'S' [INFO] [stdout] 115 | | && matrix[i][j + 2] == 'S' [INFO] [stdout] 116 | | && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 117 | | && matrix[i + 2][j] == 'M' [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 112 - if matrix[i][j] == 'M' [INFO] [stdout] 113 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 114 - && matrix[i + 2][j + 2] == 'S' [INFO] [stdout] 115 - && matrix[i][j + 2] == 'S' [INFO] [stdout] 116 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 117 - && matrix[i + 2][j] == 'M' [INFO] [stdout] 112 + if !(matrix[i][j] != 'M' || matrix[i + 1][j + 1] != 'A' || matrix[i + 2][j + 2] != 'S' || matrix[i][j + 2] != 'S' || matrix[i + 2][j] != 'M') [INFO] [stdout] | [INFO] [stdout] 112 - if matrix[i][j] == 'M' [INFO] [stdout] 113 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 114 - && matrix[i + 2][j + 2] == 'S' [INFO] [stdout] 115 - && matrix[i][j + 2] == 'S' [INFO] [stdout] 116 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 117 - && matrix[i + 2][j] == 'M' [INFO] [stdout] 112 + if matrix[i][j] == 'M' && matrix[i + 1][j + 1] == 'A' && matrix[i + 2][j + 2] == 'S' && matrix[i][j + 2] == 'S' && matrix[i + 2][j] == 'M' [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/day4.rs:124:16 [INFO] [stdout] | [INFO] [stdout] 124 | if matrix[i][j] == 'S' [INFO] [stdout] | ________________^ [INFO] [stdout] 125 | | && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 126 | | && matrix[i + 2][j + 2] == 'M' [INFO] [stdout] 127 | | && matrix[i][j + 2] == 'S' [INFO] [stdout] 128 | | && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] | |______________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 124 - if matrix[i][j] == 'S' [INFO] [stdout] 125 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 126 - && matrix[i + 2][j + 2] == 'M' [INFO] [stdout] 127 - && matrix[i][j + 2] == 'S' [INFO] [stdout] 128 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 124 + if !(matrix[i][j] != 'S' || matrix[i + 1][j + 1] != 'A' || matrix[i + 2][j + 2] != 'M' || matrix[i][j + 2] != 'S') [INFO] [stdout] | [INFO] [stdout] 124 - if matrix[i][j] == 'S' [INFO] [stdout] 125 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 126 - && matrix[i + 2][j + 2] == 'M' [INFO] [stdout] 127 - && matrix[i][j + 2] == 'S' [INFO] [stdout] 128 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 124 + if matrix[i][j] == 'S' && matrix[i + 1][j + 1] == 'A' && matrix[i + 2][j + 2] == 'M' && matrix[i][j + 2] == 'S' [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/day4.rs:112:16 [INFO] [stdout] | [INFO] [stdout] 112 | if matrix[i][j] == 'M' [INFO] [stdout] | ________________^ [INFO] [stdout] 113 | | && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 114 | | && matrix[i + 2][j + 2] == 'S' [INFO] [stdout] 115 | | && matrix[i][j + 2] == 'S' [INFO] [stdout] 116 | | && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] | |______________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 112 - if matrix[i][j] == 'M' [INFO] [stdout] 113 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 114 - && matrix[i + 2][j + 2] == 'S' [INFO] [stdout] 115 - && matrix[i][j + 2] == 'S' [INFO] [stdout] 116 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 112 + if !(matrix[i][j] != 'M' || matrix[i + 1][j + 1] != 'A' || matrix[i + 2][j + 2] != 'S' || matrix[i][j + 2] != 'S') [INFO] [stdout] | [INFO] [stdout] 112 - if matrix[i][j] == 'M' [INFO] [stdout] 113 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 114 - && matrix[i + 2][j + 2] == 'S' [INFO] [stdout] 115 - && matrix[i][j + 2] == 'S' [INFO] [stdout] 116 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 112 + if matrix[i][j] == 'M' && matrix[i + 1][j + 1] == 'A' && matrix[i + 2][j + 2] == 'S' && matrix[i][j + 2] == 'S' [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/day4.rs:136:16 [INFO] [stdout] | [INFO] [stdout] 136 | if matrix[i][j] == 'S' [INFO] [stdout] | ________________^ [INFO] [stdout] 137 | | && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 138 | | && matrix[i + 2][j + 2] == 'M' [INFO] [stdout] 139 | | && matrix[i][j + 2] == 'M' [INFO] [stdout] 140 | | && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 141 | | && matrix[i + 2][j] == 'S' [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 136 - if matrix[i][j] == 'S' [INFO] [stdout] 137 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 138 - && matrix[i + 2][j + 2] == 'M' [INFO] [stdout] 139 - && matrix[i][j + 2] == 'M' [INFO] [stdout] 140 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 141 - && matrix[i + 2][j] == 'S' [INFO] [stdout] 136 + if !(matrix[i][j] != 'S' || matrix[i + 1][j + 1] != 'A' || matrix[i + 2][j + 2] != 'M' || matrix[i][j + 2] != 'M' || matrix[i + 2][j] != 'S') [INFO] [stdout] | [INFO] [stdout] 136 - if matrix[i][j] == 'S' [INFO] [stdout] 137 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 138 - && matrix[i + 2][j + 2] == 'M' [INFO] [stdout] 139 - && matrix[i][j + 2] == 'M' [INFO] [stdout] 140 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 141 - && matrix[i + 2][j] == 'S' [INFO] [stdout] 136 + if matrix[i][j] == 'S' && matrix[i + 1][j + 1] == 'A' && matrix[i + 2][j + 2] == 'M' && matrix[i][j + 2] == 'M' && matrix[i + 2][j] == 'S' [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/day4.rs:124:16 [INFO] [stdout] | [INFO] [stdout] 124 | if matrix[i][j] == 'S' [INFO] [stdout] | ________________^ [INFO] [stdout] 125 | | && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 126 | | && matrix[i + 2][j + 2] == 'M' [INFO] [stdout] 127 | | && matrix[i][j + 2] == 'S' [INFO] [stdout] 128 | | && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 129 | | && matrix[i + 2][j] == 'M' [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 124 - if matrix[i][j] == 'S' [INFO] [stdout] 125 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 126 - && matrix[i + 2][j + 2] == 'M' [INFO] [stdout] 127 - && matrix[i][j + 2] == 'S' [INFO] [stdout] 128 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 129 - && matrix[i + 2][j] == 'M' [INFO] [stdout] 124 + if !(matrix[i][j] != 'S' || matrix[i + 1][j + 1] != 'A' || matrix[i + 2][j + 2] != 'M' || matrix[i][j + 2] != 'S' || matrix[i + 2][j] != 'M') [INFO] [stdout] | [INFO] [stdout] 124 - if matrix[i][j] == 'S' [INFO] [stdout] 125 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 126 - && matrix[i + 2][j + 2] == 'M' [INFO] [stdout] 127 - && matrix[i][j + 2] == 'S' [INFO] [stdout] 128 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 129 - && matrix[i + 2][j] == 'M' [INFO] [stdout] 124 + if matrix[i][j] == 'S' && matrix[i + 1][j + 1] == 'A' && matrix[i + 2][j + 2] == 'M' && matrix[i][j + 2] == 'S' && matrix[i + 2][j] == 'M' [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/day4.rs:136:16 [INFO] [stdout] | [INFO] [stdout] 136 | if matrix[i][j] == 'S' [INFO] [stdout] | ________________^ [INFO] [stdout] 137 | | && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 138 | | && matrix[i + 2][j + 2] == 'M' [INFO] [stdout] 139 | | && matrix[i][j + 2] == 'M' [INFO] [stdout] 140 | | && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] | |______________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 136 - if matrix[i][j] == 'S' [INFO] [stdout] 137 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 138 - && matrix[i + 2][j + 2] == 'M' [INFO] [stdout] 139 - && matrix[i][j + 2] == 'M' [INFO] [stdout] 140 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 136 + if !(matrix[i][j] != 'S' || matrix[i + 1][j + 1] != 'A' || matrix[i + 2][j + 2] != 'M' || matrix[i][j + 2] != 'M') [INFO] [stdout] | [INFO] [stdout] 136 - if matrix[i][j] == 'S' [INFO] [stdout] 137 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 138 - && matrix[i + 2][j + 2] == 'M' [INFO] [stdout] 139 - && matrix[i][j + 2] == 'M' [INFO] [stdout] 140 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 136 + if matrix[i][j] == 'S' && matrix[i + 1][j + 1] == 'A' && matrix[i + 2][j + 2] == 'M' && matrix[i][j + 2] == 'M' [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/day4.rs:148:16 [INFO] [stdout] | [INFO] [stdout] 148 | if matrix[i][j] == 'M' [INFO] [stdout] | ________________^ [INFO] [stdout] 149 | | && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 150 | | && matrix[i + 2][j + 2] == 'S' [INFO] [stdout] 151 | | && matrix[i][j + 2] == 'M' [INFO] [stdout] 152 | | && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 153 | | && matrix[i + 2][j] == 'S' [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 148 - if matrix[i][j] == 'M' [INFO] [stdout] 149 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 150 - && matrix[i + 2][j + 2] == 'S' [INFO] [stdout] 151 - && matrix[i][j + 2] == 'M' [INFO] [stdout] 152 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 153 - && matrix[i + 2][j] == 'S' [INFO] [stdout] 148 + if !(matrix[i][j] != 'M' || matrix[i + 1][j + 1] != 'A' || matrix[i + 2][j + 2] != 'S' || matrix[i][j + 2] != 'M' || matrix[i + 2][j] != 'S') [INFO] [stdout] | [INFO] [stdout] 148 - if matrix[i][j] == 'M' [INFO] [stdout] 149 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 150 - && matrix[i + 2][j + 2] == 'S' [INFO] [stdout] 151 - && matrix[i][j + 2] == 'M' [INFO] [stdout] 152 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 153 - && matrix[i + 2][j] == 'S' [INFO] [stdout] 148 + if matrix[i][j] == 'M' && matrix[i + 1][j + 1] == 'A' && matrix[i + 2][j + 2] == 'S' && matrix[i][j + 2] == 'M' && matrix[i + 2][j] == 'S' [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/day4.rs:148:16 [INFO] [stdout] | [INFO] [stdout] 148 | if matrix[i][j] == 'M' [INFO] [stdout] | ________________^ [INFO] [stdout] 149 | | && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 150 | | && matrix[i + 2][j + 2] == 'S' [INFO] [stdout] 151 | | && matrix[i][j + 2] == 'M' [INFO] [stdout] 152 | | && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] | |______________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 148 - if matrix[i][j] == 'M' [INFO] [stdout] 149 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 150 - && matrix[i + 2][j + 2] == 'S' [INFO] [stdout] 151 - && matrix[i][j + 2] == 'M' [INFO] [stdout] 152 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 148 + if !(matrix[i][j] != 'M' || matrix[i + 1][j + 1] != 'A' || matrix[i + 2][j + 2] != 'S' || matrix[i][j + 2] != 'M') [INFO] [stdout] | [INFO] [stdout] 148 - if matrix[i][j] == 'M' [INFO] [stdout] 149 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 150 - && matrix[i + 2][j + 2] == 'S' [INFO] [stdout] 151 - && matrix[i][j + 2] == 'M' [INFO] [stdout] 152 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 148 + if matrix[i][j] == 'M' && matrix[i + 1][j + 1] == 'A' && matrix[i + 2][j + 2] == 'S' && matrix[i][j + 2] == 'M' [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/day4.rs:124:16 [INFO] [stdout] | [INFO] [stdout] 124 | if matrix[i][j] == 'S' [INFO] [stdout] | ________________^ [INFO] [stdout] 125 | | && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 126 | | && matrix[i + 2][j + 2] == 'M' [INFO] [stdout] 127 | | && matrix[i][j + 2] == 'S' [INFO] [stdout] 128 | | && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] | |______________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 124 - if matrix[i][j] == 'S' [INFO] [stdout] 125 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 126 - && matrix[i + 2][j + 2] == 'M' [INFO] [stdout] 127 - && matrix[i][j + 2] == 'S' [INFO] [stdout] 128 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 124 + if !(matrix[i][j] != 'S' || matrix[i + 1][j + 1] != 'A' || matrix[i + 2][j + 2] != 'M' || matrix[i][j + 2] != 'S') [INFO] [stdout] | [INFO] [stdout] 124 - if matrix[i][j] == 'S' [INFO] [stdout] 125 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 126 - && matrix[i + 2][j + 2] == 'M' [INFO] [stdout] 127 - && matrix[i][j + 2] == 'S' [INFO] [stdout] 128 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 124 + if matrix[i][j] == 'S' && matrix[i + 1][j + 1] == 'A' && matrix[i + 2][j + 2] == 'M' && matrix[i][j + 2] == 'S' [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/day4.rs:136:16 [INFO] [stdout] | [INFO] [stdout] 136 | if matrix[i][j] == 'S' [INFO] [stdout] | ________________^ [INFO] [stdout] 137 | | && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 138 | | && matrix[i + 2][j + 2] == 'M' [INFO] [stdout] 139 | | && matrix[i][j + 2] == 'M' [INFO] [stdout] 140 | | && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 141 | | && matrix[i + 2][j] == 'S' [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 136 - if matrix[i][j] == 'S' [INFO] [stdout] 137 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 138 - && matrix[i + 2][j + 2] == 'M' [INFO] [stdout] 139 - && matrix[i][j + 2] == 'M' [INFO] [stdout] 140 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 141 - && matrix[i + 2][j] == 'S' [INFO] [stdout] 136 + if !(matrix[i][j] != 'S' || matrix[i + 1][j + 1] != 'A' || matrix[i + 2][j + 2] != 'M' || matrix[i][j + 2] != 'M' || matrix[i + 2][j] != 'S') [INFO] [stdout] | [INFO] [stdout] 136 - if matrix[i][j] == 'S' [INFO] [stdout] 137 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 138 - && matrix[i + 2][j + 2] == 'M' [INFO] [stdout] 139 - && matrix[i][j + 2] == 'M' [INFO] [stdout] 140 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 141 - && matrix[i + 2][j] == 'S' [INFO] [stdout] 136 + if matrix[i][j] == 'S' && matrix[i + 1][j + 1] == 'A' && matrix[i + 2][j + 2] == 'M' && matrix[i][j + 2] == 'M' && matrix[i + 2][j] == 'S' [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/day4.rs:136:16 [INFO] [stdout] | [INFO] [stdout] 136 | if matrix[i][j] == 'S' [INFO] [stdout] | ________________^ [INFO] [stdout] 137 | | && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 138 | | && matrix[i + 2][j + 2] == 'M' [INFO] [stdout] 139 | | && matrix[i][j + 2] == 'M' [INFO] [stdout] 140 | | && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] | |______________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 136 - if matrix[i][j] == 'S' [INFO] [stdout] 137 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 138 - && matrix[i + 2][j + 2] == 'M' [INFO] [stdout] 139 - && matrix[i][j + 2] == 'M' [INFO] [stdout] 140 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 136 + if !(matrix[i][j] != 'S' || matrix[i + 1][j + 1] != 'A' || matrix[i + 2][j + 2] != 'M' || matrix[i][j + 2] != 'M') [INFO] [stdout] | [INFO] [stdout] 136 - if matrix[i][j] == 'S' [INFO] [stdout] 137 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 138 - && matrix[i + 2][j + 2] == 'M' [INFO] [stdout] 139 - && matrix[i][j + 2] == 'M' [INFO] [stdout] 140 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 136 + if matrix[i][j] == 'S' && matrix[i + 1][j + 1] == 'A' && matrix[i + 2][j + 2] == 'M' && matrix[i][j + 2] == 'M' [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/day4.rs:148:16 [INFO] [stdout] | [INFO] [stdout] 148 | if matrix[i][j] == 'M' [INFO] [stdout] | ________________^ [INFO] [stdout] 149 | | && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 150 | | && matrix[i + 2][j + 2] == 'S' [INFO] [stdout] 151 | | && matrix[i][j + 2] == 'M' [INFO] [stdout] 152 | | && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 153 | | && matrix[i + 2][j] == 'S' [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 148 - if matrix[i][j] == 'M' [INFO] [stdout] 149 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 150 - && matrix[i + 2][j + 2] == 'S' [INFO] [stdout] 151 - && matrix[i][j + 2] == 'M' [INFO] [stdout] 152 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 153 - && matrix[i + 2][j] == 'S' [INFO] [stdout] 148 + if !(matrix[i][j] != 'M' || matrix[i + 1][j + 1] != 'A' || matrix[i + 2][j + 2] != 'S' || matrix[i][j + 2] != 'M' || matrix[i + 2][j] != 'S') [INFO] [stdout] | [INFO] [stdout] 148 - if matrix[i][j] == 'M' [INFO] [stdout] 149 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 150 - && matrix[i + 2][j + 2] == 'S' [INFO] [stdout] 151 - && matrix[i][j + 2] == 'M' [INFO] [stdout] 152 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 153 - && matrix[i + 2][j] == 'S' [INFO] [stdout] 148 + if matrix[i][j] == 'M' && matrix[i + 1][j + 1] == 'A' && matrix[i + 2][j + 2] == 'S' && matrix[i][j + 2] == 'M' && matrix[i + 2][j] == 'S' [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/day4.rs:148:16 [INFO] [stdout] | [INFO] [stdout] 148 | if matrix[i][j] == 'M' [INFO] [stdout] | ________________^ [INFO] [stdout] 149 | | && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 150 | | && matrix[i + 2][j + 2] == 'S' [INFO] [stdout] 151 | | && matrix[i][j + 2] == 'M' [INFO] [stdout] 152 | | && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] | |______________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 148 - if matrix[i][j] == 'M' [INFO] [stdout] 149 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 150 - && matrix[i + 2][j + 2] == 'S' [INFO] [stdout] 151 - && matrix[i][j + 2] == 'M' [INFO] [stdout] 152 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 148 + if !(matrix[i][j] != 'M' || matrix[i + 1][j + 1] != 'A' || matrix[i + 2][j + 2] != 'S' || matrix[i][j + 2] != 'M') [INFO] [stdout] | [INFO] [stdout] 148 - if matrix[i][j] == 'M' [INFO] [stdout] 149 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 150 - && matrix[i + 2][j + 2] == 'S' [INFO] [stdout] 151 - && matrix[i][j + 2] == 'M' [INFO] [stdout] 152 - && matrix[i + 1][j + 1] == 'A' [INFO] [stdout] 148 + if matrix[i][j] == 'M' && matrix[i + 1][j + 1] == 'A' && matrix[i + 2][j + 2] == 'S' && matrix[i][j + 2] == 'M' [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `day10`, `day11`, `day1`, `day2`, `day3`, `day4`, `day5`, `day6`, `day7`, `day8`, and `day9` [INFO] [stdout] --> src/main.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use aoc_2024::{day1, day10, day11, day12, day2, day3, day4, day5, day6, day7, day8, day9}; [INFO] [stdout] | ^^^^ ^^^^^ ^^^^^ ^^^^ ^^^^ ^^^^ ^^^^ ^^^^ ^^^^ ^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `day10`, `day11`, `day1`, `day2`, `day3`, `day4`, `day5`, `day6`, `day7`, `day8`, and `day9` [INFO] [stdout] --> src/main.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use aoc_2024::{day1, day10, day11, day12, day2, day3, day4, day5, day6, day7, day8, day9}; [INFO] [stdout] | ^^^^ ^^^^^ ^^^^^ ^^^^ ^^^^ ^^^^ ^^^^ ^^^^ ^^^^ ^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.67s [INFO] running `Command { std: "docker" "inspect" "857a892c93c532c948dc6328bb2cbbcdd763028d7e6dacfbe4b90558e92fbba3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "857a892c93c532c948dc6328bb2cbbcdd763028d7e6dacfbe4b90558e92fbba3", kill_on_drop: false }` [INFO] [stdout] 857a892c93c532c948dc6328bb2cbbcdd763028d7e6dacfbe4b90558e92fbba3