[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 try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSteinarSi%2FChessbot5" "/workspace/builds/worker-46/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-46/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/SteinarSi/Chessbot5 on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "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-46/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-46/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-46/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" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2d35eca0ca1d3396c1065d058ca18f6972159baa66fc21a302d82f30609994fc [INFO] running `Command { std: "docker" "start" "-a" "2d35eca0ca1d3396c1065d058ca18f6972159baa66fc21a302d82f30609994fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2d35eca0ca1d3396c1065d058ca18f6972159baa66fc21a302d82f30609994fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2d35eca0ca1d3396c1065d058ca18f6972159baa66fc21a302d82f30609994fc", kill_on_drop: false }` [INFO] [stdout] 2d35eca0ca1d3396c1065d058ca18f6972159baa66fc21a302d82f30609994fc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-46/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-46/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" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cb09481fd00d5362283167dab5edb35b2ca71750b0b9ecb596e0167dbbd99be9 [INFO] running `Command { std: "docker" "start" "-a" "cb09481fd00d5362283167dab5edb35b2ca71750b0b9ecb596e0167dbbd99be9", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] note: Switching to Edition 2021 will enable the use of the version 2 feature resolver in Cargo. [INFO] [stderr] This may cause some dependencies to be built with fewer features enabled than previously. [INFO] [stderr] More information about the resolver changes may be found at https://doc.rust-lang.org/nightly/edition-guide/rust-2021/default-cargo-resolver.html [INFO] [stderr] When building the following dependencies, the given features will no longer be used: [INFO] [stderr] [INFO] [stderr] syn v1.0.75 (as host dependency): full, visit [INFO] [stderr] [INFO] [stderr] Blocking waiting for file lock on package cache [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 cfg-if v1.0.0 [INFO] [stderr] Compiling serde v1.0.129 [INFO] [stderr] Compiling crossbeam-utils v0.8.5 [INFO] [stderr] Compiling semver v1.0.4 [INFO] [stderr] Compiling proc-macro2 v1.0.28 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling rayon-core v1.9.1 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Checking itoa v0.4.8 [INFO] [stderr] Compiling syn v1.0.75 [INFO] [stderr] Compiling serde_json v1.0.66 [INFO] [stderr] Checking plotters-backend v0.3.2 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Compiling serde_derive v1.0.129 [INFO] [stderr] Checking unicode-width v0.1.8 [INFO] [stderr] Checking half v1.7.1 [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Checking oorandom v11.1.3 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking walkdir v2.3.2 [INFO] [stderr] Checking itertools v0.10.1 [INFO] [stderr] Checking plotters-svg v0.3.1 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Compiling memoffset v0.6.4 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling rayon v1.5.1 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Checking csv-core v0.1.10 [INFO] [stderr] Compiling quote v1.0.9 [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 crossbeam-channel v0.5.1 [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-epoch v0.9.5 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand_pcg v0.3.1 [INFO] [stderr] Checking crossbeam-deque v0.8.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 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2018 edition to 2021 [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/backend/gameboard.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | ai: Box [INFO] [stdout] | ^^ help: use `dyn`: `dyn AI` [INFO] [stdout] | [INFO] [stdout] = note: `--force-warn bare-trait-objects` implied by `--force-warn rust-2021-compatibility` [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/backend/bot_testing.rs:18:27 [INFO] [stdout] | [INFO] [stdout] 18 | fn play_against(bot: &mut AI, depth: usize, c: Color){ [INFO] [stdout] | ^^ help: use `dyn`: `dyn AI` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/backend/bot_testing.rs:63:23 [INFO] [stdout] | [INFO] [stdout] 63 | fn simulate(bot: &mut AI, depth: usize){ [INFO] [stdout] | ^^ help: use `dyn`: `dyn AI` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/backend/bot_testing.rs:83:18 [INFO] [stdout] | [INFO] [stdout] 83 | fn vs(bot1: &mut AI, depth1: usize, bot2: &mut AI, depth2: usize){ [INFO] [stdout] | ^^ help: use `dyn`: `dyn AI` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/backend/bot_testing.rs:83:48 [INFO] [stdout] | [INFO] [stdout] 83 | fn vs(bot1: &mut AI, depth1: usize, bot2: &mut AI, depth2: usize){ [INFO] [stdout] | ^^ help: use `dyn`: `dyn AI` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/backend/bot_testing.rs:113:28 [INFO] [stdout] | [INFO] [stdout] 113 | fn simulate_from(bot: &mut AI, s: &str, c: Color, depth: usize){ [INFO] [stdout] | ^^ help: use `dyn`: `dyn AI` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/backend/bot_testing.rs:134:33 [INFO] [stdout] | [INFO] [stdout] 134 | fn compare(l: &mut [(&str, &mut AI)], n: i8, depth: usize){ [INFO] [stdout] | ^^ help: use `dyn`: `dyn AI` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [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: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] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/backend/gameboard.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | ai: Box [INFO] [stdout] | ^^ help: use `dyn`: `dyn AI` [INFO] [stdout] | [INFO] [stdout] = note: `--force-warn bare-trait-objects` implied by `--force-warn rust-2021-compatibility` [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/backend/bot_testing.rs:18:27 [INFO] [stdout] | [INFO] [stdout] 18 | fn play_against(bot: &mut AI, depth: usize, c: Color){ [INFO] [stdout] | ^^ help: use `dyn`: `dyn AI` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/backend/bot_testing.rs:63:23 [INFO] [stdout] | [INFO] [stdout] 63 | fn simulate(bot: &mut AI, depth: usize){ [INFO] [stdout] | ^^ help: use `dyn`: `dyn AI` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/backend/bot_testing.rs:83:18 [INFO] [stdout] | [INFO] [stdout] 83 | fn vs(bot1: &mut AI, depth1: usize, bot2: &mut AI, depth2: usize){ [INFO] [stdout] | ^^ help: use `dyn`: `dyn AI` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/backend/bot_testing.rs:83:48 [INFO] [stdout] | [INFO] [stdout] 83 | fn vs(bot1: &mut AI, depth1: usize, bot2: &mut AI, depth2: usize){ [INFO] [stdout] | ^^ help: use `dyn`: `dyn AI` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/backend/bot_testing.rs:113:28 [INFO] [stdout] | [INFO] [stdout] 113 | fn simulate_from(bot: &mut AI, s: &str, c: Color, depth: usize){ [INFO] [stdout] | ^^ help: use `dyn`: `dyn AI` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/backend/bot_testing.rs:134:33 [INFO] [stdout] | [INFO] [stdout] 134 | fn compare(l: &mut [(&str, &mut AI)], n: i8, depth: usize){ [INFO] [stdout] | ^^ help: use `dyn`: `dyn AI` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 69 previous errors; 7 warnings emitted [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; 7 warnings emitted [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; 7 warnings emitted [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] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "cb09481fd00d5362283167dab5edb35b2ca71750b0b9ecb596e0167dbbd99be9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cb09481fd00d5362283167dab5edb35b2ca71750b0b9ecb596e0167dbbd99be9", kill_on_drop: false }` [INFO] [stdout] cb09481fd00d5362283167dab5edb35b2ca71750b0b9ecb596e0167dbbd99be9