[INFO] cloning repository https://github.com/roguemaps/dice-game [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/roguemaps/dice-game" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Froguemaps%2Fdice-game", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Froguemaps%2Fdice-game'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1338fdfedf5a693c37073a04b2a63ee5bcfa5b04 [INFO] checking roguemaps/dice-game against try#da0275e101cdc809ce291ed8b64d6f82c6b65467 for pr-134276 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Froguemaps%2Fdice-game" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/roguemaps/dice-game on toolchain da0275e101cdc809ce291ed8b64d6f82c6b65467 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+da0275e101cdc809ce291ed8b64d6f82c6b65467" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/roguemaps/dice-game [INFO] finished tweaking git repo https://github.com/roguemaps/dice-game [INFO] tweaked toml for git repo https://github.com/roguemaps/dice-game written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/roguemaps/dice-game 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" "+da0275e101cdc809ce291ed8b64d6f82c6b65467" "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-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+da0275e101cdc809ce291ed8b64d6f82c6b65467" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d29f5edd38cbbd47fbb09a7d3f013acec0578cde2ee930012f8b8e9319247628 [INFO] running `Command { std: "docker" "start" "-a" "d29f5edd38cbbd47fbb09a7d3f013acec0578cde2ee930012f8b8e9319247628", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d29f5edd38cbbd47fbb09a7d3f013acec0578cde2ee930012f8b8e9319247628", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d29f5edd38cbbd47fbb09a7d3f013acec0578cde2ee930012f8b8e9319247628", kill_on_drop: false }` [INFO] [stdout] d29f5edd38cbbd47fbb09a7d3f013acec0578cde2ee930012f8b8e9319247628 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+da0275e101cdc809ce291ed8b64d6f82c6b65467" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 48442a61fb75d5d0f0b788f9c1a982a8893ab4e969b4f6c87d1516cce5ac64e4 [INFO] running `Command { std: "docker" "start" "-a" "48442a61fb75d5d0f0b788f9c1a982a8893ab4e969b4f6c87d1516cce5ac64e4", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Checking getrandom v0.2.6 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking dice-game v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0502]: cannot borrow `*borrow_countries` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/lib.rs:71:46 [INFO] [stdout] | [INFO] [stdout] 71 | borrow_countries[i].borders.push(borrow_countries[i + 1].id); [INFO] [stdout] | ---------------- ---- ^^^^^^^^^^^^^^^^ immutable borrow occurs here [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow later used by call [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = help: use `.split_at_mut(position)` to obtain two mutable non-overlapping sub-slices [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of index of `Vec` [INFO] [stdout] --> src/lib.rs:84:32 [INFO] [stdout] | [INFO] [stdout] 84 | updated_countries.push(countries[i]); [INFO] [stdout] | ^^^^^^^^^^^^ move occurs because value has type `Country`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `Country` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/lib.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Country { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] ... [INFO] [stdout] 84 | updated_countries.push(countries[i]); [INFO] [stdout] | ------------ you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0502, E0507. [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*borrow_countries` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/lib.rs:71:46 [INFO] [stdout] | [INFO] [stdout] 71 | borrow_countries[i].borders.push(borrow_countries[i + 1].id); [INFO] [stdout] | ---------------- ---- ^^^^^^^^^^^^^^^^ immutable borrow occurs here [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow later used by call [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = help: use `.split_at_mut(position)` to obtain two mutable non-overlapping sub-slices [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of index of `Vec` [INFO] [stdout] --> src/lib.rs:84:32 [INFO] [stdout] | [INFO] [stdout] 84 | updated_countries.push(countries[i]); [INFO] [stdout] | ^^^^^^^^^^^^ move occurs because value has type `Country`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `Country` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/lib.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Country { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] ... [INFO] [stdout] 84 | updated_countries.push(countries[i]); [INFO] [stdout] | ------------ you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0502, E0507. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stderr] error: could not compile `dice-game` (lib) due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `dice-game` (lib test) due to 2 previous errors [INFO] running `Command { std: "docker" "inspect" "48442a61fb75d5d0f0b788f9c1a982a8893ab4e969b4f6c87d1516cce5ac64e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "48442a61fb75d5d0f0b788f9c1a982a8893ab4e969b4f6c87d1516cce5ac64e4", kill_on_drop: false }` [INFO] [stdout] 48442a61fb75d5d0f0b788f9c1a982a8893ab4e969b4f6c87d1516cce5ac64e4