[INFO] cloning repository https://github.com/AndriyParkho/blobwar [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/AndriyParkho/blobwar" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAndriyParkho%2Fblobwar", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAndriyParkho%2Fblobwar'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b075529e21b31c8e7a86c71553e950fdf3591866 [INFO] checking AndriyParkho/blobwar/b075529e21b31c8e7a86c71553e950fdf3591866 against try#c387b04bf028733cd561d62128c8a5eee4bc1458+rustflags=-Dtail_expr_drop_order for pr-130930 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAndriyParkho%2Fblobwar" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/AndriyParkho/blobwar on toolchain c387b04bf028733cd561d62128c8a5eee4bc1458 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/AndriyParkho/blobwar [INFO] finished tweaking git repo https://github.com/AndriyParkho/blobwar [INFO] tweaked toml for git repo https://github.com/AndriyParkho/blobwar written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/AndriyParkho/blobwar already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] eacbe3b6fda0b58fd6602edbe131d81a4af0ba096f9ea5f6eaa06c0508f5b657 [INFO] running `Command { std: "docker" "start" "-a" "eacbe3b6fda0b58fd6602edbe131d81a4af0ba096f9ea5f6eaa06c0508f5b657", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "eacbe3b6fda0b58fd6602edbe131d81a4af0ba096f9ea5f6eaa06c0508f5b657", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eacbe3b6fda0b58fd6602edbe131d81a4af0ba096f9ea5f6eaa06c0508f5b657", kill_on_drop: false }` [INFO] [stdout] eacbe3b6fda0b58fd6602edbe131d81a4af0ba096f9ea5f6eaa06c0508f5b657 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail_expr_drop_order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 27033f0de3b38294dd8dd6284eb495789f3186f27a9b27427a092f836bc0d62e [INFO] running `Command { std: "docker" "start" "-a" "27033f0de3b38294dd8dd6284eb495789f3186f27a9b27427a092f836bc0d62e", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling libc v0.2.93 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling proc-macro2 v0.4.27 [INFO] [stderr] Compiling semver v0.1.20 [INFO] [stderr] Compiling rayon-core v1.9.0 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling serde v1.0.87 [INFO] [stderr] Compiling byteorder v1.3.1 [INFO] [stderr] Compiling ryu v0.2.7 [INFO] [stderr] Checking either v1.5.0 [INFO] [stderr] Checking cfg-if v0.1.6 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Compiling rustc_version v0.1.7 [INFO] [stderr] Checking itoa v0.4.3 [INFO] [stderr] Compiling nix v0.6.0 [INFO] [stderr] Checking bitflags v0.4.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.3 [INFO] [stderr] Compiling memoffset v0.6.3 [INFO] [stderr] Compiling rayon v1.5.0 [INFO] [stderr] Checking term v0.5.1 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Compiling quote v0.6.11 [INFO] [stderr] Checking itertools v0.8.0 [INFO] [stderr] Compiling syn v0.15.26 [INFO] [stderr] Checking glob v0.2.11 [INFO] [stderr] Checking crossbeam-epoch v0.9.3 [INFO] [stderr] Checking crossbeam-channel v0.5.0 [INFO] [stderr] Checking crossbeam-deque v0.8.0 [INFO] [stderr] Compiling serde_derive v1.0.87 [INFO] [stderr] Checking serde_json v1.0.38 [INFO] [stderr] Checking blobwar v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `rayon::prelude::*` [INFO] [stdout] --> src/strategy/alphabeta.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use rayon::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AtomicI8` and `Ordering` [INFO] [stdout] --> src/strategy/alphabeta.rs:9:25 [INFO] [stdout] | [INFO] [stdout] 9 | use std::sync::atomic::{AtomicI8, Ordering}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rayon::prelude::*` [INFO] [stdout] --> src/strategy/alphabeta.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use rayon::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AtomicI8` and `Ordering` [INFO] [stdout] --> src/strategy/alphabeta.rs:9:25 [INFO] [stdout] | [INFO] [stdout] 9 | use std::sync::atomic::{AtomicI8, Ordering}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/strategy/minmax.rs:58:17 [INFO] [stdout] | [INFO] [stdout] 58 | let mut readed_value = -value; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/strategy/alphabeta.rs:73:46 [INFO] [stdout] | [INFO] [stdout] 73 | fn negamax(state: &Configuration, depth: u8, mut alpha: i8, mut beta: i8) -> (Option, i8) { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/strategy/alphabeta.rs:82:17 [INFO] [stdout] | [INFO] [stdout] 82 | let mut readed_value = -value; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/strategy/alphabeta.rs:156:111 [INFO] [stdout] | [INFO] [stdout] 156 | ... HashMap, i8)>, depth: u8, mut alpha: i8, mut beta: i8) -> (Option, i8) { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/strategy/alphabeta.rs:170:25 [INFO] [stdout] | [INFO] [stdout] 170 | let mut readed_value = -value; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/strategy/minmax.rs:58:17 [INFO] [stdout] | [INFO] [stdout] 58 | let mut readed_value = -value; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/strategy/alphabeta.rs:194:42 [INFO] [stdout] | [INFO] [stdout] 194 | fn pvs(state: &Configuration, depth: u8, mut alpha: i8, mut beta: i8) -> (Option, i8) { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/strategy/alphabeta.rs:202:13 [INFO] [stdout] | [INFO] [stdout] 202 | let mut mov = iter_m.next(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/strategy/alphabeta.rs:205:13 [INFO] [stdout] | [INFO] [stdout] 205 | let mut readed_value = -value; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/strategy/alphabeta.rs:219:17 [INFO] [stdout] | [INFO] [stdout] 219 | let mut readed_value = -value; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/strategy/alphabeta.rs:229:21 [INFO] [stdout] | [INFO] [stdout] 229 | let mut readed_value = -value; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/strategy/alphabeta.rs:73:46 [INFO] [stdout] | [INFO] [stdout] 73 | fn negamax(state: &Configuration, depth: u8, mut alpha: i8, mut beta: i8) -> (Option, i8) { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/strategy/alphabeta.rs:82:17 [INFO] [stdout] | [INFO] [stdout] 82 | let mut readed_value = -value; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `negamax` is never used [INFO] [stdout] --> src/strategy/minmax.rs:49:4 [INFO] [stdout] | [INFO] [stdout] 49 | fn negamax(state: &Configuration, depth: u8) -> (Option, i8) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `alpha_beta` is never used [INFO] [stdout] --> src/strategy/alphabeta.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn alpha_beta(state: &Configuration, depth: u8, mut alpha: i8, mut beta: i8, current: bool) -> (Option, i8) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `negamax_mem` is never used [INFO] [stdout] --> src/strategy/alphabeta.rs:156:4 [INFO] [stdout] | [INFO] [stdout] 156 | fn negamax_mem(state: &Configuration, saving_states: &mut HashMap, i8)>, depth: u8, mut alpha: i8, mut beta: i8... [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pvs` is never used [INFO] [stdout] --> src/strategy/alphabeta.rs:194:4 [INFO] [stdout] | [INFO] [stdout] 194 | fn pvs(state: &Configuration, depth: u8, mut alpha: i8, mut beta: i8) -> (Option, i8) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/configuration.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(Serialize, Deserialize, Debug, Copy, Clone, PartialEq, Eq)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_Movement` [INFO] [stdout] 11 | /// Movements : clone some blob or jump [INFO] [stdout] 12 | pub enum Movement { [INFO] [stdout] | -------- `Movement` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/configuration.rs:10:21 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(Serialize, Deserialize, Debug, Copy, Clone, PartialEq, Eq)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Movement` [INFO] [stdout] 11 | /// Movements : clone some blob or jump [INFO] [stdout] 12 | pub enum Movement { [INFO] [stdout] | -------- `Movement` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/strategy/alphabeta.rs:156:111 [INFO] [stdout] | [INFO] [stdout] 156 | ... HashMap, i8)>, depth: u8, mut alpha: i8, mut beta: i8) -> (Option, i8) { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/strategy/alphabeta.rs:170:25 [INFO] [stdout] | [INFO] [stdout] 170 | let mut readed_value = -value; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/strategy/alphabeta.rs:194:42 [INFO] [stdout] | [INFO] [stdout] 194 | fn pvs(state: &Configuration, depth: u8, mut alpha: i8, mut beta: i8) -> (Option, i8) { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/strategy/alphabeta.rs:202:13 [INFO] [stdout] | [INFO] [stdout] 202 | let mut mov = iter_m.next(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/strategy/alphabeta.rs:205:13 [INFO] [stdout] | [INFO] [stdout] 205 | let mut readed_value = -value; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/strategy/alphabeta.rs:219:17 [INFO] [stdout] | [INFO] [stdout] 219 | let mut readed_value = -value; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/strategy/alphabeta.rs:229:21 [INFO] [stdout] | [INFO] [stdout] 229 | let mut readed_value = -value; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `negamax` is never used [INFO] [stdout] --> src/strategy/minmax.rs:49:4 [INFO] [stdout] | [INFO] [stdout] 49 | fn negamax(state: &Configuration, depth: u8) -> (Option, i8) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `alpha_beta` is never used [INFO] [stdout] --> src/strategy/alphabeta.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn alpha_beta(state: &Configuration, depth: u8, mut alpha: i8, mut beta: i8, current: bool) -> (Option, i8) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `negamax_mem` is never used [INFO] [stdout] --> src/strategy/alphabeta.rs:156:4 [INFO] [stdout] | [INFO] [stdout] 156 | fn negamax_mem(state: &Configuration, saving_states: &mut HashMap, i8)>, depth: u8, mut alpha: i8, mut beta: i8... [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pvs` is never used [INFO] [stdout] --> src/strategy/alphabeta.rs:194:4 [INFO] [stdout] | [INFO] [stdout] 194 | fn pvs(state: &Configuration, depth: u8, mut alpha: i8, mut beta: i8) -> (Option, i8) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/configuration.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(Serialize, Deserialize, Debug, Copy, Clone, PartialEq, Eq)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_Movement` [INFO] [stdout] 11 | /// Movements : clone some blob or jump [INFO] [stdout] 12 | pub enum Movement { [INFO] [stdout] | -------- `Movement` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/configuration.rs:10:21 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(Serialize, Deserialize, Debug, Copy, Clone, PartialEq, Eq)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Movement` [INFO] [stdout] 11 | /// Movements : clone some blob or jump [INFO] [stdout] 12 | pub enum Movement { [INFO] [stdout] | -------- `Movement` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Greedy`, `Human`, and `MinMax` [INFO] [stdout] --> src/main.rs:4:25 [INFO] [stdout] | [INFO] [stdout] 4 | use blobwar::strategy::{MinMax, Greedy, Human, AlphaBeta}; [INFO] [stdout] | ^^^^^^ ^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Greedy`, `Human`, and `MinMax` [INFO] [stdout] --> src/main.rs:4:25 [INFO] [stdout] | [INFO] [stdout] 4 | use blobwar::strategy::{MinMax, Greedy, Human, AlphaBeta}; [INFO] [stdout] | ^^^^^^ ^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 17.04s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: bitflags v0.4.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "27033f0de3b38294dd8dd6284eb495789f3186f27a9b27427a092f836bc0d62e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "27033f0de3b38294dd8dd6284eb495789f3186f27a9b27427a092f836bc0d62e", kill_on_drop: false }` [INFO] [stdout] 27033f0de3b38294dd8dd6284eb495789f3186f27a9b27427a092f836bc0d62e