[INFO] cloning repository https://github.com/kyp44/advent-of-code [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kyp44/advent-of-code" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkyp44%2Fadvent-of-code", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkyp44%2Fadvent-of-code'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 746f4fc58d9676122d09cc426f64fda39c257848 [INFO] checking kyp44/advent-of-code against master#91c0823ee63e793d990bb9fed898dc95b5d6db51 for pr-125384-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkyp44%2Fadvent-of-code" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kyp44/advent-of-code 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/kyp44/advent-of-code [INFO] finished tweaking git repo https://github.com/kyp44/advent-of-code [INFO] tweaked toml for git repo https://github.com/kyp44/advent-of-code written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/kyp44/advent-of-code 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] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded infinitable v1.6.0 [INFO] [stderr] Downloaded gat-lending-iterator v0.1.5 [INFO] [stderr] Downloaded grid v0.14.0 [INFO] [stderr] Downloaded takeable v0.2.2 [INFO] [stderr] Downloaded gcollections v1.5.0 [INFO] [stderr] Downloaded intervallum v1.4.1 [INFO] [stderr] Downloaded merge_derive v0.1.0 [INFO] [stderr] Downloaded structmeta v0.3.0 [INFO] [stderr] Downloaded merge v0.1.0 [INFO] [stderr] Downloaded structmeta-derive v0.3.0 [INFO] [stderr] Downloaded bare_metal_modulo v1.2.4 [INFO] [stderr] Downloaded bimap v0.6.3 [INFO] [stderr] Downloaded bitbuffer v0.11.0 [INFO] [stderr] Downloaded bitbuffer_derive v0.11.0 [INFO] [stderr] Downloaded circular-buffer v0.1.7 [INFO] [stderr] Downloaded trilean v1.1.0 [INFO] [stderr] Downloaded multiset v0.0.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] edf3abf332c6a87cf6c850de246d9fc99440e8679dd2e414b54743ccd90f150b [INFO] running `Command { std: "docker" "start" "-a" "edf3abf332c6a87cf6c850de246d9fc99440e8679dd2e414b54743ccd90f150b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "edf3abf332c6a87cf6c850de246d9fc99440e8679dd2e414b54743ccd90f150b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "edf3abf332c6a87cf6c850de246d9fc99440e8679dd2e414b54743ccd90f150b", kill_on_drop: false }` [INFO] [stdout] edf3abf332c6a87cf6c850de246d9fc99440e8679dd2e414b54743ccd90f150b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 72b1dac6994b88185b5e8f210006a4a8a305f63db53ffc63f1099710d01bd177 [INFO] running `Command { std: "docker" "start" "-a" "72b1dac6994b88185b5e8f210006a4a8a305f63db53ffc63f1099710d01bd177", kill_on_drop: false }` [INFO] [stderr] Checking bit-vec v0.6.3 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking trilean v1.1.0 [INFO] [stderr] Checking clap_builder v4.5.2 [INFO] [stderr] Compiling structmeta-derive v0.3.0 [INFO] [stderr] Compiling enum-map-derive v0.17.0 [INFO] [stderr] Compiling clap_derive v4.5.4 [INFO] [stderr] Checking euclid v0.22.10 [INFO] [stderr] Compiling derive-new v0.6.0 [INFO] [stderr] Checking itertools v0.12.1 [INFO] [stderr] Checking num-bigint v0.4.5 [INFO] [stderr] Compiling merge_derive v0.1.0 [INFO] [stderr] Checking strum v0.26.2 [INFO] [stderr] Checking infinitable v1.6.0 [INFO] [stderr] Checking petgraph v0.6.5 [INFO] [stderr] Compiling enum-as-inner v0.6.0 [INFO] [stderr] Compiling enum_dispatch v0.3.13 [INFO] [stderr] Checking gat-lending-iterator v0.1.5 [INFO] [stderr] Checking bit-set v0.5.3 [INFO] [stderr] Checking bimap v0.6.3 [INFO] [stderr] Checking gcollections v1.5.0 [INFO] [stderr] Checking md5 v0.7.0 [INFO] [stderr] Checking circular-buffer v0.1.7 [INFO] [stderr] Checking intervallum v1.4.1 [INFO] [stderr] Checking maplit v1.0.2 [INFO] [stderr] Checking multiset v0.0.5 [INFO] [stderr] Checking takeable v0.2.2 [INFO] [stderr] Checking enum-map v2.7.3 [INFO] [stderr] Checking grid v0.14.0 [INFO] [stderr] Checking num-rational v0.4.2 [INFO] [stderr] Compiling structmeta v0.3.0 [INFO] [stderr] Compiling merge v0.1.0 [INFO] [stderr] Checking num v0.4.3 [INFO] [stderr] Checking bare_metal_modulo v1.2.4 [INFO] [stderr] Compiling bitbuffer_derive v0.11.0 [INFO] [stderr] Checking clap v4.5.4 [INFO] [stderr] Checking bitbuffer v0.11.0 [INFO] [stderr] Checking advent-of-code v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.19s [INFO] running `Command { std: "docker" "inspect" "72b1dac6994b88185b5e8f210006a4a8a305f63db53ffc63f1099710d01bd177", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "72b1dac6994b88185b5e8f210006a4a8a305f63db53ffc63f1099710d01bd177", kill_on_drop: false }` [INFO] [stdout] 72b1dac6994b88185b5e8f210006a4a8a305f63db53ffc63f1099710d01bd177 [INFO] checking kyp44/advent-of-code against try#519d6e23a6cb73c4d0f295f71ad37db8e95c54ab for pr-125384-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkyp44%2Fadvent-of-code" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kyp44/advent-of-code 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/kyp44/advent-of-code [INFO] finished tweaking git repo https://github.com/kyp44/advent-of-code [INFO] tweaked toml for git repo https://github.com/kyp44/advent-of-code written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/kyp44/advent-of-code 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-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 6473cc4f8c930d33692b35ad3fe45931d0bf60de83e1344831f242bea61432f2 [INFO] running `Command { std: "docker" "start" "-a" "6473cc4f8c930d33692b35ad3fe45931d0bf60de83e1344831f242bea61432f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6473cc4f8c930d33692b35ad3fe45931d0bf60de83e1344831f242bea61432f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6473cc4f8c930d33692b35ad3fe45931d0bf60de83e1344831f242bea61432f2", kill_on_drop: false }` [INFO] [stdout] 6473cc4f8c930d33692b35ad3fe45931d0bf60de83e1344831f242bea61432f2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] ed84cd58c835985a45e5106a9f55f5e3838341fd47bb0634c7d136109b71e566 [INFO] running `Command { std: "docker" "start" "-a" "ed84cd58c835985a45e5106a9f55f5e3838341fd47bb0634c7d136109b71e566", 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] Checking bit-vec v0.6.3 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking trilean v1.1.0 [INFO] [stderr] Checking clap_builder v4.5.2 [INFO] [stderr] Compiling structmeta-derive v0.3.0 [INFO] [stderr] Compiling enum-map-derive v0.17.0 [INFO] [stderr] Compiling clap_derive v4.5.4 [INFO] [stderr] Compiling enum_dispatch v0.3.13 [INFO] [stderr] Compiling derive-new v0.6.0 [INFO] [stderr] Checking num-bigint v0.4.5 [INFO] [stderr] Compiling merge_derive v0.1.0 [INFO] [stderr] Checking strum v0.26.2 [INFO] [stderr] Checking infinitable v1.6.0 [INFO] [stderr] Checking petgraph v0.6.5 [INFO] [stderr] Checking euclid v0.22.10 [INFO] [stderr] Compiling enum-as-inner v0.6.0 [INFO] [stderr] Checking itertools v0.12.1 [INFO] [stderr] Checking gat-lending-iterator v0.1.5 [INFO] [stderr] Checking grid v0.14.0 [INFO] [stderr] Checking bit-set v0.5.3 [INFO] [stderr] Checking md5 v0.7.0 [INFO] [stderr] Checking gcollections v1.5.0 [INFO] [stderr] Checking multiset v0.0.5 [INFO] [stderr] Checking takeable v0.2.2 [INFO] [stderr] Checking circular-buffer v0.1.7 [INFO] [stderr] Checking maplit v1.0.2 [INFO] [stderr] Checking bimap v0.6.3 [INFO] [stderr] Checking enum-map v2.7.3 [INFO] [stderr] Checking intervallum v1.4.1 [INFO] [stderr] Checking num-rational v0.4.2 [INFO] [stderr] Compiling merge v0.1.0 [INFO] [stderr] Checking num v0.4.3 [INFO] [stderr] Checking bare_metal_modulo v1.2.4 [INFO] [stderr] Compiling structmeta v0.3.0 [INFO] [stderr] Compiling bitbuffer_derive v0.11.0 [INFO] [stderr] Checking bitbuffer v0.11.0 [INFO] [stderr] Checking clap v4.5.4 [INFO] [stderr] Checking advent-of-code v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/aoc/lib.rs from 2021 edition to 2024 [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 19.44s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking advent-of-code 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/aoc_2021/day_04.rs:90:28 [INFO] [stdout] | [INFO] [stdout] 89 | for point in self.grid.all_points() { [INFO] [stdout] | ---------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] 90 | let cell = self.grid.get_mut(&point); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.octopi.grid` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/aoc_2021/day_11.rs:75:18 [INFO] [stdout] | [INFO] [stdout] 74 | for point in self.octopi.grid.all_points() { [INFO] [stdout] | ----------------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] 75 | *self.octopi.grid.get_mut(&point) += 1.into(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.octopi.grid` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/aoc_2021/day_11.rs:93:30 [INFO] [stdout] | [INFO] [stdout] 83 | for point in self.octopi.grid.all_points() { [INFO] [stdout] | ----------------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 93 | *self.octopi.grid.get_mut(&fp) += 1.into(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `pixels` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/aoc_2022/day_10.rs:326:17 [INFO] [stdout] | [INFO] [stdout] 323 | for (cpu, point) in program.execute().zip(pixels.all_points()) { [INFO] [stdout] | ------------------------------------------ [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 326 | pixels.set(&point, true.into()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/aoc_2022/day_18.rs:170:37 [INFO] [stdout] | [INFO] [stdout] 169 | for start_cube in self.all_cubes() { [INFO] [stdout] | ---------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] 170 | if let Some(node) = self.new_node(start_cube) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0506]: cannot assign to `self` because it is borrowed [INFO] [stdout] --> src/aoc_2022/day_18.rs:171:21 [INFO] [stdout] | [INFO] [stdout] 169 | for start_cube in self.all_cubes() { [INFO] [stdout] | ---------------- [INFO] [stdout] | | [INFO] [stdout] | `self` is borrowed here [INFO] [stdout] | borrow later used here [INFO] [stdout] 170 | if let Some(node) = self.new_node(start_cube) { [INFO] [stdout] 171 | self = node.traverse_tree(self); [INFO] [stdout] | ^^^^ `self` is assigned to here but it was already borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `self` because it is borrowed [INFO] [stdout] --> src/aoc_2022/day_18.rs:171:47 [INFO] [stdout] | [INFO] [stdout] 168 | pub fn pocket_cubes(mut self) -> HashSet { [INFO] [stdout] | -------- binding `self` declared here [INFO] [stdout] 169 | for start_cube in self.all_cubes() { [INFO] [stdout] | ---- borrow of `self` occurs here [INFO] [stdout] 170 | if let Some(node) = self.new_node(start_cube) { [INFO] [stdout] 171 | self = node.traverse_tree(self); [INFO] [stdout] | ^^^^ move out of `self` occurs here [INFO] [stdout] | [INFO] [stdout] note: if `RegionSearchState<'_>` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/aoc_2022/day_18.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 89 | struct RegionSearchState<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] ... [INFO] [stdout] 169 | for start_cube in self.all_cubes() { [INFO] [stdout] | ---- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/aoc_2022/day_18.rs:181:17 [INFO] [stdout] | [INFO] [stdout] 169 | for start_cube in self.all_cubes() { [INFO] [stdout] | ---------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 181 | self.reset(); [INFO] [stdout] | ^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `unfolded_grid` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/aoc_2022/day_22.rs:622:21 [INFO] [stdout] | [INFO] [stdout] 617 | for unfolded_point in unfolded_grid.all_points() { [INFO] [stdout] | -------------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 622 | unfolded_grid.set(&unfolded_point, true.into()); [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/aoc_2021/day_04.rs:90:28 [INFO] [stdout] | [INFO] [stdout] 89 | for point in self.grid.all_points() { [INFO] [stdout] | ---------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] 90 | let cell = self.grid.get_mut(&point); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0502, E0505, E0506. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stderr] error: could not compile `advent-of-code` (bin "advent-of-code") due to 10 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0502]: cannot borrow `self.octopi.grid` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/aoc_2021/day_11.rs:75:18 [INFO] [stdout] | [INFO] [stdout] 74 | for point in self.octopi.grid.all_points() { [INFO] [stdout] | ----------------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] 75 | *self.octopi.grid.get_mut(&point) += 1.into(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.octopi.grid` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/aoc_2021/day_11.rs:93:30 [INFO] [stdout] | [INFO] [stdout] 83 | for point in self.octopi.grid.all_points() { [INFO] [stdout] | ----------------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 93 | *self.octopi.grid.get_mut(&fp) += 1.into(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `pixels` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/aoc_2022/day_10.rs:326:17 [INFO] [stdout] | [INFO] [stdout] 323 | for (cpu, point) in program.execute().zip(pixels.all_points()) { [INFO] [stdout] | ------------------------------------------ [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 326 | pixels.set(&point, true.into()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/aoc_2022/day_18.rs:170:37 [INFO] [stdout] | [INFO] [stdout] 169 | for start_cube in self.all_cubes() { [INFO] [stdout] | ---------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] 170 | if let Some(node) = self.new_node(start_cube) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0506]: cannot assign to `self` because it is borrowed [INFO] [stdout] --> src/aoc_2022/day_18.rs:171:21 [INFO] [stdout] | [INFO] [stdout] 169 | for start_cube in self.all_cubes() { [INFO] [stdout] | ---------------- [INFO] [stdout] | | [INFO] [stdout] | `self` is borrowed here [INFO] [stdout] | borrow later used here [INFO] [stdout] 170 | if let Some(node) = self.new_node(start_cube) { [INFO] [stdout] 171 | self = node.traverse_tree(self); [INFO] [stdout] | ^^^^ `self` is assigned to here but it was already borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `self` because it is borrowed [INFO] [stdout] --> src/aoc_2022/day_18.rs:171:47 [INFO] [stdout] | [INFO] [stdout] 168 | pub fn pocket_cubes(mut self) -> HashSet { [INFO] [stdout] | -------- binding `self` declared here [INFO] [stdout] 169 | for start_cube in self.all_cubes() { [INFO] [stdout] | ---- borrow of `self` occurs here [INFO] [stdout] 170 | if let Some(node) = self.new_node(start_cube) { [INFO] [stdout] 171 | self = node.traverse_tree(self); [INFO] [stdout] | ^^^^ move out of `self` occurs here [INFO] [stdout] | [INFO] [stdout] note: if `RegionSearchState<'_>` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/aoc_2022/day_18.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 89 | struct RegionSearchState<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] ... [INFO] [stdout] 169 | for start_cube in self.all_cubes() { [INFO] [stdout] | ---- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/aoc_2022/day_18.rs:181:17 [INFO] [stdout] | [INFO] [stdout] 169 | for start_cube in self.all_cubes() { [INFO] [stdout] | ---------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 181 | self.reset(); [INFO] [stdout] | ^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `unfolded_grid` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/aoc_2022/day_22.rs:622:21 [INFO] [stdout] | [INFO] [stdout] 617 | for unfolded_point in unfolded_grid.all_points() { [INFO] [stdout] | -------------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 622 | unfolded_grid.set(&unfolded_point, true.into()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0502, E0505, E0506. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stderr] error: could not compile `advent-of-code` (bin "advent-of-code" test) due to 10 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" "ed84cd58c835985a45e5106a9f55f5e3838341fd47bb0634c7d136109b71e566", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ed84cd58c835985a45e5106a9f55f5e3838341fd47bb0634c7d136109b71e566", kill_on_drop: false }` [INFO] [stdout] ed84cd58c835985a45e5106a9f55f5e3838341fd47bb0634c7d136109b71e566