[INFO] cloning repository https://github.com/christian-blades-cb/aoc-2018 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/christian-blades-cb/aoc-2018" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchristian-blades-cb%2Faoc-2018", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchristian-blades-cb%2Faoc-2018'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1e1378a2e885a3ee410f40602a8bc777e066ee53 [INFO] checking christian-blades-cb/aoc-2018/1e1378a2e885a3ee410f40602a8bc777e066ee53 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%2Fchristian-blades-cb%2Faoc-2018" "/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/christian-blades-cb/aoc-2018 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/christian-blades-cb/aoc-2018 [INFO] finished tweaking git repo https://github.com/christian-blades-cb/aoc-2018 [INFO] tweaked toml for git repo https://github.com/christian-blades-cb/aoc-2018 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/christian-blades-cb/aoc-2018 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] fb27140ad4b64756b62c35148018c2731eb8223ad9450880b114c60fb39d6cc9 [INFO] running `Command { std: "docker" "start" "-a" "fb27140ad4b64756b62c35148018c2731eb8223ad9450880b114c60fb39d6cc9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fb27140ad4b64756b62c35148018c2731eb8223ad9450880b114c60fb39d6cc9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fb27140ad4b64756b62c35148018c2731eb8223ad9450880b114c60fb39d6cc9", kill_on_drop: false }` [INFO] [stdout] fb27140ad4b64756b62c35148018c2731eb8223ad9450880b114c60fb39d6cc9 [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] ce777b9e383eda66820be685ee1520c4d23f1f9850bfce935ec55570eef5805e [INFO] running `Command { std: "docker" "start" "-a" "ce777b9e383eda66820be685ee1520c4d23f1f9850bfce935ec55570eef5805e", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.44 [INFO] [stderr] Checking cfg-if v0.1.6 [INFO] [stderr] Compiling num-traits v0.2.6 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Checking either v1.5.0 [INFO] [stderr] Checking lazy_static v1.2.0 [INFO] [stderr] Compiling num-integer v0.1.39 [INFO] [stderr] Compiling proc-macro2 v0.4.24 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Checking nodrop v0.1.13 [INFO] [stderr] Compiling rayon-core v1.4.1 [INFO] [stderr] Checking memoffset v0.2.1 [INFO] [stderr] Checking tap v0.3.0 [INFO] [stderr] Checking scopeguard v0.3.3 [INFO] [stderr] Checking byteorder v1.2.7 [INFO] [stderr] Checking adler32 v1.0.3 [INFO] [stderr] Compiling num-iter v0.1.37 [INFO] [stderr] Compiling num-derive v0.2.3 [INFO] [stderr] Checking crossbeam-utils v0.2.2 [INFO] [stderr] Compiling rayon v1.0.3 [INFO] [stderr] Checking lzw v0.10.0 [INFO] [stderr] Checking arrayvec v0.4.8 [INFO] [stderr] Checking itertools v0.7.11 [INFO] [stderr] Compiling num-rational v0.2.1 [INFO] [stderr] Checking inflate v0.4.3 [INFO] [stderr] Checking bitflags v1.0.4 [INFO] [stderr] Checking ucd-util v0.1.3 [INFO] [stderr] Checking color_quant v1.0.1 [INFO] [stderr] Checking deflate v0.7.19 [INFO] [stderr] Compiling regex v1.1.0 [INFO] [stderr] Checking regex-syntax v0.6.4 [INFO] [stderr] Compiling memchr v2.1.1 [INFO] [stderr] Checking crossbeam-epoch v0.3.1 [INFO] [stderr] Checking thread_local v0.3.6 [INFO] [stderr] Checking gif v0.10.1 [INFO] [stderr] Checking utf8-ranges v1.0.2 [INFO] [stderr] Checking topological-sort v0.1.0 [INFO] [stderr] Compiling num-complex v0.2.1 [INFO] [stderr] Compiling matrixmultiply v0.1.15 [INFO] [stderr] Compiling ndarray v0.12.1 [INFO] [stderr] Checking rawpointer v0.1.0 [INFO] [stderr] Compiling rand_core v0.3.0 [INFO] [stderr] Checking crossbeam-deque v0.2.0 [INFO] [stderr] Compiling siphasher v0.2.3 [INFO] [stderr] Checking itertools v0.8.0 [INFO] [stderr] Checking fixedbitset v0.1.9 [INFO] [stderr] Checking indexmap v1.0.2 [INFO] [stderr] Compiling phf_shared v0.7.23 [INFO] [stderr] Checking approx v0.1.1 [INFO] [stderr] Checking permutohedron v0.2.4 [INFO] [stderr] Compiling quote v0.6.10 [INFO] [stderr] Compiling rand_core v0.2.2 [INFO] [stderr] Checking day6 v0.1.0 (/opt/rustwide/workdir/day6) [INFO] [stderr] Checking num_cpus v1.8.0 [INFO] [stderr] Checking time v0.1.40 [INFO] [stderr] Checking day2 v0.1.0 (/opt/rustwide/workdir/day2) [INFO] [stderr] Compiling syn v0.15.22 [INFO] [stderr] Compiling syn v0.14.9 [INFO] [stderr] Checking day8 v0.1.0 (/opt/rustwide/workdir/day8) [INFO] [stderr] Checking day5 v0.1.0 (/opt/rustwide/workdir/day5) [INFO] [stderr] Checking phf v0.7.23 [INFO] [stderr] Compiling rand v0.5.5 [INFO] [stderr] Checking nom v4.1.1 [INFO] [stderr] Checking aho-corasick v0.6.9 [INFO] [stderr] Checking chrono v0.4.6 [INFO] [stderr] Checking png v0.12.0 [INFO] [stderr] Checking pathfinding v1.1.6 [INFO] [stderr] Checking day9 v0.1.0 (/opt/rustwide/workdir/day9) [INFO] [stderr] Checking day3 v0.1.0 (/opt/rustwide/workdir/day3) [INFO] [stderr] Checking day4 v0.1.0 (/opt/rustwide/workdir/day4) [INFO] [stderr] Compiling phf_generator v0.7.23 [INFO] [stderr] Compiling phf_codegen v0.7.23 [INFO] [stderr] Compiling palette v0.4.1 [INFO] [stderr] Checking jpeg-decoder v0.1.15 [INFO] [stderr] Checking day7 v0.1.0 (/opt/rustwide/workdir/day7) [INFO] [stderr] Checking day1 v0.1.0 (/opt/rustwide/workdir/day1) [INFO] [stderr] Compiling palette_derive v0.4.1 [INFO] [stderr] Checking day13 v0.1.0 (/opt/rustwide/workdir/day13) [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> day13/src/main.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | for i in 0_usize.. { [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: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> day13/src/main.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | for i in 0_usize.. { [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: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking tiff v0.2.1 [INFO] [stderr] Checking image v0.20.1 [INFO] [stderr] Checking day10 v0.1.0 (/opt/rustwide/workdir/day10) [INFO] [stderr] Checking day14 v0.1.0 (/opt/rustwide/workdir/day14) [INFO] [stderr] Checking day16 v0.1.0 (/opt/rustwide/workdir/day16) [INFO] [stderr] Checking day15 v0.1.0 (/opt/rustwide/workdir/day15) [INFO] [stderr] Checking day12 v0.1.0 (/opt/rustwide/workdir/day12) [INFO] [stderr] Checking day11 v0.1.0 (/opt/rustwide/workdir/day11) [INFO] [stderr] Checking day6-viz v0.1.0 (/opt/rustwide/workdir/day6-viz) [INFO] [stdout] warning: constant `padding` should have an upper case name [INFO] [stdout] --> day12/src/main.rs:25:11 [INFO] [stdout] | [INFO] [stdout] 25 | const padding: usize = 50; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `PADDING` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `padding` should have an upper case name [INFO] [stdout] --> day12/src/main.rs:40:11 [INFO] [stdout] | [INFO] [stdout] 40 | const padding: usize = 1000; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `PADDING` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `n_generations` should have an upper case name [INFO] [stdout] --> day12/src/main.rs:41:11 [INFO] [stdout] | [INFO] [stdout] 41 | const n_generations: usize = 50_000_000_000; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `N_GENERATIONS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> day15/src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Duration` and `Utc` [INFO] [stdout] --> day15/src/main.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | use chrono::{Duration, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `alpha` and `digit` [INFO] [stdout] --> day15/src/main.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | use nom::{alpha, digit}; [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `regex::Regex` [INFO] [stdout] --> day15/src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use regex::Regex; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tap::TapOps` [INFO] [stdout] --> day15/src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use tap::TapOps; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> day15/src/main.rs:301:9 [INFO] [stdout] | [INFO] [stdout] 301 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> day15/src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Duration` and `Utc` [INFO] [stdout] --> day15/src/main.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | use chrono::{Duration, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `alpha` and `digit` [INFO] [stdout] --> day15/src/main.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | use nom::{alpha, digit}; [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `regex::Regex` [INFO] [stdout] --> day15/src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use regex::Regex; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tap::TapOps` [INFO] [stdout] --> day15/src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use tap::TapOps; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `padding` should have an upper case name [INFO] [stdout] --> day12/src/main.rs:25:11 [INFO] [stdout] | [INFO] [stdout] 25 | const padding: usize = 50; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `PADDING` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `padding` should have an upper case name [INFO] [stdout] --> day12/src/main.rs:40:11 [INFO] [stdout] | [INFO] [stdout] 40 | const padding: usize = 1000; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `PADDING` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `n_generations` should have an upper case name [INFO] [stdout] --> day12/src/main.rs:41:11 [INFO] [stdout] | [INFO] [stdout] 41 | const n_generations: usize = 50_000_000_000; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `N_GENERATIONS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to_process` [INFO] [stdout] --> day15/src/main.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | let mut to_process = units.to_vec(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_to_process` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `map` [INFO] [stdout] --> day15/src/main.rs:106:10 [INFO] [stdout] | [INFO] [stdout] 106 | fn part1(map: &Map, units: &[Unit]) -> usize { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> day15/src/main.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | let mut units = units.to_vec(); [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] --> day15/src/main.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | let mut to_process = units.to_vec(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> day15/src/main.rs:119:13 [INFO] [stdout] | [INFO] [stdout] 119 | let target = closest_target(&unit, &units, width); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> day15/src/main.rs:261:22 [INFO] [stdout] | [INFO] [stdout] 261 | let (x, y) = tgt.coord; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> day15/src/main.rs:261:25 [INFO] [stdout] | [INFO] [stdout] 261 | let (x, y) = tgt.coord; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `COMPASS` is never used [INFO] [stdout] --> day15/src/main.rs:104:7 [INFO] [stdout] | [INFO] [stdout] 104 | const COMPASS: [(isize, isize); 4] = [(1, 0), (-1, 0), (0, 1), (0, -1)]; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `next_frame` is never used [INFO] [stdout] --> day15/src/main.rs:113:4 [INFO] [stdout] | [INFO] [stdout] 113 | fn next_frame(map: &Map, units: &[Unit]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Steps` is never used [INFO] [stdout] --> day15/src/main.rs:208:6 [INFO] [stdout] | [INFO] [stdout] 208 | type Steps = Vec; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `top_left` is never used [INFO] [stdout] --> day15/src/main.rs:210:4 [INFO] [stdout] | [INFO] [stdout] 210 | fn top_left(a: &Coord, b: &Coord, width: usize) -> std::cmp::Ordering { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `manhattan_distance` is never used [INFO] [stdout] --> day15/src/main.rs:218:4 [INFO] [stdout] | [INFO] [stdout] 218 | fn manhattan_distance(a: &Coord, b: &Coord) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `targets_in_range` is never used [INFO] [stdout] --> day15/src/main.rs:222:4 [INFO] [stdout] | [INFO] [stdout] 222 | fn targets_in_range<'a>(unit: &'a Unit, targets: &'a [Unit]) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `closest_target` is never used [INFO] [stdout] --> day15/src/main.rs:237:4 [INFO] [stdout] | [INFO] [stdout] 237 | fn closest_target<'a>(unit: &'a Unit, targets: &'a [Unit], width: usize) -> Option<&'a Unit> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_grid` is never used [INFO] [stdout] --> day15/src/main.rs:277:4 [INFO] [stdout] | [INFO] [stdout] 277 | fn create_grid(map: &Map, units: &[Unit]) -> Grid { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `targets` is never used [INFO] [stdout] --> day15/src/main.rs:294:4 [INFO] [stdout] | [INFO] [stdout] 294 | fn targets<'a>(unit: &'a Unit, haystack: &'a [Unit]) -> impl Iterator { [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] --> day15/src/main.rs:234:27 [INFO] [stdout] | [INFO] [stdout] 223 | let search: HashSet = COMPASS [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 234 | targets.iter().filter(move |t| search.contains(&t.coord)) [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: aborting due to 1 previous error; 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `day15` (bin "day15") due to 2 previous errors; 21 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `to_process` [INFO] [stdout] --> day15/src/main.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | let mut to_process = units.to_vec(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_to_process` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `map` [INFO] [stdout] --> day15/src/main.rs:106:10 [INFO] [stdout] | [INFO] [stdout] 106 | fn part1(map: &Map, units: &[Unit]) -> usize { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> day15/src/main.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | let mut units = units.to_vec(); [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] --> day15/src/main.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | let mut to_process = units.to_vec(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> day15/src/main.rs:119:13 [INFO] [stdout] | [INFO] [stdout] 119 | let target = closest_target(&unit, &units, width); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> day15/src/main.rs:261:22 [INFO] [stdout] | [INFO] [stdout] 261 | let (x, y) = tgt.coord; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> day15/src/main.rs:261:25 [INFO] [stdout] | [INFO] [stdout] 261 | let (x, y) = tgt.coord; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `COMPASS` is never used [INFO] [stdout] --> day15/src/main.rs:104:7 [INFO] [stdout] | [INFO] [stdout] 104 | const COMPASS: [(isize, isize); 4] = [(1, 0), (-1, 0), (0, 1), (0, -1)]; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `next_frame` is never used [INFO] [stdout] --> day15/src/main.rs:113:4 [INFO] [stdout] | [INFO] [stdout] 113 | fn next_frame(map: &Map, units: &[Unit]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Steps` is never used [INFO] [stdout] --> day15/src/main.rs:208:6 [INFO] [stdout] | [INFO] [stdout] 208 | type Steps = Vec; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `top_left` is never used [INFO] [stdout] --> day15/src/main.rs:210:4 [INFO] [stdout] | [INFO] [stdout] 210 | fn top_left(a: &Coord, b: &Coord, width: usize) -> std::cmp::Ordering { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `manhattan_distance` is never used [INFO] [stdout] --> day15/src/main.rs:218:4 [INFO] [stdout] | [INFO] [stdout] 218 | fn manhattan_distance(a: &Coord, b: &Coord) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `targets_in_range` is never used [INFO] [stdout] --> day15/src/main.rs:222:4 [INFO] [stdout] | [INFO] [stdout] 222 | fn targets_in_range<'a>(unit: &'a Unit, targets: &'a [Unit]) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `closest_target` is never used [INFO] [stdout] --> day15/src/main.rs:237:4 [INFO] [stdout] | [INFO] [stdout] 237 | fn closest_target<'a>(unit: &'a Unit, targets: &'a [Unit], width: usize) -> Option<&'a Unit> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_grid` is never used [INFO] [stdout] --> day15/src/main.rs:277:4 [INFO] [stdout] | [INFO] [stdout] 277 | fn create_grid(map: &Map, units: &[Unit]) -> Grid { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `targets` is never used [INFO] [stdout] --> day15/src/main.rs:294:4 [INFO] [stdout] | [INFO] [stdout] 294 | fn targets<'a>(unit: &'a Unit, haystack: &'a [Unit]) -> impl Iterator { [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] --> day15/src/main.rs:234:27 [INFO] [stdout] | [INFO] [stdout] 223 | let search: HashSet = COMPASS [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 234 | targets.iter().filter(move |t| search.contains(&t.coord)) [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: aborting due to 1 previous error; 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `day15` (bin "day15" test) due to 2 previous errors; 22 warnings emitted [INFO] running `Command { std: "docker" "inspect" "ce777b9e383eda66820be685ee1520c4d23f1f9850bfce935ec55570eef5805e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ce777b9e383eda66820be685ee1520c4d23f1f9850bfce935ec55570eef5805e", kill_on_drop: false }` [INFO] [stdout] ce777b9e383eda66820be685ee1520c4d23f1f9850bfce935ec55570eef5805e