[INFO] fetching crate donyeh 0.1.1... [INFO] checking donyeh-0.1.1 against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] extracting crate donyeh 0.1.1 into /workspace/builds/worker-7-tc2/source [INFO] validating manifest of crates.io crate donyeh 0.1.1 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 donyeh 0.1.1 [INFO] finished tweaking crates.io crate donyeh 0.1.1 [INFO] tweaked toml for crates.io crate donyeh 0.1.1 written to /workspace/builds/worker-7-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-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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 075623b0154a83191b58f6d7499bc55aae500eca0b99c1d759e28a82ca0f424e [INFO] running `Command { std: "docker" "start" "-a" "075623b0154a83191b58f6d7499bc55aae500eca0b99c1d759e28a82ca0f424e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "075623b0154a83191b58f6d7499bc55aae500eca0b99c1d759e28a82ca0f424e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "075623b0154a83191b58f6d7499bc55aae500eca0b99c1d759e28a82ca0f424e", kill_on_drop: false }` [INFO] [stdout] 075623b0154a83191b58f6d7499bc55aae500eca0b99c1d759e28a82ca0f424e [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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1c373ca4d42c4fbbec443700ebb772fb3f6786d990ceacf5bc604ad939ee1446 [INFO] running `Command { std: "docker" "start" "-a" "1c373ca4d42c4fbbec443700ebb772fb3f6786d990ceacf5bc604ad939ee1446", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.148 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking getrandom v0.2.10 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking donyeh v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] error[E0502]: cannot borrow `*board` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/decider.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 56 | for step in board.query_possible_moves_of_side(side) { [INFO] [stdout] | ---------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | a temporary with access to the immutable borrow is created here ... [INFO] [stdout] 57 | board.apply_move_unchecked(&step); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 69 | } [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*board` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/decider.rs:58:25 [INFO] [stdout] | [INFO] [stdout] 56 | for step in board.query_possible_moves_of_side(side) { [INFO] [stdout] | ---------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | a temporary with access to the immutable borrow is created here ... [INFO] [stdout] 57 | board.apply_move_unchecked(&step); [INFO] [stdout] 58 | let score = self.min_search(board, side, depth - 1, current_node_count, alpha, beta)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 69 | } [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*board` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/decider.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 56 | for step in board.query_possible_moves_of_side(side) { [INFO] [stdout] | ---------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | a temporary with access to the immutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 59 | board.undo_move().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 69 | } [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*board` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/decider.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 91 | for step in board.query_possible_moves_of_side(side.other()) { [INFO] [stdout] | ------------------------------------------------ [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | a temporary with access to the immutable borrow is created here ... [INFO] [stdout] 92 | board.apply_move_unchecked(&step); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 104 | } [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*board` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/decider.rs:93:25 [INFO] [stdout] | [INFO] [stdout] 91 | for step in board.query_possible_moves_of_side(side.other()) { [INFO] [stdout] | ------------------------------------------------ [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | a temporary with access to the immutable borrow is created here ... [INFO] [stdout] 92 | board.apply_move_unchecked(&step); [INFO] [stdout] 93 | let score = self.max_search(board, side, depth - 1, current_node_count, alpha, beta)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 104 | } [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*board` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/decider.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 91 | for step in board.query_possible_moves_of_side(side.other()) { [INFO] [stdout] | ------------------------------------------------ [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | a temporary with access to the immutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 94 | board.undo_move().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 104 | } [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*board` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/decider.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 56 | for step in board.query_possible_moves_of_side(side) { [INFO] [stdout] | ---------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | a temporary with access to the immutable borrow is created here ... [INFO] [stdout] 57 | board.apply_move_unchecked(&step); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 69 | } [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*board` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/decider.rs:58:25 [INFO] [stdout] | [INFO] [stdout] 56 | for step in board.query_possible_moves_of_side(side) { [INFO] [stdout] | ---------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | a temporary with access to the immutable borrow is created here ... [INFO] [stdout] 57 | board.apply_move_unchecked(&step); [INFO] [stdout] 58 | let score = self.min_search(board, side, depth - 1, current_node_count, alpha, beta)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 69 | } [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*board` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/decider.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 56 | for step in board.query_possible_moves_of_side(side) { [INFO] [stdout] | ---------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | a temporary with access to the immutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 59 | board.undo_move().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 69 | } [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*board` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/decider.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 91 | for step in board.query_possible_moves_of_side(side.other()) { [INFO] [stdout] | ------------------------------------------------ [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | a temporary with access to the immutable borrow is created here ... [INFO] [stdout] 92 | board.apply_move_unchecked(&step); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 104 | } [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*board` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/decider.rs:93:25 [INFO] [stdout] | [INFO] [stdout] 91 | for step in board.query_possible_moves_of_side(side.other()) { [INFO] [stdout] | ------------------------------------------------ [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | a temporary with access to the immutable borrow is created here ... [INFO] [stdout] 92 | board.apply_move_unchecked(&step); [INFO] [stdout] 93 | let score = self.max_search(board, side, depth - 1, current_node_count, alpha, beta)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 104 | } [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*board` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/decider.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 91 | for step in board.query_possible_moves_of_side(side.other()) { [INFO] [stdout] | ------------------------------------------------ [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | a temporary with access to the immutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 94 | board.undo_move().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 104 | } [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `donyeh` (lib) due to 7 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 6 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 `donyeh` (lib test) due to 7 previous errors [INFO] running `Command { std: "docker" "inspect" "1c373ca4d42c4fbbec443700ebb772fb3f6786d990ceacf5bc604ad939ee1446", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1c373ca4d42c4fbbec443700ebb772fb3f6786d990ceacf5bc604ad939ee1446", kill_on_drop: false }` [INFO] [stdout] 1c373ca4d42c4fbbec443700ebb772fb3f6786d990ceacf5bc604ad939ee1446