[INFO] cloning repository https://github.com/MartMcMahon/advent-of-code-23 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/MartMcMahon/advent-of-code-23" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMartMcMahon%2Fadvent-of-code-23", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMartMcMahon%2Fadvent-of-code-23'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 33de4457fb3debcedb3e2335c9323887c3ab8730 [INFO] checking MartMcMahon/advent-of-code-23/33de4457fb3debcedb3e2335c9323887c3ab8730 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%2FMartMcMahon%2Fadvent-of-code-23" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/MartMcMahon/advent-of-code-23 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] started tweaking git repo https://github.com/MartMcMahon/advent-of-code-23 [INFO] finished tweaking git repo https://github.com/MartMcMahon/advent-of-code-23 [INFO] tweaked toml for git repo https://github.com/MartMcMahon/advent-of-code-23 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/MartMcMahon/advent-of-code-23 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-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 6c751d2b8aa767faffb11f01d2937d85c555414963873aa6b9ee111dd725bd5f [INFO] running `Command { std: "docker" "start" "-a" "6c751d2b8aa767faffb11f01d2937d85c555414963873aa6b9ee111dd725bd5f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6c751d2b8aa767faffb11f01d2937d85c555414963873aa6b9ee111dd725bd5f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6c751d2b8aa767faffb11f01d2937d85c555414963873aa6b9ee111dd725bd5f", kill_on_drop: false }` [INFO] [stdout] 6c751d2b8aa767faffb11f01d2937d85c555414963873aa6b9ee111dd725bd5f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] a0c5bd08f6f3eb4576632be8eb3d83f9009824601b38dde72e820b5cd1c65017 [INFO] running `Command { std: "docker" "start" "-a" "a0c5bd08f6f3eb4576632be8eb3d83f9009824601b38dde72e820b5cd1c65017", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.70 [INFO] [stderr] Compiling serde v1.0.193 [INFO] [stderr] Compiling memoffset v0.9.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.16 [INFO] [stderr] Compiling crossbeam-epoch v0.9.15 [INFO] [stderr] Compiling serde_json v1.0.108 [INFO] [stderr] Checking memchr v2.6.4 [INFO] [stderr] Checking itoa v1.0.9 [INFO] [stderr] Checking ryu v1.0.15 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Compiling rustix v0.38.26 [INFO] [stderr] Compiling anyhow v1.0.75 [INFO] [stderr] Compiling rayon-core v1.12.0 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Checking plotters-backend v0.3.5 [INFO] [stderr] Checking half v1.8.2 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Checking anstyle v1.0.4 [INFO] [stderr] Checking ciborium-io v0.2.1 [INFO] [stderr] Checking clap_lex v0.6.0 [INFO] [stderr] Checking crossbeam-deque v0.8.3 [INFO] [stderr] Compiling syn v2.0.39 [INFO] [stderr] Checking clap_builder v4.4.11 [INFO] [stderr] Checking ciborium-ll v0.2.1 [INFO] [stderr] Checking colored v2.1.0 [INFO] [stderr] Checking gnuplot v0.0.39 [INFO] [stderr] Checking plotters-svg v0.3.5 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking cast v0.3.0 [INFO] [stderr] Checking is-terminal v0.4.9 [INFO] [stderr] Checking rayon v1.8.0 [INFO] [stderr] Checking oorandom v11.1.3 [INFO] [stderr] Checking anes v0.1.6 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Checking clap v4.4.11 [INFO] [stderr] Checking plotters v0.3.5 [INFO] [stderr] Checking regex-automata v0.4.3 [INFO] [stderr] Checking criterion-plot v0.5.0 [INFO] [stderr] Compiling serde_derive v1.0.193 [INFO] [stderr] Checking regex v1.10.2 [INFO] [stderr] Checking ciborium v0.2.1 [INFO] [stderr] Checking tinytemplate v1.2.1 [INFO] [stderr] Checking advent_of_code_23 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `BufReader` [INFO] [stdout] --> src/day15.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | io::{BufReader, Read}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `colored::*` [INFO] [stdout] --> src/day17.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use colored::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/day15.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | for i in 0..256 { [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: value assigned to `i` is never read [INFO] [stdout] --> src/day15.rs:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | i += 2; [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: variable does not need to be mutable [INFO] [stdout] --> src/day15.rs:62:14 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn star2(mut buf: Vec) -> i32 { [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/day15.rs:88:21 [INFO] [stdout] | [INFO] [stdout] 88 | for mut i in 0..boxes[running_hash].lenses.len() { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> src/day16.rs:282:14 [INFO] [stdout] | [INFO] [stdout] 282 | pub fn star2(buf: Vec) -> i32 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> src/day17.rs:204:14 [INFO] [stdout] | [INFO] [stdout] 204 | pub fn star2(buf: Vec) -> i32 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `locs` [INFO] [stdout] --> src/day5.rs:112:13 [INFO] [stdout] | [INFO] [stdout] 112 | let mut locs: Vec = Vec::new(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_locs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `answer_map` [INFO] [stdout] --> src/day5.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 114 | let answer_map: HashMap = HashMap::new(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_answer_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `seed_ranges` [INFO] [stdout] --> src/day5.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 115 | let seed_ranges: Vec<(u64, u64)> = get_seed_ranges(seeds_str); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_seed_ranges` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/day5.rs:116:13 [INFO] [stdout] | [INFO] [stdout] 116 | let mut c = 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day5.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 112 | let mut locs: 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/day5.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | let mut c = 0; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src` [INFO] [stdout] --> src/day5.rs:172:26 [INFO] [stdout] | [INFO] [stdout] 172 | let (_full_cap, [src, dest]) = re.captures(&lines[0]).unwrap().extract(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_src` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dest` [INFO] [stdout] --> src/day5.rs:172:31 [INFO] [stdout] | [INFO] [stdout] 172 | let (_full_cap, [src, dest]) = re.captures(&lines[0]).unwrap().extract(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `range` [INFO] [stdout] --> src/day5.rs:193:17 [INFO] [stdout] | [INFO] [stdout] 193 | let range = Range { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_range` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `times` [INFO] [stdout] --> src/day6.rs:52:10 [INFO] [stdout] | [INFO] [stdout] 52 | let (times, distances) = read_lines(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_times` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `distances` [INFO] [stdout] --> src/day6.rs:52:17 [INFO] [stdout] | [INFO] [stdout] 52 | let (times, distances) = read_lines(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_distances` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/day6.rs:110:10 [INFO] [stdout] | [INFO] [stdout] 110 | for (k, v) in races.iter() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `players_num` [INFO] [stdout] --> src/day7.rs:133:9 [INFO] [stdout] | [INFO] [stdout] 133 | let players_num = hands.sort(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_players_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `next_str` is never read [INFO] [stdout] --> src/day8.rs:147:17 [INFO] [stdout] | [INFO] [stdout] 147 | let mut next_str = ""; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Node` is more private than the item `day17::parse_grid` [INFO] [stdout] --> src/day17.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn parse_grid(buf: Vec) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `day17::parse_grid` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Node` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/day17.rs:56:1 [INFO] [stdout] | [INFO] [stdout] 56 | struct Node { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/day5.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_seed_ranges` is never used [INFO] [stdout] --> src/day5.rs:41:4 [INFO] [stdout] | [INFO] [stdout] 41 | fn get_seed_ranges(s: String) -> Vec<(u64, u64)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `star2` is never used [INFO] [stdout] --> src/day5.rs:103:4 [INFO] [stdout] | [INFO] [stdout] 103 | fn star2(lines: Vec) -> u64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/day15.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 123 | f.read_to_end(&mut buf); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 123 | let _ = f.read_to_end(&mut buf); [INFO] [stdout] | +++++++ [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/day5.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 9 | let f = File::open("input/5.txt")?; [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 10 | let f = BufReader::new(f); [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 11 | Ok(f.lines()) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [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] 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/day8.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 29 | let f = File::open("input/8.txt")?; [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 30 | let f = BufReader::new(f); [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 31 | Ok(f.lines()) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `advent_of_code_23` (lib) due to 3 previous errors; 27 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "a0c5bd08f6f3eb4576632be8eb3d83f9009824601b38dde72e820b5cd1c65017", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a0c5bd08f6f3eb4576632be8eb3d83f9009824601b38dde72e820b5cd1c65017", kill_on_drop: false }` [INFO] [stdout] a0c5bd08f6f3eb4576632be8eb3d83f9009824601b38dde72e820b5cd1c65017