[INFO] cloning repository https://github.com/alanbriolat/AdventOfCode2021 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/alanbriolat/AdventOfCode2021" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falanbriolat%2FAdventOfCode2021", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falanbriolat%2FAdventOfCode2021'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f6b9a8a315fda06f54bc3e24951c718f55000208 [INFO] checking alanbriolat/AdventOfCode2021 against master#91c0823ee63e793d990bb9fed898dc95b5d6db51 for pr-125384-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falanbriolat%2FAdventOfCode2021" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/alanbriolat/AdventOfCode2021 on toolchain 91c0823ee63e793d990bb9fed898dc95b5d6db51 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+91c0823ee63e793d990bb9fed898dc95b5d6db51" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/alanbriolat/AdventOfCode2021 [INFO] finished tweaking git repo https://github.com/alanbriolat/AdventOfCode2021 [INFO] tweaked toml for git repo https://github.com/alanbriolat/AdventOfCode2021 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/alanbriolat/AdventOfCode2021 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" "+91c0823ee63e793d990bb9fed898dc95b5d6db51" "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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded serde_json v1.0.72 [INFO] [stderr] Downloaded ryu v1.0.6 [INFO] [stderr] Downloaded bitvec v1.0.0-rc1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+91c0823ee63e793d990bb9fed898dc95b5d6db51" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a88e2596afab60cbd05d9a394ee71650ac39362cad0632ca5fa84b841f726bc2 [INFO] running `Command { std: "docker" "start" "-a" "a88e2596afab60cbd05d9a394ee71650ac39362cad0632ca5fa84b841f726bc2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a88e2596afab60cbd05d9a394ee71650ac39362cad0632ca5fa84b841f726bc2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a88e2596afab60cbd05d9a394ee71650ac39362cad0632ca5fa84b841f726bc2", kill_on_drop: false }` [INFO] [stdout] a88e2596afab60cbd05d9a394ee71650ac39362cad0632ca5fa84b841f726bc2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+91c0823ee63e793d990bb9fed898dc95b5d6db51" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2c755f477bbce39fa350d58fb1cb67af3d99ab951fbb3c7a8526552102f4a5ea [INFO] running `Command { std: "docker" "start" "-a" "2c755f477bbce39fa350d58fb1cb67af3d99ab951fbb3c7a8526552102f4a5ea", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling proc-macro2 v1.0.32 [INFO] [stderr] Compiling crossbeam-utils v0.8.5 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling syn v1.0.82 [INFO] [stderr] Compiling semver v1.0.4 [INFO] [stderr] Compiling libc v0.2.108 [INFO] [stderr] Compiling crossbeam-epoch v0.9.5 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling ryu v1.0.6 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling rayon-core v1.9.1 [INFO] [stderr] Compiling radium v0.7.0 [INFO] [stderr] Checking itoa v0.4.8 [INFO] [stderr] Checking tap v1.0.1 [INFO] [stderr] Compiling serde_json v1.0.72 [INFO] [stderr] Checking wyz v0.5.0 [INFO] [stderr] Checking itertools v0.10.1 [INFO] [stderr] Checking unicode-width v0.1.9 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Checking funty v2.0.0 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Checking plotters-backend v0.3.2 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling memoffset v0.6.4 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Compiling num-rational v0.4.0 [INFO] [stderr] Compiling rayon v1.5.1 [INFO] [stderr] Checking bitvec v1.0.0-rc1 [INFO] [stderr] Checking plotters-svg v0.3.1 [INFO] [stderr] Checking crossbeam-channel v0.5.1 [INFO] [stderr] Checking csv-core v0.1.10 [INFO] [stderr] Checking clap v2.34.0 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Checking walkdir v2.3.2 [INFO] [stderr] Compiling cast v0.2.7 [INFO] [stderr] Compiling unindent v0.1.7 [INFO] [stderr] Compiling indoc v1.0.3 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking crossbeam-deque v0.8.1 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Checking num-complex v0.4.0 [INFO] [stderr] Checking plotters v0.3.1 [INFO] [stderr] Checking criterion-plot v0.4.4 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Checking num v0.4.0 [INFO] [stderr] Checking bstr v0.2.17 [INFO] [stderr] Checking serde_cbor v0.11.2 [INFO] [stderr] Checking csv v1.1.6 [INFO] [stderr] Checking thiserror v1.0.30 [INFO] [stderr] Checking tinytemplate v1.2.1 [INFO] [stderr] Checking aoc2021 v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking criterion v0.3.5 [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.84s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: criterion v0.3.5 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "2c755f477bbce39fa350d58fb1cb67af3d99ab951fbb3c7a8526552102f4a5ea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2c755f477bbce39fa350d58fb1cb67af3d99ab951fbb3c7a8526552102f4a5ea", kill_on_drop: false }` [INFO] [stdout] 2c755f477bbce39fa350d58fb1cb67af3d99ab951fbb3c7a8526552102f4a5ea [INFO] checking alanbriolat/AdventOfCode2021 against try#519d6e23a6cb73c4d0f295f71ad37db8e95c54ab for pr-125384-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falanbriolat%2FAdventOfCode2021" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/alanbriolat/AdventOfCode2021 on toolchain 519d6e23a6cb73c4d0f295f71ad37db8e95c54ab [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+519d6e23a6cb73c4d0f295f71ad37db8e95c54ab" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/alanbriolat/AdventOfCode2021 [INFO] finished tweaking git repo https://github.com/alanbriolat/AdventOfCode2021 [INFO] tweaked toml for git repo https://github.com/alanbriolat/AdventOfCode2021 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/alanbriolat/AdventOfCode2021 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" "+519d6e23a6cb73c4d0f295f71ad37db8e95c54ab" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+519d6e23a6cb73c4d0f295f71ad37db8e95c54ab" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5dd8c2894c92d61c91b4800207a26e90363ec888d571bc3589a8f4b5b03f8a9c [INFO] running `Command { std: "docker" "start" "-a" "5dd8c2894c92d61c91b4800207a26e90363ec888d571bc3589a8f4b5b03f8a9c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5dd8c2894c92d61c91b4800207a26e90363ec888d571bc3589a8f4b5b03f8a9c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5dd8c2894c92d61c91b4800207a26e90363ec888d571bc3589a8f4b5b03f8a9c", kill_on_drop: false }` [INFO] [stdout] 5dd8c2894c92d61c91b4800207a26e90363ec888d571bc3589a8f4b5b03f8a9c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+519d6e23a6cb73c4d0f295f71ad37db8e95c54ab" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b2a52558b3f637b9dc01d3f120dd759011f099b082645563144c99d6b4a0ae47 [INFO] running `Command { std: "docker" "start" "-a" "b2a52558b3f637b9dc01d3f120dd759011f099b082645563144c99d6b4a0ae47", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling proc-macro2 v1.0.32 [INFO] [stderr] Compiling crossbeam-utils v0.8.5 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling syn v1.0.82 [INFO] [stderr] Compiling semver v1.0.4 [INFO] [stderr] Compiling libc v0.2.108 [INFO] [stderr] Compiling ryu v1.0.6 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Compiling crossbeam-epoch v0.9.5 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling rayon-core v1.9.1 [INFO] [stderr] Compiling radium v0.7.0 [INFO] [stderr] Checking tap v1.0.1 [INFO] [stderr] Compiling serde_json v1.0.72 [INFO] [stderr] Checking itoa v0.4.8 [INFO] [stderr] Checking wyz v0.5.0 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Checking plotters-backend v0.3.2 [INFO] [stderr] Checking funty v2.0.0 [INFO] [stderr] Checking itertools v0.10.1 [INFO] [stderr] Checking unicode-width v0.1.9 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Checking walkdir v2.3.2 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking plotters-svg v0.3.1 [INFO] [stderr] Compiling unindent v0.1.7 [INFO] [stderr] Checking crossbeam-channel v0.5.1 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling memoffset v0.6.4 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling num-rational v0.4.0 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling rayon v1.5.1 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Checking bitvec v1.0.0-rc1 [INFO] [stderr] Checking clap v2.34.0 [INFO] [stderr] Compiling indoc v1.0.3 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Checking crossbeam-deque v0.8.1 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Compiling cast v0.2.7 [INFO] [stderr] Checking csv-core v0.1.10 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Checking num-complex v0.4.0 [INFO] [stderr] Checking plotters v0.3.1 [INFO] [stderr] Checking criterion-plot v0.4.4 [INFO] [stderr] Checking bstr v0.2.17 [INFO] [stderr] Checking serde_cbor v0.11.2 [INFO] [stderr] Checking num v0.4.0 [INFO] [stderr] Checking csv v1.1.6 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Checking tinytemplate v1.2.1 [INFO] [stderr] Checking thiserror v1.0.30 [INFO] [stderr] Checking aoc2021 v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Migrating src/bin/aoc2021.rs from 2021 edition to 2024 [INFO] [stderr] Checking criterion v0.3.5 [INFO] [stderr] Migrating benches/solution_benchmark.rs from 2021 edition to 2024 [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 17.13s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: criterion v0.3.5 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking aoc2021 v0.1.0 (/tmp/fixit) [INFO] [stdout] error[E0502]: cannot borrow `self.grid` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/solutions/day11.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 24 | for p in self.grid.iter_points() { [INFO] [stdout] | ----------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] 25 | self.grid[p] += 1; [INFO] [stdout] | ^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.grid` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/solutions/day11.rs:34:21 [INFO] [stdout] | [INFO] [stdout] 24 | for p in self.grid.iter_points() { [INFO] [stdout] | ----------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 34 | self.grid[adj] += 1; [INFO] [stdout] | ^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.grid` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/solutions/day11.rs:44:17 [INFO] [stdout] | [INFO] [stdout] 42 | for p in self.grid.iter_points() { [INFO] [stdout] | ----------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] 43 | if self.grid[p] > 9 { [INFO] [stdout] 44 | self.grid[p] = 0; [INFO] [stdout] | ^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `grid` because it is borrowed [INFO] [stdout] --> src/solutions/day15.rs:30:16 [INFO] [stdout] | [INFO] [stdout] 28 | let mut grid = Grid::new(size * [5, 5]); [INFO] [stdout] | -------- binding `grid` declared here [INFO] [stdout] 29 | let points = grid.iter_points(); [INFO] [stdout] | ---- borrow of `grid` occurs here [INFO] [stdout] 30 | grid = grid.with_data(points.map(|p| { [INFO] [stdout] | ^^^^ ------ borrow later used here [INFO] [stdout] | | [INFO] [stdout] | move out of `grid` occurs here [INFO] [stdout] | [INFO] [stdout] note: if `grid::Grid` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/grid.rs:75:1 [INFO] [stdout] | [INFO] [stdout] 75 | pub struct Grid { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: src/solutions/day15.rs:29:22 [INFO] [stdout] | [INFO] [stdout] 29 | let points = grid.iter_points(); [INFO] [stdout] | ---- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0502, E0505. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stderr] error: could not compile `aoc2021` (lib) due to 5 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0502]: cannot borrow `self.grid` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/solutions/day11.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 24 | for p in self.grid.iter_points() { [INFO] [stdout] | ----------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] 25 | self.grid[p] += 1; [INFO] [stdout] | ^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.grid` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/solutions/day11.rs:34:21 [INFO] [stdout] | [INFO] [stdout] 24 | for p in self.grid.iter_points() { [INFO] [stdout] | ----------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 34 | self.grid[adj] += 1; [INFO] [stdout] | ^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.grid` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/solutions/day11.rs:44:17 [INFO] [stdout] | [INFO] [stdout] 42 | for p in self.grid.iter_points() { [INFO] [stdout] | ----------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] 43 | if self.grid[p] > 9 { [INFO] [stdout] 44 | self.grid[p] = 0; [INFO] [stdout] | ^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `grid` because it is borrowed [INFO] [stdout] --> src/solutions/day15.rs:30:16 [INFO] [stdout] | [INFO] [stdout] 28 | let mut grid = Grid::new(size * [5, 5]); [INFO] [stdout] | -------- binding `grid` declared here [INFO] [stdout] 29 | let points = grid.iter_points(); [INFO] [stdout] | ---- borrow of `grid` occurs here [INFO] [stdout] 30 | grid = grid.with_data(points.map(|p| { [INFO] [stdout] | ^^^^ ------ borrow later used here [INFO] [stdout] | | [INFO] [stdout] | move out of `grid` occurs here [INFO] [stdout] | [INFO] [stdout] note: if `grid::Grid` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/grid.rs:75:1 [INFO] [stdout] | [INFO] [stdout] 75 | pub struct Grid { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: src/solutions/day15.rs:29:22 [INFO] [stdout] | [INFO] [stdout] 29 | let points = grid.iter_points(); [INFO] [stdout] | ---- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0502, E0505. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stderr] error: could not compile `aoc2021` (lib test) due to 5 previous errors [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "b2a52558b3f637b9dc01d3f120dd759011f099b082645563144c99d6b4a0ae47", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b2a52558b3f637b9dc01d3f120dd759011f099b082645563144c99d6b4a0ae47", kill_on_drop: false }` [INFO] [stdout] b2a52558b3f637b9dc01d3f120dd759011f099b082645563144c99d6b4a0ae47