[INFO] cloning repository https://github.com/memotoro/advent-of-code-21 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/memotoro/advent-of-code-21" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmemotoro%2Fadvent-of-code-21", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmemotoro%2Fadvent-of-code-21'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3226c7ec00492e6c46003d72454b2e636808ee2e [INFO] testing memotoro/advent-of-code-21 against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmemotoro%2Fadvent-of-code-21" "/workspace/builds/worker-15/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-15/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/memotoro/advent-of-code-21 on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/memotoro/advent-of-code-21 [INFO] finished tweaking git repo https://github.com/memotoro/advent-of-code-21 [INFO] tweaked toml for git repo https://github.com/memotoro/advent-of-code-21 written to /workspace/builds/worker-15/source/Cargo.toml [INFO] crate git repo https://github.com/memotoro/advent-of-code-21 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6f5ca6d99f6931cc63511da3019293ca15bc667bdde74f0cee287bdaf64468ce [INFO] running `Command { std: "docker" "start" "-a" "6f5ca6d99f6931cc63511da3019293ca15bc667bdde74f0cee287bdaf64468ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6f5ca6d99f6931cc63511da3019293ca15bc667bdde74f0cee287bdaf64468ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6f5ca6d99f6931cc63511da3019293ca15bc667bdde74f0cee287bdaf64468ce", kill_on_drop: false }` [INFO] [stdout] 6f5ca6d99f6931cc63511da3019293ca15bc667bdde74f0cee287bdaf64468ce [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e74243d25eb1c1984b91f406f07b679411a1cae6e3d9454120e261ef20d55eae [INFO] running `Command { std: "docker" "start" "-a" "e74243d25eb1c1984b91f406f07b679411a1cae6e3d9454120e261ef20d55eae", kill_on_drop: false }` [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling advent-of-code-2021 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0502]: cannot borrow `freq` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/bin/day6_part2.rs:37:31 [INFO] [stdout] | [INFO] [stdout] 36 | for (key, _) in freq.iter_mut() { [INFO] [stdout] | --------------- [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | mutable borrow later used here [INFO] [stdout] 37 | let value = match freq.get(key) { [INFO] [stdout] | ^^^^^^^^^^^^^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `freq` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/bin/day6_part2.rs:43:37 [INFO] [stdout] | [INFO] [stdout] 36 | for (key, _) in freq.iter_mut() { [INFO] [stdout] | --------------- [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | mutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 43 | let value_6 = match freq.get(&6) { [INFO] [stdout] | ^^^^^^^^^^^^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `freq` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/bin/day6_part2.rs:47:37 [INFO] [stdout] | [INFO] [stdout] 36 | for (key, _) in freq.iter_mut() { [INFO] [stdout] | --------------- [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | mutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 47 | let value_8 = match freq.get(&8) { [INFO] [stdout] | ^^^^^^^^^^^^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `freq` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/bin/day6_part2.rs:52:43 [INFO] [stdout] | [INFO] [stdout] 36 | for (key, _) in freq.iter_mut() { [INFO] [stdout] | --------------- [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | mutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 52 | let new_key_value = match freq.get(&new_key) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `freq` as mutable more than once at a time [INFO] [stdout] --> src/bin/day6_part2.rs:56:17 [INFO] [stdout] | [INFO] [stdout] 36 | for (key, _) in freq.iter_mut() { [INFO] [stdout] | --------------- [INFO] [stdout] | | [INFO] [stdout] | first mutable borrow occurs here [INFO] [stdout] | first borrow later used here [INFO] [stdout] ... [INFO] [stdout] 56 | freq.insert(6, value_6); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `freq` as mutable more than once at a time [INFO] [stdout] --> src/bin/day6_part2.rs:57:17 [INFO] [stdout] | [INFO] [stdout] 36 | for (key, _) in freq.iter_mut() { [INFO] [stdout] | --------------- [INFO] [stdout] | | [INFO] [stdout] | first mutable borrow occurs here [INFO] [stdout] | first borrow later used here [INFO] [stdout] ... [INFO] [stdout] 57 | freq.insert(8, value_8); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `freq` as mutable more than once at a time [INFO] [stdout] --> src/bin/day6_part2.rs:58:17 [INFO] [stdout] | [INFO] [stdout] 36 | for (key, _) in freq.iter_mut() { [INFO] [stdout] | --------------- [INFO] [stdout] | | [INFO] [stdout] | first mutable borrow occurs here [INFO] [stdout] | first borrow later used here [INFO] [stdout] ... [INFO] [stdout] 58 | freq.insert(*key, value - 1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `freq` as mutable more than once at a time [INFO] [stdout] --> src/bin/day6_part2.rs:59:17 [INFO] [stdout] | [INFO] [stdout] 36 | for (key, _) in freq.iter_mut() { [INFO] [stdout] | --------------- [INFO] [stdout] | | [INFO] [stdout] | first mutable borrow occurs here [INFO] [stdout] | first borrow later used here [INFO] [stdout] ... [INFO] [stdout] 59 | freq.insert(new_key, *new_key_value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `freq` as mutable more than once at a time [INFO] [stdout] --> src/bin/day6_part2.rs:61:17 [INFO] [stdout] | [INFO] [stdout] 36 | for (key, _) in freq.iter_mut() { [INFO] [stdout] | --------------- [INFO] [stdout] | | [INFO] [stdout] | first mutable borrow occurs here [INFO] [stdout] | first borrow later used here [INFO] [stdout] ... [INFO] [stdout] 61 | freq.insert(*key, *value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ second 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: E0499, E0502. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0499`. [INFO] [stdout] [INFO] [stderr] error: could not compile `advent-of-code-2021` due to 10 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "e74243d25eb1c1984b91f406f07b679411a1cae6e3d9454120e261ef20d55eae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e74243d25eb1c1984b91f406f07b679411a1cae6e3d9454120e261ef20d55eae", kill_on_drop: false }` [INFO] [stdout] e74243d25eb1c1984b91f406f07b679411a1cae6e3d9454120e261ef20d55eae