[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] checking memotoro/advent-of-code-21 against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmemotoro%2Fadvent-of-code-21" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-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-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/memotoro/advent-of-code-21 on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1d49f2ade7ca0a699625be4fd874565ad73795026f9229d26788e3f25bb825fc [INFO] running `Command { std: "docker" "start" "-a" "1d49f2ade7ca0a699625be4fd874565ad73795026f9229d26788e3f25bb825fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1d49f2ade7ca0a699625be4fd874565ad73795026f9229d26788e3f25bb825fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1d49f2ade7ca0a699625be4fd874565ad73795026f9229d26788e3f25bb825fc", kill_on_drop: false }` [INFO] [stdout] 1d49f2ade7ca0a699625be4fd874565ad73795026f9229d26788e3f25bb825fc [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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a4562a05b89b5333866b699a24f8662bb0b703295d9ddffa76daabd49c5e5762 [INFO] running `Command { std: "docker" "start" "-a" "a4562a05b89b5333866b699a24f8662bb0b703295d9ddffa76daabd49c5e5762", kill_on_drop: false }` [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Checking 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] [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" test) due to 9 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `advent-of-code-2021` (bin "day6_part2") due to 9 previous errors [INFO] running `Command { std: "docker" "inspect" "a4562a05b89b5333866b699a24f8662bb0b703295d9ddffa76daabd49c5e5762", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a4562a05b89b5333866b699a24f8662bb0b703295d9ddffa76daabd49c5e5762", kill_on_drop: false }` [INFO] [stdout] a4562a05b89b5333866b699a24f8662bb0b703295d9ddffa76daabd49c5e5762