[INFO] cloning repository https://github.com/Nazlobudnya/aoc_2023 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Nazlobudnya/aoc_2023" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNazlobudnya%2Faoc_2023", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNazlobudnya%2Faoc_2023'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 98fddb2c251b518d65e6874b0a1ad8934f2a7293 [INFO] checking Nazlobudnya/aoc_2023/98fddb2c251b518d65e6874b0a1ad8934f2a7293 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%2FNazlobudnya%2Faoc_2023" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Nazlobudnya/aoc_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] started tweaking git repo https://github.com/Nazlobudnya/aoc_2023 [INFO] finished tweaking git repo https://github.com/Nazlobudnya/aoc_2023 [INFO] tweaked toml for git repo https://github.com/Nazlobudnya/aoc_2023 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Nazlobudnya/aoc_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] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 3d5afa88e25968c47f096437b2f30c5be03854f5a458b334622308a43108090d [INFO] running `Command { std: "docker" "start" "-a" "3d5afa88e25968c47f096437b2f30c5be03854f5a458b334622308a43108090d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3d5afa88e25968c47f096437b2f30c5be03854f5a458b334622308a43108090d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3d5afa88e25968c47f096437b2f30c5be03854f5a458b334622308a43108090d", kill_on_drop: false }` [INFO] [stdout] 3d5afa88e25968c47f096437b2f30c5be03854f5a458b334622308a43108090d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 5ed194ba3978b705ec96ae2e1d01cb088cd48459582d65939b33762af599187e [INFO] running `Command { std: "docker" "start" "-a" "5ed194ba3978b705ec96ae2e1d01cb088cd48459582d65939b33762af599187e", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.150 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Checking bit-vec v0.6.3 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Checking itertools v0.12.0 [INFO] [stderr] Checking bit-set v0.5.3 [INFO] [stderr] Checking getrandom v0.2.11 [INFO] [stderr] Checking rand_core v0.6.4 [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 regex v1.10.2 [INFO] [stderr] Checking fancy-regex v0.12.0 [INFO] [stderr] Checking aoc_2023 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `time::Instant` [INFO] [stdout] --> src/solutions/day_5.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{ops::Range, time::Instant}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `time::Instant` [INFO] [stdout] --> src/solutions/day_5.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{ops::Range, time::Instant}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cubes` [INFO] [stdout] --> src/solutions/day_2.rs:37:25 [INFO] [stdout] | [INFO] [stdout] 37 | let cubes = p.trim().split(", ").for_each(|c| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_cubes` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/solutions/day_3.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | for i in 0..rows { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cubes` [INFO] [stdout] --> src/solutions/day_2.rs:37:25 [INFO] [stdout] | [INFO] [stdout] 37 | let cubes = p.trim().split(", ").for_each(|c| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_cubes` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/solutions/day_3.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | for i in 0..rows { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/solutions/day_5.rs:141:9 [INFO] [stdout] | [INFO] [stdout] 141 | let s = seeds [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/solutions/day_5.rs:141:9 [INFO] [stdout] | [INFO] [stdout] 141 | let s = seeds [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/solutions/day_7.rs:93:14 [INFO] [stdout] | [INFO] [stdout] 93 | for (idx, m) in self_present_count.into_iter().enumerate() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/solutions/day_7.rs:185:18 [INFO] [stdout] | [INFO] [stdout] 185 | let (mut hand, bid) = l.split_once(" ").unwrap(); [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: `idx` [INFO] [stdout] --> src/solutions/day_7.rs:93:14 [INFO] [stdout] | [INFO] [stdout] 93 | for (idx, m) in self_present_count.into_iter().enumerate() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/solutions/day_7.rs:185:18 [INFO] [stdout] | [INFO] [stdout] 185 | let (mut hand, bid) = l.split_once(" ").unwrap(); [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: `to` [INFO] [stdout] --> src/solutions/day_8.rs:69:43 [INFO] [stdout] | [INFO] [stdout] 69 | fn run_to_by_ending(&self, start: u8, to: u8) -> Steps { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/solutions/day_8.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | let mut current = self [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to` [INFO] [stdout] --> src/solutions/day_8.rs:69:43 [INFO] [stdout] | [INFO] [stdout] 69 | fn run_to_by_ending(&self, start: u8, to: u8) -> Steps { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/solutions/day_8.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | let mut current = self [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/solutions/day_10.rs:228:13 [INFO] [stdout] | [INFO] [stdout] 228 | fn part_two(input: &str) -> usize { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/solutions/day_10.rs:228:13 [INFO] [stdout] | [INFO] [stdout] 228 | fn part_two(input: &str) -> usize { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Kind` is never used [INFO] [stdout] --> src/solutions/day_7.rs:4:6 [INFO] [stdout] | [INFO] [stdout] 4 | enum Kind { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Kind` is never used [INFO] [stdout] --> src/solutions/day_7.rs:4:6 [INFO] [stdout] | [INFO] [stdout] 4 | enum Kind { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CARDS` is never used [INFO] [stdout] --> src/solutions/day_7.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const CARDS: [u8; 13] = [ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `kind` is never used [INFO] [stdout] --> src/solutions/day_7.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn kind(hand: &Vec) -> Kind { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `can_enter` and `can_enter_to` are never used [INFO] [stdout] --> src/solutions/day_10.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 46 | impl PipeType { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 47 | fn can_enter(&self, other: &Self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | fn can_enter_to(&self, to: &Self) -> bool { [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/solutions/utils.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | let re = Regex::new(r"\d+").unwrap(); [INFO] [stdout] | -- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 7 | / re.captures_iter(s) [INFO] [stdout] 8 | | .map(|n| n[0].parse::().expect("Has to be a number")) [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/solutions/utils.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | .map(|n| n[0].parse::().expect("Has to be a number")) [INFO] [stdout] | - ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/solutions/utils.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 15 | .map(|x| x.parse::().expect("Has to be a number")) [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 3 previous errors; 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `aoc_2023` (bin "aoc_2023" test) due to 4 previous errors; 13 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: constant `CARDS` is never used [INFO] [stdout] --> src/solutions/day_7.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const CARDS: [u8; 13] = [ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `kind` is never used [INFO] [stdout] --> src/solutions/day_7.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn kind(hand: &Vec) -> Kind { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `aoc_2023` (bin "aoc_2023") due to 4 previous errors; 13 warnings emitted [INFO] [stdout] warning: methods `can_enter` and `can_enter_to` are never used [INFO] [stdout] --> src/solutions/day_10.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 46 | impl PipeType { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 47 | fn can_enter(&self, other: &Self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | fn can_enter_to(&self, to: &Self) -> bool { [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/solutions/utils.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | let re = Regex::new(r"\d+").unwrap(); [INFO] [stdout] | -- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 7 | / re.captures_iter(s) [INFO] [stdout] 8 | | .map(|n| n[0].parse::().expect("Has to be a number")) [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/solutions/utils.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | .map(|n| n[0].parse::().expect("Has to be a number")) [INFO] [stdout] | - ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/solutions/utils.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 15 | .map(|x| x.parse::().expect("Has to be a number")) [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 3 previous errors; 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "5ed194ba3978b705ec96ae2e1d01cb088cd48459582d65939b33762af599187e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5ed194ba3978b705ec96ae2e1d01cb088cd48459582d65939b33762af599187e", kill_on_drop: false }` [INFO] [stdout] 5ed194ba3978b705ec96ae2e1d01cb088cd48459582d65939b33762af599187e