[INFO] cloning repository https://github.com/SteinarSi/Chessbot5 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/SteinarSi/Chessbot5" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSteinarSi%2FChessbot5", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSteinarSi%2FChessbot5'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a53658bb5f1bff937672814ef329f7b06aae5bc1 [INFO] checking SteinarSi/Chessbot5 against master#33fdb797f59421c7bbecaa4588ed5d7a31a9494a for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSteinarSi%2FChessbot5" "/workspace/builds/worker-87/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-87/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/SteinarSi/Chessbot5 on toolchain 33fdb797f59421c7bbecaa4588ed5d7a31a9494a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/SteinarSi/Chessbot5 [INFO] finished tweaking git repo https://github.com/SteinarSi/Chessbot5 [INFO] tweaked toml for git repo https://github.com/SteinarSi/Chessbot5 written to /workspace/builds/worker-87/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rand_pcg v0.3.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-87/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-87/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7583ff4ff40e7c27be1ceb6ad6d8f1938f504ca5c2303b757337ab46d0940139 [INFO] running `Command { std: "docker" "start" "-a" "7583ff4ff40e7c27be1ceb6ad6d8f1938f504ca5c2303b757337ab46d0940139", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7583ff4ff40e7c27be1ceb6ad6d8f1938f504ca5c2303b757337ab46d0940139", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7583ff4ff40e7c27be1ceb6ad6d8f1938f504ca5c2303b757337ab46d0940139", kill_on_drop: false }` [INFO] [stdout] 7583ff4ff40e7c27be1ceb6ad6d8f1938f504ca5c2303b757337ab46d0940139 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-87/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-87/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 66f8c2a38ba2a16fda980532277d204aa4dd972833151197e5c619b236f5fe9f [INFO] running `Command { std: "docker" "start" "-a" "66f8c2a38ba2a16fda980532277d204aa4dd972833151197e5c619b236f5fe9f", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling libc v0.2.100 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.5 [INFO] [stderr] Compiling serde v1.0.129 [INFO] [stderr] Compiling semver v1.0.4 [INFO] [stderr] Compiling crossbeam-epoch v0.9.5 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling rayon-core v1.9.1 [INFO] [stderr] Compiling serde_json v1.0.66 [INFO] [stderr] Checking itoa v0.4.8 [INFO] [stderr] Compiling syn v1.0.75 [INFO] [stderr] Checking plotters-backend v0.3.2 [INFO] [stderr] Compiling serde_derive v1.0.129 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Checking half v1.7.1 [INFO] [stderr] Checking oorandom v11.1.3 [INFO] [stderr] Checking itertools v0.10.1 [INFO] [stderr] Checking walkdir v2.3.2 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Checking plotters-svg v0.3.1 [INFO] [stderr] Compiling memoffset v0.6.4 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling rayon v1.5.1 [INFO] [stderr] Checking crossbeam-channel v0.5.1 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Checking csv-core v0.1.10 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Compiling cast v0.2.7 [INFO] [stderr] Checking crossbeam-deque v0.8.1 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand_pcg v0.3.1 [INFO] [stderr] Checking rand v0.8.4 [INFO] [stderr] Checking criterion-plot v0.4.4 [INFO] [stderr] Checking plotters v0.3.1 [INFO] [stderr] Checking bstr v0.2.16 [INFO] [stderr] Checking serde_cbor v0.11.2 [INFO] [stderr] Checking csv v1.1.6 [INFO] [stderr] Checking tinytemplate v1.2.1 [INFO] [stderr] Checking criterion v0.3.5 [INFO] [stderr] Checking chessbot5 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:213:4 [INFO] [stdout] | [INFO] [stdout] 182 | fn maximize_alpha(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: S... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 212 | bestscore = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] 213 | b.go_back(); [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*b` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:217:30 [INFO] [stdout] | [INFO] [stdout] 182 | ...b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: Score, depth: us... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 212 | ...ore = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 217 | ...llerray.put(m.clone(), b.counter()); [INFO] [stdout] | ^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*map` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:218:5 [INFO] [stdout] | [INFO] [stdout] 182 | fn maximize_alpha(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: S... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 212 | bestscore = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*map` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 218 | map.lock().expect("Couldn't get arc value.").insert(b.hash(), bestscore, TransFlag::LOWER_BOUND, depth, Some(m)); [INFO] [stdout] | ^^^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*b` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:218:57 [INFO] [stdout] | [INFO] [stdout] 182 | ...b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: Score, depth: us... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 212 | ...ore = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 218 | ...p.lock().expect("Couldn't get arc value.").insert(b.hash(), bestscore, TransFlag::LOWER_BOUND, depth, Some(m)); [INFO] [stdout] | ^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*b` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:233:37 [INFO] [stdout] | [INFO] [stdout] 182 | ...b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: Score, depth: us... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 212 | ...ore = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 233 | ...t m) = killerray.get(b.counter()){ [INFO] [stdout] | ^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:234:6 [INFO] [stdout] | [INFO] [stdout] 182 | fn maximize_alpha(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: S... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 212 | bestscore = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 234 | if b.is_legal(&m) && Some(m) != prev{ [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*b` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:235:26 [INFO] [stdout] | [INFO] [stdout] 182 | ...b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: Score, depth: us... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 212 | ...ore = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 235 | ...heuristic_value(b.value_of(&m)); [INFO] [stdout] | ^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:237:4 [INFO] [stdout] | [INFO] [stdout] 182 | fn maximize_alpha(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: S... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 212 | bestscore = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 237 | b.move_piece(&m); [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:238:30 [INFO] [stdout] | [INFO] [stdout] 182 | ...b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: Score, depth: us... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 212 | ...ore = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 238 | ...lue = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*map` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:238:33 [INFO] [stdout] | [INFO] [stdout] 182 | ...: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: Score, depth: usi... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 212 | ...re = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*map` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 238 | ...ue = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:239:4 [INFO] [stdout] | [INFO] [stdout] 182 | fn maximize_alpha(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: S... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 238 | let value = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] 239 | b.go_back(); [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*map` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:244:6 [INFO] [stdout] | [INFO] [stdout] 182 | ...(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: Score, depth: u... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 238 | ...alue = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*map` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 244 | ... map.lock().expect("Couldn't get arc value.").insert(b.hash(), bestscore, TransFlag::LOWER_BOUND, depth, Some(m)); [INFO] [stdout] | ^^^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*b` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:244:58 [INFO] [stdout] | [INFO] [stdout] 182 | ...b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: Score, depth: us... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 238 | ...lue = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 244 | ... map.lock().expect("Couldn't get arc value.").insert(b.hash(), bestscore, TransFlag::LOWER_BOUND, depth, Some(m)); [INFO] [stdout] | ^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:261:15 [INFO] [stdout] | [INFO] [stdout] 182 | fn maximize_alpha(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: S... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 238 | let value = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 261 | let mut ms = b.moves(); [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*b` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:263:11 [INFO] [stdout] | [INFO] [stdout] 182 | fn maximize_alpha(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: S... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 238 | let value = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 263 | let s = b.end_score(); [INFO] [stdout] | ^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*map` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:264:3 [INFO] [stdout] | [INFO] [stdout] 182 | fn maximize_alpha(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: S... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 238 | let value = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*map` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 264 | map.lock().expect("Couldn't get arc value").insert(b.hash(), s, TransFlag::EXACT, 999, None); [INFO] [stdout] | ^^^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*b` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:264:54 [INFO] [stdout] | [INFO] [stdout] 182 | ...b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: Score, depth: us... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 238 | ...lue = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 264 | ....expect("Couldn't get arc value").insert(b.hash(), s, TransFlag::EXACT, 999, None); [INFO] [stdout] | ^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:275:3 [INFO] [stdout] | [INFO] [stdout] 182 | fn maximize_alpha(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: S... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 238 | let value = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 275 | b.move_piece(&m); [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:276:29 [INFO] [stdout] | [INFO] [stdout] 182 | ...b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: Score, depth: us... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 238 | ...lue = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 276 | ...= minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*map` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:276:32 [INFO] [stdout] | [INFO] [stdout] 182 | ...: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: Score, depth: usi... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 238 | ...ue = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*map` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 276 | ... minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:277:3 [INFO] [stdout] | [INFO] [stdout] 182 | fn maximize_alpha(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: S... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 276 | let value = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] 277 | b.go_back(); [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*b` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:281:31 [INFO] [stdout] | [INFO] [stdout] 182 | ...pha(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: Score, depth... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 276 | ...lue = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 281 | ... killerray.put(m.clone(), b.counter()); [INFO] [stdout] | ^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*map` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:282:6 [INFO] [stdout] | [INFO] [stdout] 182 | ...ha(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: Score, depth:... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 276 | ...ue = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*map` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 282 | ... map.lock().expect("Couldn't get arc value.").insert(b.hash(), value, TransFlag::LOWER_BOUND, depth, Some(m)); [INFO] [stdout] | ^^^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*b` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:282:58 [INFO] [stdout] | [INFO] [stdout] 182 | ...pha(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: Score, depth... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 276 | ...lue = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 282 | ... map.lock().expect("Couldn't get arc value.").insert(b.hash(), value, TransFlag::LOWER_BOUND, depth, Some(m)); [INFO] [stdout] | ^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:332:4 [INFO] [stdout] | [INFO] [stdout] 182 | fn maximize_alpha(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: S... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 276 | let value = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 332 | b.move_piece(&m); [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:333:34 [INFO] [stdout] | [INFO] [stdout] 182 | ...pha(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: Score, depth... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 276 | ...lue = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 333 | ...t mut value = minimize_beta(b, map, killerray, alpha, alpha+1, depth-1, time, stop, false); //Null window [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*map` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:333:37 [INFO] [stdout] | [INFO] [stdout] 182 | ...ha(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: Score, depth:... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 276 | ...ue = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*map` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 333 | ... mut value = minimize_beta(b, map, killerray, alpha, alpha+1, depth-1, time, stop, false); //Null window [INFO] [stdout] | ^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:335:27 [INFO] [stdout] | [INFO] [stdout] 182 | ...pha(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: Score, depth... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 276 | ...lue = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 335 | ... value = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, false); //Re-search [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*map` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:335:30 [INFO] [stdout] | [INFO] [stdout] 182 | ...ha(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: Score, depth:... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 276 | ...ue = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*map` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 335 | ... value = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, false); //Re-search [INFO] [stdout] | ^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:342:4 [INFO] [stdout] | [INFO] [stdout] 182 | fn maximize_alpha(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: S... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 276 | let value = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 342 | b.go_back(); [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*b` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:347:31 [INFO] [stdout] | [INFO] [stdout] 182 | ...pha(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: Score, depth... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 276 | ...lue = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 347 | ... killerray.put(m.clone(), b.counter()); [INFO] [stdout] | ^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*map` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:348:6 [INFO] [stdout] | [INFO] [stdout] 182 | ...ha(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: Score, depth:... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 276 | ...ue = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*map` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 348 | ... map.lock().expect("Couldn't get arc value.").insert(b.hash(), value, TransFlag::LOWER_BOUND, depth, Some(m)); [INFO] [stdout] | ^^^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*b` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:348:58 [INFO] [stdout] | [INFO] [stdout] 182 | ...pha(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: Score, depth... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 276 | ...lue = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 348 | ... map.lock().expect("Couldn't get arc value.").insert(b.hash(), value, TransFlag::LOWER_BOUND, depth, Some(m)); [INFO] [stdout] | ^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*map` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:353:3 [INFO] [stdout] | [INFO] [stdout] 182 | fn maximize_alpha(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: S... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 276 | let value = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*map` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 353 | map.lock().expect("Couldn't get arc value.").insert(b.hash(), alpha, if exact {TransFlag::EXACT} else { TransFlag::UPPER_BOUND },... [INFO] [stdout] | ^^^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*b` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:353:55 [INFO] [stdout] | [INFO] [stdout] 182 | ...pha(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: Score, depth... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 276 | ...lue = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 353 | ...ck().expect("Couldn't get arc value.").insert(b.hash(), alpha, if exact {TransFlag::EXACT} else { TransFlag::UPPER_BOUND }, depth, best); [INFO] [stdout] | ^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:385:4 [INFO] [stdout] | [INFO] [stdout] 358 | fn minimize_beta(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Sc... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 384 | bestscore = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] 385 | b.go_back(); [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*b` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:388:22 [INFO] [stdout] | [INFO] [stdout] 358 | ... &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Score, depth: usiz... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 384 | ...re = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 388 | ...lerray.put(m, b.counter()); [INFO] [stdout] | ^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*map` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:389:5 [INFO] [stdout] | [INFO] [stdout] 358 | fn minimize_beta(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Sc... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 384 | bestscore = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*map` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 389 | map.lock().expect("Couldn't get arc value.").insert(b.hash(), bestscore, TransFlag::UPPER_BOUND, depth, Some(m)); [INFO] [stdout] | ^^^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*b` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:389:57 [INFO] [stdout] | [INFO] [stdout] 358 | ... &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Score, depth: usiz... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 384 | ...re = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 389 | ....lock().expect("Couldn't get arc value.").insert(b.hash(), bestscore, TransFlag::UPPER_BOUND, depth, Some(m)); [INFO] [stdout] | ^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*b` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:401:37 [INFO] [stdout] | [INFO] [stdout] 358 | ... &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Score, depth: usiz... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 384 | ...re = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 401 | ... m) = killerray.get(b.counter()){ [INFO] [stdout] | ^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:402:6 [INFO] [stdout] | [INFO] [stdout] 358 | fn minimize_beta(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Sc... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 384 | bestscore = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 402 | if b.is_legal(&m) && Some(m) != prev{ [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*b` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:403:26 [INFO] [stdout] | [INFO] [stdout] 358 | ... &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Score, depth: usiz... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 384 | ...re = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 403 | ...euristic_value(b.value_of(&m)); [INFO] [stdout] | ^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:405:4 [INFO] [stdout] | [INFO] [stdout] 358 | fn minimize_beta(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Sc... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 384 | bestscore = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 405 | b.move_piece(&m); [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:406:31 [INFO] [stdout] | [INFO] [stdout] 358 | ... &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Score, depth: usiz... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 384 | ...re = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 406 | ...ue = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*map` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:406:34 [INFO] [stdout] | [INFO] [stdout] 358 | ...&'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Score, depth: usize... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 384 | ...e = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*map` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 406 | ...e = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:407:4 [INFO] [stdout] | [INFO] [stdout] 358 | fn minimize_beta(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Sc... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 406 | let value = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] 407 | b.go_back(); [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*map` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:411:6 [INFO] [stdout] | [INFO] [stdout] 358 | fn minimize_beta(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Sc... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 406 | let value = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*map` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 411 | map.lock().expect("Couldn't get arc value.").insert(b.hash(), value, TransFlag::UPPER_BOUND, depth, Some(m)); [INFO] [stdout] | ^^^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*b` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:411:58 [INFO] [stdout] | [INFO] [stdout] 358 | ... &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Score, depth: usiz... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 406 | ...ue = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 411 | ... map.lock().expect("Couldn't get arc value.").insert(b.hash(), value, TransFlag::UPPER_BOUND, depth, Some(m)); [INFO] [stdout] | ^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:425:15 [INFO] [stdout] | [INFO] [stdout] 358 | fn minimize_beta(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Sc... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 406 | let value = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 425 | let mut ms = b.moves(); [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*b` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:427:11 [INFO] [stdout] | [INFO] [stdout] 358 | fn minimize_beta(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Sc... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 406 | let value = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 427 | let s = b.end_score(); [INFO] [stdout] | ^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*map` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:428:3 [INFO] [stdout] | [INFO] [stdout] 358 | fn minimize_beta(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Sc... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 406 | let value = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*map` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 428 | map.lock().expect("Couldn't get arc value").insert(b.hash(), s, TransFlag::EXACT, 999, None); [INFO] [stdout] | ^^^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*b` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:428:54 [INFO] [stdout] | [INFO] [stdout] 358 | ... &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Score, depth: usiz... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 406 | ...ue = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 428 | ...expect("Couldn't get arc value").insert(b.hash(), s, TransFlag::EXACT, 999, None); [INFO] [stdout] | ^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:436:3 [INFO] [stdout] | [INFO] [stdout] 358 | fn minimize_beta(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Sc... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 406 | let value = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 436 | b.move_piece(&m); [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:437:30 [INFO] [stdout] | [INFO] [stdout] 358 | ... &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Score, depth: usiz... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 406 | ...ue = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 437 | ... maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*map` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:437:33 [INFO] [stdout] | [INFO] [stdout] 358 | ...&'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Score, depth: usize... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 406 | ...e = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*map` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 437 | ...maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:438:3 [INFO] [stdout] | [INFO] [stdout] 358 | fn minimize_beta(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Sc... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 437 | let value = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] 438 | b.go_back(); [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*b` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:443:31 [INFO] [stdout] | [INFO] [stdout] 358 | ...a(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Score, depth: ... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 437 | ...ue = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 443 | ... killerray.put(m.clone(), b.counter()); [INFO] [stdout] | ^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*map` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:444:6 [INFO] [stdout] | [INFO] [stdout] 358 | ...(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Score, depth: u... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 437 | ...e = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*map` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 444 | ... map.lock().expect("Couldn't get arc value.").insert(b.hash(), value, TransFlag::UPPER_BOUND, depth, Some(m)); [INFO] [stdout] | ^^^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*b` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:444:58 [INFO] [stdout] | [INFO] [stdout] 358 | ...a(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Score, depth: ... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 437 | ...ue = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 444 | ... map.lock().expect("Couldn't get arc value.").insert(b.hash(), value, TransFlag::UPPER_BOUND, depth, Some(m)); [INFO] [stdout] | ^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:458:3 [INFO] [stdout] | [INFO] [stdout] 358 | fn minimize_beta(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Sc... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 437 | let value = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 458 | b.move_piece(&m); [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:459:34 [INFO] [stdout] | [INFO] [stdout] 358 | ...a(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Score, depth: ... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 437 | ...ue = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 459 | ... value = maximize_alpha(b, map, killerray, beta-1, beta, depth-1, time, stop, false); [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*map` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:459:37 [INFO] [stdout] | [INFO] [stdout] 358 | ...(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Score, depth: u... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 437 | ...e = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*map` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 459 | ...value = maximize_alpha(b, map, killerray, beta-1, beta, depth-1, time, stop, false); [INFO] [stdout] | ^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:461:27 [INFO] [stdout] | [INFO] [stdout] 358 | ...a(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Score, depth: ... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 437 | ...ue = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 461 | ...ue = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, false); [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*map` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:461:30 [INFO] [stdout] | [INFO] [stdout] 358 | ...(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Score, depth: u... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 437 | ...e = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*map` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 461 | ...e = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, false); [INFO] [stdout] | ^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:468:3 [INFO] [stdout] | [INFO] [stdout] 358 | fn minimize_beta(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Sc... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 437 | let value = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 468 | b.go_back(); [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*map` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:472:5 [INFO] [stdout] | [INFO] [stdout] 358 | fn minimize_beta(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Sc... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 437 | let value = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*map` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 472 | map.lock().expect("Couldn't get arc value.").insert(b.hash(), value, TransFlag::UPPER_BOUND, depth, Some(m)); [INFO] [stdout] | ^^^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*b` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:472:57 [INFO] [stdout] | [INFO] [stdout] 358 | ...a(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Score, depth: ... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 437 | ...ue = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 472 | ... map.lock().expect("Couldn't get arc value.").insert(b.hash(), value, TransFlag::UPPER_BOUND, depth, Some(m)); [INFO] [stdout] | ^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*map` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:478:2 [INFO] [stdout] | [INFO] [stdout] 358 | fn minimize_beta(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Sc... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 437 | let value = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*map` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 478 | map.lock().expect("Couldn't get arc value.").insert(b.hash(), beta, if exact { TransFlag::EXACT } else { TransFlag::LOWER_BOUND }, de... [INFO] [stdout] | ^^^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*b` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:478:54 [INFO] [stdout] | [INFO] [stdout] 358 | ...a(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Score, depth: ... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 437 | ...ue = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 478 | ...expect("Couldn't get arc value.").insert(b.hash(), beta, if exact { TransFlag::EXACT } else { TransFlag::LOWER_BOUND }, depth, best); [INFO] [stdout] | ^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 69 previous errors [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 `chessbot5` due to 70 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:213:4 [INFO] [stdout] | [INFO] [stdout] 182 | fn maximize_alpha(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: S... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 212 | bestscore = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] 213 | b.go_back(); [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*b` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:217:30 [INFO] [stdout] | [INFO] [stdout] 182 | ...b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: Score, depth: us... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 212 | ...ore = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 217 | ...llerray.put(m.clone(), b.counter()); [INFO] [stdout] | ^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*map` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:218:5 [INFO] [stdout] | [INFO] [stdout] 182 | fn maximize_alpha(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: S... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 212 | bestscore = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*map` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 218 | map.lock().expect("Couldn't get arc value.").insert(b.hash(), bestscore, TransFlag::LOWER_BOUND, depth, Some(m)); [INFO] [stdout] | ^^^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*b` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:218:57 [INFO] [stdout] | [INFO] [stdout] 182 | ...b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: Score, depth: us... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 212 | ...ore = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 218 | ...p.lock().expect("Couldn't get arc value.").insert(b.hash(), bestscore, TransFlag::LOWER_BOUND, depth, Some(m)); [INFO] [stdout] | ^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*b` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:233:37 [INFO] [stdout] | [INFO] [stdout] 182 | ...b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: Score, depth: us... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 212 | ...ore = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 233 | ...t m) = killerray.get(b.counter()){ [INFO] [stdout] | ^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:234:6 [INFO] [stdout] | [INFO] [stdout] 182 | fn maximize_alpha(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: S... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 212 | bestscore = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 234 | if b.is_legal(&m) && Some(m) != prev{ [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*b` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:235:26 [INFO] [stdout] | [INFO] [stdout] 182 | ...b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: Score, depth: us... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 212 | ...ore = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 235 | ...heuristic_value(b.value_of(&m)); [INFO] [stdout] | ^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:237:4 [INFO] [stdout] | [INFO] [stdout] 182 | fn maximize_alpha(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: S... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 212 | bestscore = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 237 | b.move_piece(&m); [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:238:30 [INFO] [stdout] | [INFO] [stdout] 182 | ...b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: Score, depth: us... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 212 | ...ore = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 238 | ...lue = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*map` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:238:33 [INFO] [stdout] | [INFO] [stdout] 182 | ...: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: Score, depth: usi... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 212 | ...re = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*map` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 238 | ...ue = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:239:4 [INFO] [stdout] | [INFO] [stdout] 182 | fn maximize_alpha(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: S... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 238 | let value = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] 239 | b.go_back(); [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*map` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:244:6 [INFO] [stdout] | [INFO] [stdout] 182 | ...(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: Score, depth: u... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 238 | ...alue = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*map` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 244 | ... map.lock().expect("Couldn't get arc value.").insert(b.hash(), bestscore, TransFlag::LOWER_BOUND, depth, Some(m)); [INFO] [stdout] | ^^^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*b` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:244:58 [INFO] [stdout] | [INFO] [stdout] 182 | ...b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: Score, depth: us... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 238 | ...lue = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 244 | ... map.lock().expect("Couldn't get arc value.").insert(b.hash(), bestscore, TransFlag::LOWER_BOUND, depth, Some(m)); [INFO] [stdout] | ^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:261:15 [INFO] [stdout] | [INFO] [stdout] 182 | fn maximize_alpha(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: S... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 238 | let value = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 261 | let mut ms = b.moves(); [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*b` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:263:11 [INFO] [stdout] | [INFO] [stdout] 182 | fn maximize_alpha(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: S... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 238 | let value = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 263 | let s = b.end_score(); [INFO] [stdout] | ^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*map` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:264:3 [INFO] [stdout] | [INFO] [stdout] 182 | fn maximize_alpha(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: S... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 238 | let value = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*map` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 264 | map.lock().expect("Couldn't get arc value").insert(b.hash(), s, TransFlag::EXACT, 999, None); [INFO] [stdout] | ^^^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*b` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:264:54 [INFO] [stdout] | [INFO] [stdout] 182 | ...b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: Score, depth: us... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 238 | ...lue = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 264 | ....expect("Couldn't get arc value").insert(b.hash(), s, TransFlag::EXACT, 999, None); [INFO] [stdout] | ^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:275:3 [INFO] [stdout] | [INFO] [stdout] 182 | fn maximize_alpha(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: S... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 238 | let value = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 275 | b.move_piece(&m); [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:276:29 [INFO] [stdout] | [INFO] [stdout] 182 | ...b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: Score, depth: us... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 238 | ...lue = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 276 | ...= minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*map` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:276:32 [INFO] [stdout] | [INFO] [stdout] 182 | ...: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: Score, depth: usi... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 238 | ...ue = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*map` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 276 | ... minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:277:3 [INFO] [stdout] | [INFO] [stdout] 182 | fn maximize_alpha(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: S... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 276 | let value = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] 277 | b.go_back(); [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*b` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:281:31 [INFO] [stdout] | [INFO] [stdout] 182 | ...pha(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: Score, depth... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 276 | ...lue = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 281 | ... killerray.put(m.clone(), b.counter()); [INFO] [stdout] | ^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*map` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:282:6 [INFO] [stdout] | [INFO] [stdout] 182 | ...ha(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: Score, depth:... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 276 | ...ue = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*map` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 282 | ... map.lock().expect("Couldn't get arc value.").insert(b.hash(), value, TransFlag::LOWER_BOUND, depth, Some(m)); [INFO] [stdout] | ^^^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*b` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:282:58 [INFO] [stdout] | [INFO] [stdout] 182 | ...pha(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: Score, depth... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 276 | ...lue = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 282 | ... map.lock().expect("Couldn't get arc value.").insert(b.hash(), value, TransFlag::LOWER_BOUND, depth, Some(m)); [INFO] [stdout] | ^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:332:4 [INFO] [stdout] | [INFO] [stdout] 182 | fn maximize_alpha(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: S... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 276 | let value = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 332 | b.move_piece(&m); [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:333:34 [INFO] [stdout] | [INFO] [stdout] 182 | ...pha(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: Score, depth... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 276 | ...lue = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 333 | ...t mut value = minimize_beta(b, map, killerray, alpha, alpha+1, depth-1, time, stop, false); //Null window [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*map` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:333:37 [INFO] [stdout] | [INFO] [stdout] 182 | ...ha(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: Score, depth:... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 276 | ...ue = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*map` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 333 | ... mut value = minimize_beta(b, map, killerray, alpha, alpha+1, depth-1, time, stop, false); //Null window [INFO] [stdout] | ^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:335:27 [INFO] [stdout] | [INFO] [stdout] 182 | ...pha(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: Score, depth... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 276 | ...lue = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 335 | ... value = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, false); //Re-search [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*map` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:335:30 [INFO] [stdout] | [INFO] [stdout] 182 | ...ha(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: Score, depth:... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 276 | ...ue = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*map` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 335 | ... value = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, false); //Re-search [INFO] [stdout] | ^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:342:4 [INFO] [stdout] | [INFO] [stdout] 182 | fn maximize_alpha(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: S... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 276 | let value = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 342 | b.go_back(); [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*b` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:347:31 [INFO] [stdout] | [INFO] [stdout] 182 | ...pha(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: Score, depth... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 276 | ...lue = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 347 | ... killerray.put(m.clone(), b.counter()); [INFO] [stdout] | ^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*map` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:348:6 [INFO] [stdout] | [INFO] [stdout] 182 | ...ha(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: Score, depth:... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 276 | ...ue = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*map` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 348 | ... map.lock().expect("Couldn't get arc value.").insert(b.hash(), value, TransFlag::LOWER_BOUND, depth, Some(m)); [INFO] [stdout] | ^^^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*b` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:348:58 [INFO] [stdout] | [INFO] [stdout] 182 | ...pha(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: Score, depth... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 276 | ...lue = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 348 | ... map.lock().expect("Couldn't get arc value.").insert(b.hash(), value, TransFlag::LOWER_BOUND, depth, Some(m)); [INFO] [stdout] | ^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*map` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:353:3 [INFO] [stdout] | [INFO] [stdout] 182 | fn maximize_alpha(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: S... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 276 | let value = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*map` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 353 | map.lock().expect("Couldn't get arc value.").insert(b.hash(), alpha, if exact {TransFlag::EXACT} else { TransFlag::UPPER_BOUND },... [INFO] [stdout] | ^^^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*b` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:353:55 [INFO] [stdout] | [INFO] [stdout] 182 | ...pha(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, mut alpha: Score, beta: Score, depth... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 276 | ...lue = minimize_beta(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 353 | ...ck().expect("Couldn't get arc value.").insert(b.hash(), alpha, if exact {TransFlag::EXACT} else { TransFlag::UPPER_BOUND }, depth, best); [INFO] [stdout] | ^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:385:4 [INFO] [stdout] | [INFO] [stdout] 358 | fn minimize_beta(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Sc... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 384 | bestscore = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] 385 | b.go_back(); [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*b` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:388:22 [INFO] [stdout] | [INFO] [stdout] 358 | ... &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Score, depth: usiz... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 384 | ...re = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 388 | ...lerray.put(m, b.counter()); [INFO] [stdout] | ^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*map` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:389:5 [INFO] [stdout] | [INFO] [stdout] 358 | fn minimize_beta(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Sc... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 384 | bestscore = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*map` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 389 | map.lock().expect("Couldn't get arc value.").insert(b.hash(), bestscore, TransFlag::UPPER_BOUND, depth, Some(m)); [INFO] [stdout] | ^^^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*b` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:389:57 [INFO] [stdout] | [INFO] [stdout] 358 | ... &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Score, depth: usiz... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 384 | ...re = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 389 | ....lock().expect("Couldn't get arc value.").insert(b.hash(), bestscore, TransFlag::UPPER_BOUND, depth, Some(m)); [INFO] [stdout] | ^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*b` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:401:37 [INFO] [stdout] | [INFO] [stdout] 358 | ... &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Score, depth: usiz... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 384 | ...re = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 401 | ... m) = killerray.get(b.counter()){ [INFO] [stdout] | ^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:402:6 [INFO] [stdout] | [INFO] [stdout] 358 | fn minimize_beta(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Sc... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 384 | bestscore = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 402 | if b.is_legal(&m) && Some(m) != prev{ [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*b` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:403:26 [INFO] [stdout] | [INFO] [stdout] 358 | ... &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Score, depth: usiz... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 384 | ...re = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 403 | ...euristic_value(b.value_of(&m)); [INFO] [stdout] | ^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:405:4 [INFO] [stdout] | [INFO] [stdout] 358 | fn minimize_beta(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Sc... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 384 | bestscore = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 405 | b.move_piece(&m); [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:406:31 [INFO] [stdout] | [INFO] [stdout] 358 | ... &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Score, depth: usiz... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 384 | ...re = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 406 | ...ue = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*map` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:406:34 [INFO] [stdout] | [INFO] [stdout] 358 | ...&'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Score, depth: usize... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 384 | ...e = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*map` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 406 | ...e = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:407:4 [INFO] [stdout] | [INFO] [stdout] 358 | fn minimize_beta(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Sc... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 406 | let value = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] 407 | b.go_back(); [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*map` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:411:6 [INFO] [stdout] | [INFO] [stdout] 358 | fn minimize_beta(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Sc... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 406 | let value = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*map` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 411 | map.lock().expect("Couldn't get arc value.").insert(b.hash(), value, TransFlag::UPPER_BOUND, depth, Some(m)); [INFO] [stdout] | ^^^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*b` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:411:58 [INFO] [stdout] | [INFO] [stdout] 358 | ... &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Score, depth: usiz... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 406 | ...ue = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 411 | ... map.lock().expect("Couldn't get arc value.").insert(b.hash(), value, TransFlag::UPPER_BOUND, depth, Some(m)); [INFO] [stdout] | ^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:425:15 [INFO] [stdout] | [INFO] [stdout] 358 | fn minimize_beta(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Sc... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 406 | let value = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 425 | let mut ms = b.moves(); [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*b` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:427:11 [INFO] [stdout] | [INFO] [stdout] 358 | fn minimize_beta(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Sc... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 406 | let value = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 427 | let s = b.end_score(); [INFO] [stdout] | ^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*map` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:428:3 [INFO] [stdout] | [INFO] [stdout] 358 | fn minimize_beta(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Sc... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 406 | let value = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*map` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 428 | map.lock().expect("Couldn't get arc value").insert(b.hash(), s, TransFlag::EXACT, 999, None); [INFO] [stdout] | ^^^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*b` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:428:54 [INFO] [stdout] | [INFO] [stdout] 358 | ... &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Score, depth: usiz... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 406 | ...ue = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 428 | ...expect("Couldn't get arc value").insert(b.hash(), s, TransFlag::EXACT, 999, None); [INFO] [stdout] | ^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:436:3 [INFO] [stdout] | [INFO] [stdout] 358 | fn minimize_beta(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Sc... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 406 | let value = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 436 | b.move_piece(&m); [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:437:30 [INFO] [stdout] | [INFO] [stdout] 358 | ... &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Score, depth: usiz... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 406 | ...ue = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 437 | ... maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*map` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:437:33 [INFO] [stdout] | [INFO] [stdout] 358 | ...&'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Score, depth: usize... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 406 | ...e = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*map` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 437 | ...maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | ^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:438:3 [INFO] [stdout] | [INFO] [stdout] 358 | fn minimize_beta(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Sc... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 437 | let value = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] 438 | b.go_back(); [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*b` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:443:31 [INFO] [stdout] | [INFO] [stdout] 358 | ...a(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Score, depth: ... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 437 | ...ue = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 443 | ... killerray.put(m.clone(), b.counter()); [INFO] [stdout] | ^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*map` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:444:6 [INFO] [stdout] | [INFO] [stdout] 358 | ...(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Score, depth: u... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 437 | ...e = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*map` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 444 | ... map.lock().expect("Couldn't get arc value.").insert(b.hash(), value, TransFlag::UPPER_BOUND, depth, Some(m)); [INFO] [stdout] | ^^^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*b` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:444:58 [INFO] [stdout] | [INFO] [stdout] 358 | ...a(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Score, depth: ... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 437 | ...ue = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 444 | ... map.lock().expect("Couldn't get arc value.").insert(b.hash(), value, TransFlag::UPPER_BOUND, depth, Some(m)); [INFO] [stdout] | ^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:458:3 [INFO] [stdout] | [INFO] [stdout] 358 | fn minimize_beta(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Sc... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 437 | let value = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 458 | b.move_piece(&m); [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:459:34 [INFO] [stdout] | [INFO] [stdout] 358 | ...a(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Score, depth: ... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 437 | ...ue = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 459 | ... value = maximize_alpha(b, map, killerray, beta-1, beta, depth-1, time, stop, false); [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*map` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:459:37 [INFO] [stdout] | [INFO] [stdout] 358 | ...(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Score, depth: u... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 437 | ...e = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*map` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 459 | ...value = maximize_alpha(b, map, killerray, beta-1, beta, depth-1, time, stop, false); [INFO] [stdout] | ^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:461:27 [INFO] [stdout] | [INFO] [stdout] 358 | ...a(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Score, depth: ... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 437 | ...ue = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 461 | ...ue = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, false); [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*map` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:461:30 [INFO] [stdout] | [INFO] [stdout] 358 | ...(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Score, depth: u... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 437 | ...e = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*map` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 461 | ...e = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, false); [INFO] [stdout] | ^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time [INFO] [stdout] --> src/backend/ai/splitter.rs:468:3 [INFO] [stdout] | [INFO] [stdout] 358 | fn minimize_beta(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Sc... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 437 | let value = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 468 | b.go_back(); [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*map` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:472:5 [INFO] [stdout] | [INFO] [stdout] 358 | fn minimize_beta(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Sc... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 437 | let value = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*map` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 472 | map.lock().expect("Couldn't get arc value.").insert(b.hash(), value, TransFlag::UPPER_BOUND, depth, Some(m)); [INFO] [stdout] | ^^^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*b` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:472:57 [INFO] [stdout] | [INFO] [stdout] 358 | ...a(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Score, depth: ... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 437 | ...ue = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 472 | ... map.lock().expect("Couldn't get arc value.").insert(b.hash(), value, TransFlag::UPPER_BOUND, depth, Some(m)); [INFO] [stdout] | ^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*map` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:478:2 [INFO] [stdout] | [INFO] [stdout] 358 | fn minimize_beta(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Sc... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 437 | let value = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*map` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 478 | map.lock().expect("Couldn't get arc value.").insert(b.hash(), beta, if exact { TransFlag::EXACT } else { TransFlag::LOWER_BOUND }, de... [INFO] [stdout] | ^^^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*b` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/backend/ai/splitter.rs:478:54 [INFO] [stdout] | [INFO] [stdout] 358 | ...a(b: &'static mut Board, map: &'static mut Arc>, killerray: &mut Killerray, alpha: Score, mut beta: Score, depth: ... [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 437 | ...ue = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv); [INFO] [stdout] | -------------------------------------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | argument requires that `*b` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 478 | ...expect("Couldn't get arc value.").insert(b.hash(), beta, if exact { TransFlag::EXACT } else { TransFlag::LOWER_BOUND }, depth, best); [INFO] [stdout] | ^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 69 previous errors [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: build failed [INFO] running `Command { std: "docker" "inspect" "66f8c2a38ba2a16fda980532277d204aa4dd972833151197e5c619b236f5fe9f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "66f8c2a38ba2a16fda980532277d204aa4dd972833151197e5c619b236f5fe9f", kill_on_drop: false }` [INFO] [stdout] 66f8c2a38ba2a16fda980532277d204aa4dd972833151197e5c619b236f5fe9f