[INFO] cloning repository https://github.com/whostolemyhat/advent2024 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/whostolemyhat/advent2024" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwhostolemyhat%2Fadvent2024", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwhostolemyhat%2Fadvent2024'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b36a874c4ba061d6435563cdb4b85750e37bada5 [INFO] checking whostolemyhat/advent2024 against e5e97e3ef0ee95d34bea49cdac051ed1bbac01df for pr-158759-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwhostolemyhat%2Fadvent2024" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/whostolemyhat/advent2024 [INFO] finished tweaking git repo https://github.com/whostolemyhat/advent2024 [INFO] tweaked toml for git repo https://github.com/whostolemyhat/advent2024 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/whostolemyhat/advent2024 on toolchain e5e97e3ef0ee95d34bea49cdac051ed1bbac01df [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e5e97e3ef0ee95d34bea49cdac051ed1bbac01df" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/whostolemyhat/advent2024 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" "+e5e97e3ef0ee95d34bea49cdac051ed1bbac01df" "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/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3d5ced03c013a94a2f102a4510f48a6e9184255caf5fd8244f58017bde7f5210" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] 8c0013f329ed4cb7f3d7576d9bef9894142718f8eebb972aff8b6a5fbeb359cc [INFO] running `Command { std: "docker" "start" "8c0013f329ed4cb7f3d7576d9bef9894142718f8eebb972aff8b6a5fbeb359cc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8c0013f329ed4cb7f3d7576d9bef9894142718f8eebb972aff8b6a5fbeb359cc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "8c0013f329ed4cb7f3d7576d9bef9894142718f8eebb972aff8b6a5fbeb359cc" "/opt/rustwide/cargo-home/bin/cargo" "+e5e97e3ef0ee95d34bea49cdac051ed1bbac01df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8c0013f329ed4cb7f3d7576d9bef9894142718f8eebb972aff8b6a5fbeb359cc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "8c0013f329ed4cb7f3d7576d9bef9894142718f8eebb972aff8b6a5fbeb359cc" "/opt/rustwide/cargo-home/bin/cargo" "+e5e97e3ef0ee95d34bea49cdac051ed1bbac01df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking itertools v0.13.0 [INFO] [stderr] Checking day10 v0.1.0 (/opt/rustwide/workdir/day10) [INFO] [stderr] Checking day1 v0.1.0 (/opt/rustwide/workdir/day1) [INFO] [stderr] Checking day6 v0.1.0 (/opt/rustwide/workdir/day6) [INFO] [stderr] Checking day9 v0.1.0 (/opt/rustwide/workdir/day9) [INFO] [stderr] Checking day7 v0.1.0 (/opt/rustwide/workdir/day7) [INFO] [stderr] Checking day2 v0.1.0 (/opt/rustwide/workdir/day2) [INFO] [stderr] Checking day4 v0.1.0 (/opt/rustwide/workdir/day4) [INFO] [stdout] warning: unused import: `collections::HashMap` [INFO] [stdout] --> day9/src/main.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, env::args, fs::read_to_string, io, iter::repeat}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `collections::HashMap` [INFO] [stdout] --> day9/src/main.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, env::args, fs::read_to_string, io, iter::repeat}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> day9/src/main.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let mut programme = Program::parse(&input); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> day9/src/main.rs:138:25 [INFO] [stdout] | [INFO] [stdout] 138 | let (mut files, mut spaces): (Vec, Vec) = self [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `space` is never read [INFO] [stdout] --> day9/src/main.rs:152:29 [INFO] [stdout] | [INFO] [stdout] 152 | ... space.size -= file.size; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `space` is never read [INFO] [stdout] --> day9/src/main.rs:153:29 [INFO] [stdout] | [INFO] [stdout] 153 | ... space.offset += file.size; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `frag` is never used [INFO] [stdout] --> day9/src/main.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 47 | impl Program { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 93 | fn frag(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `checksum` is never used [INFO] [stdout] --> day9/src/main.rs:185:4 [INFO] [stdout] | [INFO] [stdout] 185 | fn checksum(input: &Vec) -> u64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `Program` has no field named `spaces` [INFO] [stdout] --> day9/src/test.rs:29:17 [INFO] [stdout] | [INFO] [stdout] 29 | spaces [INFO] [stdout] | ^^^^^^ `Program` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `blocks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `Program` has no field named `spaces` [INFO] [stdout] --> day9/src/test.rs:50:17 [INFO] [stdout] | [INFO] [stdout] 50 | spaces [INFO] [stdout] | ^^^^^^ `Program` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `blocks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> day9/src/test.rs:161:13 [INFO] [stdout] | [INFO] [stdout] 161 | let mut programme = Program::parse(&input); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> day9/src/main.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let mut programme = Program::parse(&input); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> day9/src/main.rs:138:25 [INFO] [stdout] | [INFO] [stdout] 138 | let (mut files, mut spaces): (Vec, Vec) = self [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `space` is never read [INFO] [stdout] --> day9/src/main.rs:152:29 [INFO] [stdout] | [INFO] [stdout] 152 | ... space.size -= file.size; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `space` is never read [INFO] [stdout] --> day9/src/main.rs:153:29 [INFO] [stdout] | [INFO] [stdout] 153 | ... space.offset += file.size; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0560`. [INFO] [stdout] [INFO] [stderr] error: could not compile `day9` (bin "day9" test) due to 2 previous errors; 6 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "8c0013f329ed4cb7f3d7576d9bef9894142718f8eebb972aff8b6a5fbeb359cc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8c0013f329ed4cb7f3d7576d9bef9894142718f8eebb972aff8b6a5fbeb359cc", kill_on_drop: false }` [INFO] [stdout] 8c0013f329ed4cb7f3d7576d9bef9894142718f8eebb972aff8b6a5fbeb359cc