[INFO] cloning repository https://github.com/Strackeror/aoc_2021_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Strackeror/aoc_2021_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FStrackeror%2Faoc_2021_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FStrackeror%2Faoc_2021_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 076582e489dd9ea33b9cf4846626a81f1dcbde4b [INFO] checking Strackeror/aoc_2021_rust/076582e489dd9ea33b9cf4846626a81f1dcbde4b 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%2FStrackeror%2Faoc_2021_rust" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Strackeror/aoc_2021_rust 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/Strackeror/aoc_2021_rust [INFO] finished tweaking git repo https://github.com/Strackeror/aoc_2021_rust [INFO] tweaked toml for git repo https://github.com/Strackeror/aoc_2021_rust written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Strackeror/aoc_2021_rust 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-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 56ea25170cb01e5ebf9517f99de1a1ab4cbcc284c5fdf247bb27b990a1b435a9 [INFO] running `Command { std: "docker" "start" "-a" "56ea25170cb01e5ebf9517f99de1a1ab4cbcc284c5fdf247bb27b990a1b435a9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "56ea25170cb01e5ebf9517f99de1a1ab4cbcc284c5fdf247bb27b990a1b435a9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "56ea25170cb01e5ebf9517f99de1a1ab4cbcc284c5fdf247bb27b990a1b435a9", kill_on_drop: false }` [INFO] [stdout] 56ea25170cb01e5ebf9517f99de1a1ab4cbcc284c5fdf247bb27b990a1b435a9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 37408df07921c8c530fdcb6227638803c77e499829a731b35eaa3d37b2b52eba [INFO] running `Command { std: "docker" "start" "-a" "37408df07921c8c530fdcb6227638803c77e499829a731b35eaa3d37b2b52eba", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.34 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling libc v0.2.108 [INFO] [stderr] Compiling cc v1.0.72 [INFO] [stderr] Checking gimli v0.26.1 [INFO] [stderr] Checking object v0.27.1 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Compiling anyhow v1.0.51 [INFO] [stderr] Checking rustc-demangle v0.1.21 [INFO] [stderr] Compiling peg-runtime v0.7.0 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Checking itertools v0.10.1 [INFO] [stderr] Compiling backtrace v0.3.63 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Compiling peg-macros v0.7.0 [INFO] [stderr] Checking scan_fmt v0.2.6 [INFO] [stderr] Checking peg v0.7.0 [INFO] [stderr] Checking addr2line v0.17.0 [INFO] [stderr] Checking aoc2021 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/day08.rs:2:28 [INFO] [stdout] | [INFO] [stdout] 2 | collections::{HashMap, HashSet}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fold` [INFO] [stdout] --> src/day20.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use itertools::{fold, Itertools}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap` and `HashSet` [INFO] [stdout] --> src/day22.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | collections::{HashMap, HashSet}, [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Display` [INFO] [stdout] --> src/day23.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | fmt::{Debug, Display}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cell::RefCell` [INFO] [stdout] --> src/day24.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, collections::HashMap}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/day24.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/day08.rs:2:28 [INFO] [stdout] | [INFO] [stdout] 2 | collections::{HashMap, HashSet}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fold` [INFO] [stdout] --> src/day20.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use itertools::{fold, Itertools}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap` and `HashSet` [INFO] [stdout] --> src/day22.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | collections::{HashMap, HashSet}, [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Display` [INFO] [stdout] --> src/day23.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | fmt::{Debug, Display}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cell::RefCell` [INFO] [stdout] --> src/day24.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, collections::HashMap}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/day24.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `show` is never used [INFO] [stdout] --> src/day20.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn show(map: &HashMap<(isize, isize), bool>) { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `State` is never constructed [INFO] [stdout] --> src/day23.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct State { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `A` is never used [INFO] [stdout] --> src/day23.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const A: i8 = 0; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `B` is never used [INFO] [stdout] --> src/day23.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | const B: i8 = 1; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `C` is never used [INFO] [stdout] --> src/day23.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const C: i8 = 2; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `D` is never used [INFO] [stdout] --> src/day23.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | const D: i8 = 3; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `show`, `room_ok`, `room_depth`, and `possible_states` are never used [INFO] [stdout] --> src/day23.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 19 | impl State { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] 20 | fn show(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | fn room_ok(&self, room: usize) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | fn room_depth(&self, room: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | fn possible_states(self) -> Vec<(State, i32)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `min_cost_to` is never used [INFO] [stdout] --> src/day23.rs:150:4 [INFO] [stdout] | [INFO] [stdout] 150 | fn min_cost_to(state: State, mem: &mut HashMap>) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run` is never used [INFO] [stdout] --> src/day23.rs:171:4 [INFO] [stdout] | [INFO] [stdout] 171 | fn run(initial: [[i8; 2]; 4]) -> Result<()> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cid` is never used [INFO] [stdout] --> src/day24.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn cid(c: char) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `val` is never used [INFO] [stdout] --> src/day24.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn val(state: [i64; 4], p: Param) -> i64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_expr` is never used [INFO] [stdout] --> src/day24.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn process_expr(expr: Expr, mut state: [i64; 4]) -> [i64; 4] { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `processr` is never used [INFO] [stdout] --> src/day24.rs:73:4 [INFO] [stdout] | [INFO] [stdout] 73 | fn processr(exprs: &[Expr]) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run` is never used [INFO] [stdout] --> src/day25.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn run(path: &str) -> Result<()> { [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/day03.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 25 | fn bits_to_int(it: impl IntoIterator) -> i32 { [INFO] [stdout] | ---------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 26 | it.into_iter() [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/day04.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 22 | .map(|chunk| { [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 23 | / chunk [INFO] [stdout] 24 | | .skip(1) [INFO] [stdout] 25 | | .map(|grid_line| { [INFO] [stdout] 26 | | grid_line [INFO] [stdout] ... | [INFO] [stdout] 29 | | .collect_vec() [INFO] [stdout] 30 | | }) [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: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/day13.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 28 | fn step(set: HashSet<(i32, i32)>, inst: &(&str, i32)) -> HashSet<(i32, i32)> { [INFO] [stdout] | ------------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 29 | / set.into_iter() [INFO] [stdout] 30 | | .map(|(x, y)| { [INFO] [stdout] 31 | | if inst.0 == "x" { [INFO] [stdout] 32 | | (inst.1 - (inst.1 - x).abs(), y) [INFO] [stdout] ... | [INFO] [stdout] 35 | | } [INFO] [stdout] 36 | | }) [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: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/day16.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | fn value(bits: impl IntoIterator) -> u64 { [INFO] [stdout] | ------------------------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 12 | bits.into_iter() [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: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/day18.rs:12:20 [INFO] [stdout] | [INFO] [stdout] 11 | fn npair(a: Pair, b: Pair) -> Pair { [INFO] [stdout] | ------- ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 12 | Pair::Pair(Box::new(a), Box::new(b)) [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: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/day18.rs:12:33 [INFO] [stdout] | [INFO] [stdout] 11 | fn npair(a: Pair, b: Pair) -> Pair { [INFO] [stdout] | ------- ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 12 | Pair::Pair(Box::new(a), Box::new(b)) [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: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/day18.rs:154:36 [INFO] [stdout] | [INFO] [stdout] 154 | .reduce(|acc, elem| reduce(Pair::npair(acc, elem))) [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: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/day18.rs:161:28 [INFO] [stdout] | [INFO] [stdout] 161 | .map(|perm| reduce(Pair::npair(perm[0].clone(), perm[1].clone()))) [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: aborting due to 8 previous errors; 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `aoc2021` (bin "aoc2021") due to 9 previous errors; 20 warnings emitted [INFO] [stdout] warning: function `show` is never used [INFO] [stdout] --> src/day20.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn show(map: &HashMap<(isize, isize), bool>) { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: function `cid` is never used [INFO] [stdout] --> src/day24.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn cid(c: char) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `val` is never used [INFO] [stdout] --> src/day24.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn val(state: [i64; 4], p: Param) -> i64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_expr` is never used [INFO] [stdout] --> src/day24.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn process_expr(expr: Expr, mut state: [i64; 4]) -> [i64; 4] { [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/day03.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 25 | fn bits_to_int(it: impl IntoIterator) -> i32 { [INFO] [stdout] | ---------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 26 | it.into_iter() [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/day04.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 22 | .map(|chunk| { [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 23 | / chunk [INFO] [stdout] 24 | | .skip(1) [INFO] [stdout] 25 | | .map(|grid_line| { [INFO] [stdout] 26 | | grid_line [INFO] [stdout] ... | [INFO] [stdout] 29 | | .collect_vec() [INFO] [stdout] 30 | | }) [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: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/day13.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 28 | fn step(set: HashSet<(i32, i32)>, inst: &(&str, i32)) -> HashSet<(i32, i32)> { [INFO] [stdout] | ------------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 29 | / set.into_iter() [INFO] [stdout] 30 | | .map(|(x, y)| { [INFO] [stdout] 31 | | if inst.0 == "x" { [INFO] [stdout] 32 | | (inst.1 - (inst.1 - x).abs(), y) [INFO] [stdout] ... | [INFO] [stdout] 35 | | } [INFO] [stdout] 36 | | }) [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: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/day16.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | fn value(bits: impl IntoIterator) -> u64 { [INFO] [stdout] | ------------------------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 12 | bits.into_iter() [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: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/day18.rs:12:20 [INFO] [stdout] | [INFO] [stdout] 11 | fn npair(a: Pair, b: Pair) -> Pair { [INFO] [stdout] | ------- ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 12 | Pair::Pair(Box::new(a), Box::new(b)) [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: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/day18.rs:12:33 [INFO] [stdout] | [INFO] [stdout] 11 | fn npair(a: Pair, b: Pair) -> Pair { [INFO] [stdout] | ------- ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 12 | Pair::Pair(Box::new(a), Box::new(b)) [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: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/day18.rs:154:36 [INFO] [stdout] | [INFO] [stdout] 154 | .reduce(|acc, elem| reduce(Pair::npair(acc, elem))) [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: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/day18.rs:161:28 [INFO] [stdout] | [INFO] [stdout] 161 | .map(|perm| reduce(Pair::npair(perm[0].clone(), perm[1].clone()))) [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] warning: unused `Result` that must be used [INFO] [stdout] --> src/day22.rs:143:5 [INFO] [stdout] | [INFO] [stdout] 143 | dbg!(run("input/day22/example1.txt")); [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] = note: this warning originates in the macro `dbg` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/day22.rs:148:5 [INFO] [stdout] | [INFO] [stdout] 148 | dbg!(run("input/day22/example2.txt")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `dbg` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/day22.rs:153:5 [INFO] [stdout] | [INFO] [stdout] 153 | dbg!(run("input/day22/input.txt")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `dbg` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `V1` should have a snake case name [INFO] [stdout] --> src/day22.rs:158:9 [INFO] [stdout] | [INFO] [stdout] 158 | let V1 = Volume { [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `v1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `V2` should have a snake case name [INFO] [stdout] --> src/day22.rs:163:9 [INFO] [stdout] | [INFO] [stdout] 163 | let V2 = Volume { [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `v2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/day23.rs:211:5 [INFO] [stdout] | [INFO] [stdout] 211 | dbg!(run([[B, A], [C, D], [B, C], [D, A]])); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `dbg` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/day23.rs:216:5 [INFO] [stdout] | [INFO] [stdout] 216 | dbg!(run([[C, B], [D, A], [A, D], [B, C]])); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `dbg` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/day25.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | run("input/day25/example.txt"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 58 | let _ = run("input/day25/example.txt"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/day25.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | run("input/day25/input.txt"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 62 | let _ = run("input/day25/input.txt"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors; 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `aoc2021` (bin "aoc2021" test) due to 9 previous errors; 19 warnings emitted [INFO] running `Command { std: "docker" "inspect" "37408df07921c8c530fdcb6227638803c77e499829a731b35eaa3d37b2b52eba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "37408df07921c8c530fdcb6227638803c77e499829a731b35eaa3d37b2b52eba", kill_on_drop: false }` [INFO] [stdout] 37408df07921c8c530fdcb6227638803c77e499829a731b35eaa3d37b2b52eba