[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 1.97.0-beta.1 for beta-1.97-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmemotoro%2Fadvent-of-code-21" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'...
[INFO] [stderr] done.
[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-4-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/memotoro/advent-of-code-21 on toolchain 1.97.0-beta.1
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.97.0-beta.1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[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: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.97.0-beta.1" "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-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 5aae2e058540744ad289cbc7fd83331af28caa8dd17593cc65fc2185bebaf285
[INFO] running `Command { std: "docker" "start" "-a" "5aae2e058540744ad289cbc7fd83331af28caa8dd17593cc65fc2185bebaf285", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "5aae2e058540744ad289cbc7fd83331af28caa8dd17593cc65fc2185bebaf285", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "5aae2e058540744ad289cbc7fd83331af28caa8dd17593cc65fc2185bebaf285", kill_on_drop: false }`
[INFO] [stdout] 5aae2e058540744ad289cbc7fd83331af28caa8dd17593cc65fc2185bebaf285
[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=warn" "-e" "RUSTDOCFLAGS=--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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.1" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] ce88b13c44cd19fbfc15697a0b8683d55de6a7d265cca2a72a9a4181be5700ac
[INFO] running `Command { std: "docker" "start" "-a" "ce88b13c44cd19fbfc15697a0b8683d55de6a7d265cca2a72a9a4181be5700ac", 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] 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` (bin "day6_part2") due to 9 previous errors
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] running `Command { std: "docker" "inspect" "ce88b13c44cd19fbfc15697a0b8683d55de6a7d265cca2a72a9a4181be5700ac", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ce88b13c44cd19fbfc15697a0b8683d55de6a7d265cca2a72a9a4181be5700ac", kill_on_drop: false }`
[INFO] [stdout] ce88b13c44cd19fbfc15697a0b8683d55de6a7d265cca2a72a9a4181be5700ac
