[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] testing SteinarSi/Chessbot5 against 1.55.0 for beta-1.56-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSteinarSi%2FChessbot5" "/workspace/builds/worker-13/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-13/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/SteinarSi/Chessbot5 on toolchain 1.55.0
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.55.0" "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-13/source/Cargo.toml
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.55.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }`
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.55.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+1.55.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 7a6587dedcd542496890d3ac05ca80c16929ffe98224decc9c21d133b8b3241c
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "7a6587dedcd542496890d3ac05ca80c16929ffe98224decc9c21d133b8b3241c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "7a6587dedcd542496890d3ac05ca80c16929ffe98224decc9c21d133b8b3241c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "7a6587dedcd542496890d3ac05ca80c16929ffe98224decc9c21d133b8b3241c", kill_on_drop: false }`
[INFO] [stdout] 7a6587dedcd542496890d3ac05ca80c16929ffe98224decc9c21d133b8b3241c
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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=warn" "-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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+1.55.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] f9f89f01196eaa8e587c20a8e1712c492d8772e08bac2c28610022d62518019d
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "f9f89f01196eaa8e587c20a8e1712c492d8772e08bac2c28610022d62518019d", kill_on_drop: false }`
[INFO] [stderr]    Compiling rand_pcg v0.3.1
[INFO] [stderr]    Compiling chessbot5 v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0499]: cannot borrow `*b` as mutable more than once at a time
[INFO] [stdout]    --> src/backend/ai/splitter.rs:213:4
[INFO] [stdout]     |
[INFO] [stdout] 182 | fn maximize_alpha(b: &'static mut Board, map: &'static mut Arc<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, 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<Mutex<&mut MemoMap>>, killerray: &mut Killerray, alpha: Score, mut beta: Score, depth: ...
[INFO] [stdout]     |                                                         - let's call the lifetime of this reference `'1`
[INFO] [stdout] ...
[INFO] [stdout] 437 | ...ue = maximize_alpha(b, map, killerray, alpha, beta, depth-1, time, stop, is_pv);
[INFO] [stdout]     |         --------------------------------------------------------------------------
[INFO] [stdout]     |         |              |
[INFO] [stdout]     |         |              mutable borrow occurs here
[INFO] [stdout]     |         argument requires that `*b` is borrowed for `'1`
[INFO] [stdout] ...
[INFO] [stdout] 478 | ...expect("Couldn't get arc value.").insert(b.hash(), beta, if exact { TransFlag::EXACT } else { TransFlag::LOWER_BOUND }, depth, best);
[INFO] [stdout]     |                                             ^ immutable borrow occurs here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 69 previous errors
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0499, E0502.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0499`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `chessbot5` due to 70 previous errors
[INFO] running `Command { std: "docker" "inspect" "f9f89f01196eaa8e587c20a8e1712c492d8772e08bac2c28610022d62518019d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "f9f89f01196eaa8e587c20a8e1712c492d8772e08bac2c28610022d62518019d", kill_on_drop: false }`
[INFO] [stdout] f9f89f01196eaa8e587c20a8e1712c492d8772e08bac2c28610022d62518019d
