[INFO] cloning repository https://github.com/ByJacob/advent-of-code-rust-2023 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ByJacob/advent-of-code-rust-2023" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FByJacob%2Fadvent-of-code-rust-2023", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FByJacob%2Fadvent-of-code-rust-2023'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b551120d3d7478df30e1244166844b350acfda43 [INFO] checking ByJacob/advent-of-code-rust-2023/b551120d3d7478df30e1244166844b350acfda43 against try#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FByJacob%2Fadvent-of-code-rust-2023" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ByJacob/advent-of-code-rust-2023 on toolchain 4d98531622e1718ae0bc3c7a1ab9cd8938428452 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-2-tc2/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/ByJacob/advent-of-code-rust-2023 [INFO] finished tweaking git repo https://github.com/ByJacob/advent-of-code-rust-2023 [INFO] tweaked toml for git repo https://github.com/ByJacob/advent-of-code-rust-2023 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ByJacob/advent-of-code-rust-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" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 89cb5493ad957f82388652848f433b7653a3c1ddaa062dda1f6c317cf48ca3be [INFO] running `Command { std: "docker" "start" "-a" "89cb5493ad957f82388652848f433b7653a3c1ddaa062dda1f6c317cf48ca3be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "89cb5493ad957f82388652848f433b7653a3c1ddaa062dda1f6c317cf48ca3be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "89cb5493ad957f82388652848f433b7653a3c1ddaa062dda1f6c317cf48ca3be", kill_on_drop: false }` [INFO] [stdout] 89cb5493ad957f82388652848f433b7653a3c1ddaa062dda1f6c317cf48ca3be [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1e9a85fcc0ae17bdbd19e24e785f4a87f4bfcbe1f579c18684830ca96e74e53a [INFO] running `Command { std: "docker" "start" "-a" "1e9a85fcc0ae17bdbd19e24e785f4a87f4bfcbe1f579c18684830ca96e74e53a", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling libc v0.2.150 [INFO] [stderr] Compiling proc-macro2 v1.0.70 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Checking bytemuck v1.14.0 [INFO] [stderr] Compiling paste v1.0.14 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Compiling matrixmultiply v0.3.8 [INFO] [stderr] Compiling portable-atomic v1.6.0 [INFO] [stderr] Checking memchr v2.6.4 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking number_prefix v0.4.0 [INFO] [stderr] Checking pico-args v0.5.0 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking tinyjson v2.5.1 [INFO] [stderr] Checking safe_arch v0.7.1 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Checking wide v0.7.13 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Checking getrandom v0.2.11 [INFO] [stderr] Checking console v0.15.7 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking num-complex v0.4.4 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Checking indicatif v0.17.7 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking regex-automata v0.4.3 [INFO] [stderr] Checking simba v0.8.1 [INFO] [stderr] Checking regex v1.10.2 [INFO] [stderr] Compiling nalgebra-macros v0.2.1 [INFO] [stderr] Checking nalgebra v0.32.3 [INFO] [stderr] Checking advent_of_code v0.10.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/template/readme_benchmarks.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | Parser(String), [INFO] [stdout] | ------ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 12 | Parser(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/template/readme_benchmarks.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | IO(io::Error), [INFO] [stdout] | -- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 13 | IO(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/template/run_multi.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | IO(io::Error), [INFO] [stdout] | -- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 52 | IO(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/template/readme_benchmarks.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | Parser(String), [INFO] [stdout] | ------ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 12 | Parser(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/template/readme_benchmarks.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | IO(io::Error), [INFO] [stdout] | -- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 13 | IO(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/template/run_multi.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | IO(io::Error), [INFO] [stdout] | -- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 52 | IO(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/bin/03.rs:97:21 [INFO] [stdout] | [INFO] [stdout] 97 | .for_each(|(k, v)| sum += v.get(0).expect("Element1") * v.get(1).expect("Element2")); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/bin/17.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `VecDeque` [INFO] [stdout] --> src/bin/17.rs:5:54 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::{BinaryHeap, HashMap, HashSet, VecDeque}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::log` [INFO] [stdout] --> src/bin/20.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use log::log; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::id` [INFO] [stdout] --> src/bin/20.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::process::id; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line_idx` [INFO] [stdout] --> src/bin/11.rs:79:10 [INFO] [stdout] | [INFO] [stdout] 79 | for (line_idx, line) in grid.lines().enumerate() { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_line_idx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result2` [INFO] [stdout] --> src/bin/11.rs:136:17 [INFO] [stdout] | [INFO] [stdout] 136 | let result2 = (end.0 - start.0).abs() + (end.1 - start.1).abs(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_result2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/bin/02.rs:42:17 [INFO] [stdout] | [INFO] [stdout] 42 | let id: i32 = id_str.parse().expect("Missing int"); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/12.rs:192:26 [INFO] [stdout] | [INFO] [stdout] 192 | fn replace_char_at_index(mut input_str: String, index: usize, new_char: char) -> String { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unique_labels` [INFO] [stdout] --> src/bin/07.rs:171:13 [INFO] [stdout] | [INFO] [stdout] 171 | let unique_labels: HashSet = self.cards.chars().collect(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unique_labels` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_joker` [INFO] [stdout] --> src/bin/07.rs:170:50 [INFO] [stdout] | [INFO] [stdout] 170 | fn determine_hand_type_with_joker(&mut self, is_joker: bool) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_joker` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/bin/12.rs:328:13 [INFO] [stdout] | [INFO] [stdout] 328 | for i in 0..4 { [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: `current_vector` [INFO] [stdout] --> src/bin/12.rs:335:17 [INFO] [stdout] | [INFO] [stdout] 335 | let mut current_vector: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_vector` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `test123` [INFO] [stdout] --> src/bin/07.rs:242:13 [INFO] [stdout] | [INFO] [stdout] 242 | let test123 = res.clone(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_test123` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_vector_len` [INFO] [stdout] --> src/bin/12.rs:336:17 [INFO] [stdout] | [INFO] [stdout] 336 | let mut current_vector_len = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_vector_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/12.rs:335:13 [INFO] [stdout] | [INFO] [stdout] 335 | let mut current_vector: Vec = Vec::new(); [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/bin/12.rs:336:13 [INFO] [stdout] | [INFO] [stdout] 336 | let mut current_vector_len = 0; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_hashes` is never used [INFO] [stdout] --> src/bin/12.rs:141:4 [INFO] [stdout] | [INFO] [stdout] 141 | fn count_hashes(input: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `replace_char_at_index` is never used [INFO] [stdout] --> src/bin/12.rs:192:4 [INFO] [stdout] | [INFO] [stdout] 192 | fn replace_char_at_index(mut input_str: String, index: usize, new_char: char) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_positions` is never used [INFO] [stdout] --> src/bin/12.rs:200:4 [INFO] [stdout] | [INFO] [stdout] 200 | fn find_positions(input_string: &str, target_char: char) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SpringPermutationCount` is never constructed [INFO] [stdout] --> src/bin/12.rs:213:8 [INFO] [stdout] | [INFO] [stdout] 213 | struct SpringPermutationCount { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `SplitToVector` is never used [INFO] [stdout] --> src/bin/07.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | trait SplitToVector { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result2` [INFO] [stdout] --> src/bin/11.rs:206:17 [INFO] [stdout] | [INFO] [stdout] 206 | let result2 = (end.0 - start.0).abs() + (end.1 - start.1).abs(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_result2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/bin/03.rs:97:21 [INFO] [stdout] | [INFO] [stdout] 97 | .for_each(|(k, v)| sum += v.get(0).expect("Element1") * v.get(1).expect("Element2")); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/bin/22.rs:121:28 [INFO] [stdout] | [INFO] [stdout] 121 | .filter(|(&k, &ref v)| v.contains(brick_name)) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/bin/12.rs:136:44 [INFO] [stdout] | [INFO] [stdout] 136 | .for_each(|number| result.push(number.parse().unwrap())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Directions` is never constructed [INFO] [stdout] --> src/bin/11.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Directions { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `successors` is never used [INFO] [stdout] --> src/bin/11.rs:96:8 [INFO] [stdout] | [INFO] [stdout] 95 | impl Pos { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] 96 | fn successors(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/bin/22.rs:242:24 [INFO] [stdout] | [INFO] [stdout] 242 | .filter(|(&k, &ref v)| v.contains(&brick.name)) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/bin/14.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | for i in 0..all_it { [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: `j` [INFO] [stdout] --> src/bin/14.rs:104:13 [INFO] [stdout] | [INFO] [stdout] 104 | for j in 0..4 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/bin/14.rs:158:17 [INFO] [stdout] | [INFO] [stdout] 158 | for i in 0..start_repeat { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `advent_of_code` (bin "12") due to 2 previous errors; 10 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `card_id` [INFO] [stdout] --> src/bin/04.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | let card_id: i32 = card_id.trim().parse().unwrap(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_card_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/bin/04.rs:33:46 [INFO] [stdout] | [INFO] [stdout] 33 | (0..common_elements.len()).for_each(|i| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `row_mirror_id` is never read [INFO] [stdout] --> src/bin/13.rs:20:21 [INFO] [stdout] | [INFO] [stdout] 20 | let mut row_mirror_id = 0; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `row_mirror_id` is never read [INFO] [stdout] --> src/bin/13.rs:88:21 [INFO] [stdout] | [INFO] [stdout] 88 | let mut row_mirror_id = 0; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_mirror` [INFO] [stdout] --> src/bin/13.rs:94:25 [INFO] [stdout] | [INFO] [stdout] 94 | let mut is_mirror = true; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_mirror` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/13.rs:94:21 [INFO] [stdout] | [INFO] [stdout] 94 | let mut is_mirror = true; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `permutations_list` is never read [INFO] [stdout] --> src/bin/19.rs:169:13 [INFO] [stdout] | [INFO] [stdout] 169 | let mut permutations_list: Vec<( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/bin/19.rs:316:41 [INFO] [stdout] | [INFO] [stdout] 316 | permutations_list.retain(|(key, v)| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/19.rs:195:21 [INFO] [stdout] | [INFO] [stdout] 195 | let mut part_value = match condition.left.as_str() { [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calc_new_permutation` is never used [INFO] [stdout] --> src/bin/19.rs:342:4 [INFO] [stdout] | [INFO] [stdout] 342 | fn calc_new_permutation( [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/bin/14.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | for i in 0..all_it { [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: `j` [INFO] [stdout] --> src/bin/14.rs:104:13 [INFO] [stdout] | [INFO] [stdout] 104 | for j in 0..4 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/bin/14.rs:158:17 [INFO] [stdout] | [INFO] [stdout] 158 | for i in 0..start_repeat { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line_idx` [INFO] [stdout] --> src/bin/10.rs:137:10 [INFO] [stdout] | [INFO] [stdout] 137 | for (line_idx, line) in grid.lines().enumerate() { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_line_idx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/10.rs:163:17 [INFO] [stdout] | [INFO] [stdout] 163 | let mut possible_positions: Vec<(usize, usize)> = [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line_idx` [INFO] [stdout] --> src/bin/16.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | for (line_idx, line) in grid.lines().enumerate() { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_line_idx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line_idx` [INFO] [stdout] --> src/bin/16.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | for (line_idx, line) in grid.lines().enumerate() { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_line_idx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `curr_len` [INFO] [stdout] --> src/bin/16.rs:80:29 [INFO] [stdout] | [INFO] [stdout] 80 | let curr_len = next_points2.len(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_curr_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `after_len` [INFO] [stdout] --> src/bin/16.rs:82:29 [INFO] [stdout] | [INFO] [stdout] 82 | let after_len = next_points2.len(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_after_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `curr_len` [INFO] [stdout] --> src/bin/16.rs:80:29 [INFO] [stdout] | [INFO] [stdout] 80 | let curr_len = next_points2.len(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_curr_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `after_len` [INFO] [stdout] --> src/bin/16.rs:82:29 [INFO] [stdout] | [INFO] [stdout] 82 | let after_len = next_points2.len(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_after_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/10.rs:223:9 [INFO] [stdout] | [INFO] [stdout] 223 | let mut file_content = String::from(input); [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/bin/10.rs:237:17 [INFO] [stdout] | [INFO] [stdout] 237 | let mut possible_positions: Vec<(usize, usize)> = [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/bin/12.rs:192:26 [INFO] [stdout] | [INFO] [stdout] 192 | fn replace_char_at_index(mut input_str: String, index: usize, new_char: char) -> String { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/bin/12.rs:328:13 [INFO] [stdout] | [INFO] [stdout] 328 | for i in 0..4 { [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: `current_vector` [INFO] [stdout] --> src/bin/12.rs:335:17 [INFO] [stdout] | [INFO] [stdout] 335 | let mut current_vector: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_vector` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_vector_len` [INFO] [stdout] --> src/bin/12.rs:336:17 [INFO] [stdout] | [INFO] [stdout] 336 | let mut current_vector_len = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_vector_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/16.rs:362:17 [INFO] [stdout] | [INFO] [stdout] 362 | let mut start_points = if i == 0 && j == 0 { [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/16.rs:362:17 [INFO] [stdout] | [INFO] [stdout] 362 | let mut start_points = if i == 0 && j == 0 { [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/12.rs:335:13 [INFO] [stdout] | [INFO] [stdout] 335 | let mut current_vector: Vec = Vec::new(); [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/bin/12.rs:336:13 [INFO] [stdout] | [INFO] [stdout] 336 | let mut current_vector_len = 0; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_hashes` is never used [INFO] [stdout] --> src/bin/12.rs:141:4 [INFO] [stdout] | [INFO] [stdout] 141 | fn count_hashes(input: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `replace_char_at_index` is never used [INFO] [stdout] --> src/bin/12.rs:192:4 [INFO] [stdout] | [INFO] [stdout] 192 | fn replace_char_at_index(mut input_str: String, index: usize, new_char: char) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_positions` is never used [INFO] [stdout] --> src/bin/12.rs:200:4 [INFO] [stdout] | [INFO] [stdout] 200 | fn find_positions(input_string: &str, target_char: char) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SpringPermutationCount` is never constructed [INFO] [stdout] --> src/bin/12.rs:213:8 [INFO] [stdout] | [INFO] [stdout] 213 | struct SpringPermutationCount { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/bin/12.rs:136:44 [INFO] [stdout] | [INFO] [stdout] 136 | .for_each(|number| result.push(number.parse().unwrap())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `advent_of_code` (bin "12" test) due to 2 previous errors; 10 warnings emitted [INFO] running `Command { std: "docker" "inspect" "1e9a85fcc0ae17bdbd19e24e785f4a87f4bfcbe1f579c18684830ca96e74e53a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1e9a85fcc0ae17bdbd19e24e785f4a87f4bfcbe1f579c18684830ca96e74e53a", kill_on_drop: false }` [INFO] [stdout] 1e9a85fcc0ae17bdbd19e24e785f4a87f4bfcbe1f579c18684830ca96e74e53a