[INFO] fetching crate lib2048 0.0.2... [INFO] checking lib2048-0.0.2 against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] extracting crate lib2048 0.0.2 into /workspace/builds/worker-3-tc2/source [INFO] validating manifest of crates.io crate lib2048 0.0.2 on toolchain 23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate lib2048 0.0.2 [INFO] finished tweaking crates.io crate lib2048 0.0.2 [INFO] tweaked toml for crates.io crate lib2048 0.0.2 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d968d65eda51dbcfeda3f681a58de6264403081e8d757797fbb0371525b7b124 [INFO] running `Command { std: "docker" "start" "-a" "d968d65eda51dbcfeda3f681a58de6264403081e8d757797fbb0371525b7b124", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d968d65eda51dbcfeda3f681a58de6264403081e8d757797fbb0371525b7b124", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d968d65eda51dbcfeda3f681a58de6264403081e8d757797fbb0371525b7b124", kill_on_drop: false }` [INFO] [stdout] d968d65eda51dbcfeda3f681a58de6264403081e8d757797fbb0371525b7b124 [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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0870ef2e72d06fa574a6077af12b7c389766cf1d9ec56bba562f217c628264ff [INFO] running `Command { std: "docker" "start" "-a" "0870ef2e72d06fa574a6077af12b7c389766cf1d9ec56bba562f217c628264ff", kill_on_drop: false }` [INFO] [stderr] Checking rand_core v0.4.2 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Checking rand v0.5.6 [INFO] [stderr] Checking lib2048 v0.0.2 (/opt/rustwide/workdir) [INFO] [stdout] error[E0502]: cannot borrow `*board` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/lib.rs:173:17 [INFO] [stdout] | [INFO] [stdout] 152 | for start_ind in each_start(ctrl, &board.size) { [INFO] [stdout] | ----------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 173 | board[ind[i]] = 0; [INFO] [stdout] | ^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*board` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/lib.rs:174:17 [INFO] [stdout] | [INFO] [stdout] 152 | for start_ind in each_start(ctrl, &board.size) { [INFO] [stdout] | ----------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 174 | board[ind[i + 1]] = 0; [INFO] [stdout] | ^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*board` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/lib.rs:175:17 [INFO] [stdout] | [INFO] [stdout] 152 | for start_ind in each_start(ctrl, &board.size) { [INFO] [stdout] | ----------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 175 | board[target_ind[ptr]] = val + 1; [INFO] [stdout] | ^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*board` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/lib.rs:183:17 [INFO] [stdout] | [INFO] [stdout] 152 | for start_ind in each_start(ctrl, &board.size) { [INFO] [stdout] | ----------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 183 | board[ind[i]] = 0; [INFO] [stdout] | ^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*board` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/lib.rs:184:17 [INFO] [stdout] | [INFO] [stdout] 152 | for start_ind in each_start(ctrl, &board.size) { [INFO] [stdout] | ----------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 184 | board[target_ind[ptr]] = val; [INFO] [stdout] | ^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stderr] error: could not compile `lib2048` (lib) due to 6 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0502]: cannot borrow `*board` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/lib.rs:173:17 [INFO] [stdout] | [INFO] [stdout] 152 | for start_ind in each_start(ctrl, &board.size) { [INFO] [stdout] | ----------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 173 | board[ind[i]] = 0; [INFO] [stdout] | ^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*board` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/lib.rs:174:17 [INFO] [stdout] | [INFO] [stdout] 152 | for start_ind in each_start(ctrl, &board.size) { [INFO] [stdout] | ----------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 174 | board[ind[i + 1]] = 0; [INFO] [stdout] | ^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*board` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/lib.rs:175:17 [INFO] [stdout] | [INFO] [stdout] 152 | for start_ind in each_start(ctrl, &board.size) { [INFO] [stdout] | ----------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 175 | board[target_ind[ptr]] = val + 1; [INFO] [stdout] | ^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*board` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/lib.rs:183:17 [INFO] [stdout] | [INFO] [stdout] 152 | for start_ind in each_start(ctrl, &board.size) { [INFO] [stdout] | ----------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 183 | board[ind[i]] = 0; [INFO] [stdout] | ^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*board` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/lib.rs:184:17 [INFO] [stdout] | [INFO] [stdout] 152 | for start_ind in each_start(ctrl, &board.size) { [INFO] [stdout] | ----------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 184 | board[target_ind[ptr]] = val; [INFO] [stdout] | ^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stderr] error: could not compile `lib2048` (lib test) due to 6 previous errors [INFO] running `Command { std: "docker" "inspect" "0870ef2e72d06fa574a6077af12b7c389766cf1d9ec56bba562f217c628264ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0870ef2e72d06fa574a6077af12b7c389766cf1d9ec56bba562f217c628264ff", kill_on_drop: false }` [INFO] [stdout] 0870ef2e72d06fa574a6077af12b7c389766cf1d9ec56bba562f217c628264ff