[INFO] cloning repository https://github.com/DarthStrom/2021-Rust-Advent-of-Code [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/DarthStrom/2021-Rust-Advent-of-Code" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDarthStrom%2F2021-Rust-Advent-of-Code", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDarthStrom%2F2021-Rust-Advent-of-Code'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 750da915a0cc3eeaacf330f9fcd06e2b98a5acbc [INFO] checking DarthStrom/2021-Rust-Advent-of-Code/750da915a0cc3eeaacf330f9fcd06e2b98a5acbc 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%2FDarthStrom%2F2021-Rust-Advent-of-Code" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/DarthStrom/2021-Rust-Advent-of-Code 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/DarthStrom/2021-Rust-Advent-of-Code [INFO] finished tweaking git repo https://github.com/DarthStrom/2021-Rust-Advent-of-Code [INFO] tweaked toml for git repo https://github.com/DarthStrom/2021-Rust-Advent-of-Code written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/DarthStrom/2021-Rust-Advent-of-Code 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-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 41ba7976fecf7ef803218ba9cc93823ba5b9c2a09069ae10c9b5144793348427 [INFO] running `Command { std: "docker" "start" "-a" "41ba7976fecf7ef803218ba9cc93823ba5b9c2a09069ae10c9b5144793348427", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "41ba7976fecf7ef803218ba9cc93823ba5b9c2a09069ae10c9b5144793348427", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "41ba7976fecf7ef803218ba9cc93823ba5b9c2a09069ae10c9b5144793348427", kill_on_drop: false }` [INFO] [stdout] 41ba7976fecf7ef803218ba9cc93823ba5b9c2a09069ae10c9b5144793348427 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 639e9d714d1bfceb1e6d08d89b728a491b45d3bb1e3ee3cb5dda6f19d3a24d03 [INFO] running `Command { std: "docker" "start" "-a" "639e9d714d1bfceb1e6d08d89b728a491b45d3bb1e3ee3cb5dda6f19d3a24d03", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Checking fixedbitset v0.4.0 [INFO] [stderr] Checking rustc-hash v1.1.0 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking itertools v0.10.3 [INFO] [stderr] Checking integer-sqrt v0.1.5 [INFO] [stderr] Checking pathfinding v3.0.5 [INFO] [stderr] Checking rust-advent-of-code v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/day18.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `algorithm` [INFO] [stdout] --> src/day20.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | fn iterate(algorithm: &[bool], image: &HashMap) -> HashMap { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_algorithm` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `image` [INFO] [stdout] --> src/day20.rs:59:32 [INFO] [stdout] | [INFO] [stdout] 59 | fn iterate(algorithm: &[bool], image: &HashMap) -> HashMap { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_image` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `final_sum` is never used [INFO] [stdout] --> src/day18.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn final_sum(input: &[String]) -> Vec<(u32, u32)> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse` is never used [INFO] [stdout] --> src/day18.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn parse(input: &[String]) -> Vec> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_line` is never used [INFO] [stdout] --> src/day18.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn parse_line(line: &str) -> Vec<(u32, u32)> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add` is never used [INFO] [stdout] --> src/day18.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn add(first: &[(u32, u32)], second: &[(u32, u32)]) -> Vec<(u32, u32)> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `explode` is never used [INFO] [stdout] --> src/day18.rs:74:4 [INFO] [stdout] | [INFO] [stdout] 74 | fn explode(number: &[(u32, u32)]) -> Vec<(u32, u32)> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `split` is never used [INFO] [stdout] --> src/day18.rs:99:4 [INFO] [stdout] | [INFO] [stdout] 99 | fn split(n: u32) -> (u32, u32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Coords` is never constructed [INFO] [stdout] --> src/day19.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct Coords(i32, i32, i32); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Scanner` is never constructed [INFO] [stdout] --> src/day19.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | struct Scanner { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_scanners` is never used [INFO] [stdout] --> src/day19.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn get_scanners(input: &[String]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_id` is never used [INFO] [stdout] --> src/day19.rs:43:4 [INFO] [stdout] | [INFO] [stdout] 43 | fn parse_id(line: &str) -> u32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_beacon` is never used [INFO] [stdout] --> src/day19.rs:49:4 [INFO] [stdout] | [INFO] [stdout] 49 | fn parse_beacon(line: &str) -> Coords { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_overlapping` is never used [INFO] [stdout] --> src/day19.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn find_overlapping(scanner_a: &Scanner, scanner_b: &Scanner) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Coords` is never constructed [INFO] [stdout] --> src/day20.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | struct Coords(i32, i32); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Image` is never constructed [INFO] [stdout] --> src/day20.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | struct Image { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_algorithm_and_image` is never used [INFO] [stdout] --> src/day20.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn get_algorithm_and_image(input: &str) -> (Vec, HashMap) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `iterate` is never used [INFO] [stdout] --> src/day20.rs:59:4 [INFO] [stdout] | [INFO] [stdout] 59 | fn iterate(algorithm: &[bool], image: &HashMap) -> HashMap { [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/day09.rs:107:18 [INFO] [stdout] | [INFO] [stdout] 107 | .map(|p| basin_members(&a, p).len() as u32) [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] 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/day20.rs:54:24 [INFO] [stdout] | [INFO] [stdout] 54 | .reduce(|a, b| a.into_iter().chain(b).collect()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [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; 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-advent-of-code` (bin "rust-advent-of-code") due to 3 previous errors; 18 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `algorithm` [INFO] [stdout] --> src/day20.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | fn iterate(algorithm: &[bool], image: &HashMap) -> HashMap { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_algorithm` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `image` [INFO] [stdout] --> src/day20.rs:59:32 [INFO] [stdout] | [INFO] [stdout] 59 | fn iterate(algorithm: &[bool], image: &HashMap) -> HashMap { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_image` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `final_sum` is never used [INFO] [stdout] --> src/day18.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn final_sum(input: &[String]) -> Vec<(u32, u32)> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse` is never used [INFO] [stdout] --> src/day18.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn parse(input: &[String]) -> Vec> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_line` is never used [INFO] [stdout] --> src/day18.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn parse_line(line: &str) -> Vec<(u32, u32)> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add` is never used [INFO] [stdout] --> src/day18.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn add(first: &[(u32, u32)], second: &[(u32, u32)]) -> Vec<(u32, u32)> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `explode` is never used [INFO] [stdout] --> src/day18.rs:74:4 [INFO] [stdout] | [INFO] [stdout] 74 | fn explode(number: &[(u32, u32)]) -> Vec<(u32, u32)> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `split` is never used [INFO] [stdout] --> src/day18.rs:99:4 [INFO] [stdout] | [INFO] [stdout] 99 | fn split(n: u32) -> (u32, u32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_overlapping` is never used [INFO] [stdout] --> src/day19.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn find_overlapping(scanner_a: &Scanner, scanner_b: &Scanner) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Image` is never constructed [INFO] [stdout] --> src/day20.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | struct Image { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `iterate` is never used [INFO] [stdout] --> src/day20.rs:59:4 [INFO] [stdout] | [INFO] [stdout] 59 | fn iterate(algorithm: &[bool], image: &HashMap) -> HashMap { [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/day09.rs:107:18 [INFO] [stdout] | [INFO] [stdout] 107 | .map(|p| basin_members(&a, p).len() as u32) [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] 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/day20.rs:54:24 [INFO] [stdout] | [INFO] [stdout] 54 | .reduce(|a, b| a.into_iter().chain(b).collect()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [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; 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-advent-of-code` (bin "rust-advent-of-code" test) due to 3 previous errors; 12 warnings emitted [INFO] running `Command { std: "docker" "inspect" "639e9d714d1bfceb1e6d08d89b728a491b45d3bb1e3ee3cb5dda6f19d3a24d03", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "639e9d714d1bfceb1e6d08d89b728a491b45d3bb1e3ee3cb5dda6f19d3a24d03", kill_on_drop: false }` [INFO] [stdout] 639e9d714d1bfceb1e6d08d89b728a491b45d3bb1e3ee3cb5dda6f19d3a24d03