[INFO] cloning repository https://github.com/CSDotNET0211/TetrisAIrs
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/CSDotNET0211/TetrisAIrs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCSDotNET0211%2FTetrisAIrs", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCSDotNET0211%2FTetrisAIrs'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] fdd2a7f5fac35f71a53354c0516af6ce4dfc9638
[INFO] building CSDotNET0211/TetrisAIrs against master#ad211ced81509462cdfe4c29ed10f97279a0acae for pr-135216
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCSDotNET0211%2FTetrisAIrs" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/CSDotNET0211/TetrisAIrs on toolchain ad211ced81509462cdfe4c29ed10f97279a0acae
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad211ced81509462cdfe4c29ed10f97279a0acae" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/CSDotNET0211/TetrisAIrs
[INFO] finished tweaking git repo https://github.com/CSDotNET0211/TetrisAIrs
[INFO] tweaked toml for git repo https://github.com/CSDotNET0211/TetrisAIrs written to /workspace/builds/worker-4-tc1/source/Cargo.toml
[INFO] crate git repo https://github.com/CSDotNET0211/TetrisAIrs 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" "+ad211ced81509462cdfe4c29ed10f97279a0acae" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded smallvec v1.8.1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+ad211ced81509462cdfe4c29ed10f97279a0acae" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 7438938180bdb5541248eef7e0dd88efdbc38a6e2f520a15895d6e53ea162b3f
[INFO] running `Command { std: "docker" "start" "-a" "7438938180bdb5541248eef7e0dd88efdbc38a6e2f520a15895d6e53ea162b3f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "7438938180bdb5541248eef7e0dd88efdbc38a6e2f520a15895d6e53ea162b3f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "7438938180bdb5541248eef7e0dd88efdbc38a6e2f520a15895d6e53ea162b3f", kill_on_drop: false }`
[INFO] [stdout] 7438938180bdb5541248eef7e0dd88efdbc38a6e2f520a15895d6e53ea162b3f
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+ad211ced81509462cdfe4c29ed10f97279a0acae" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 2f591f7ef33178f01fb6e14e249c02ae0ffb2509b4bf187d101b4ca41c532668
[INFO] running `Command { std: "docker" "start" "-a" "2f591f7ef33178f01fb6e14e249c02ae0ffb2509b4bf187d101b4ca41c532668", kill_on_drop: false }`
[INFO] [stderr]    Compiling autocfg v1.1.0
[INFO] [stderr]    Compiling libc v0.2.126
[INFO] [stderr]    Compiling cfg-if v1.0.0
[INFO] [stderr]    Compiling log v0.4.17
[INFO] [stderr]    Compiling parking_lot_core v0.9.3
[INFO] [stderr]    Compiling signal-hook v0.3.14
[INFO] [stderr]    Compiling smallvec v1.8.1
[INFO] [stderr]    Compiling scopeguard v1.1.0
[INFO] [stderr]    Compiling ppv-lite86 v0.2.16
[INFO] [stderr]    Compiling libm v0.2.2
[INFO] [stderr]    Compiling bitflags v1.3.2
[INFO] [stderr]    Compiling once_cell v1.12.0
[INFO] [stderr]    Compiling num-traits v0.2.15
[INFO] [stderr]    Compiling num-integer v0.1.45
[INFO] [stderr]    Compiling num-bigint v0.4.3
[INFO] [stderr]    Compiling lock_api v0.4.7
[INFO] [stderr]    Compiling num-rational v0.4.0
[INFO] [stderr]    Compiling num-iter v0.1.43
[INFO] [stderr]    Compiling getrandom v0.2.7
[INFO] [stderr]    Compiling signal-hook-registry v1.4.0
[INFO] [stderr]    Compiling mio v0.8.4
[INFO] [stderr]    Compiling num_cpus v1.13.1
[INFO] [stderr]    Compiling thread-id v4.0.0
[INFO] [stderr]    Compiling rand_core v0.6.3
[INFO] [stderr]    Compiling parking_lot v0.12.1
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling signal-hook-mio v0.2.3
[INFO] [stderr]    Compiling crossterm v0.23.2
[INFO] [stderr]    Compiling num-complex v0.4.2
[INFO] [stderr]    Compiling num v0.4.0
[INFO] [stderr]    Compiling TetrisAIrs v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `Vector2`
[INFO] [stdout]  --> src/draw.rs:4:32
[INFO] [stdout]   |
[INFO] [stdout] 4 |     environment::{Environment, Vector2},
[INFO] [stdout]   |                                ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `BufReader`, `Write`, and `fs::File`
[INFO] [stdout]  --> src/geneticalgorithm.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 |     fs::File,
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout] 7 |     io::{self, BufRead, BufReader, Write},
[INFO] [stdout]   |                         ^^^^^^^^^  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around assigned value
[INFO] [stdout]    --> src/geneticalgorithm.rs:109:23
[INFO] [stdout]     |
[INFO] [stdout] 109 |             result += (array[i].powf(2.0) as f64
[INFO] [stdout]     |                       ^
[INFO] [stdout] 110 |                 - 10 as f64 * (2 as f64 * PI * array[i] as f64).cos()
[INFO] [stdout] 111 |                 + 10 as f64)
[INFO] [stdout]     |                            ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 109 ~             result += array[i].powf(2.0) as f64
[INFO] [stdout] 110 |                 - 10 as f64 * (2 as f64 * PI * array[i] as f64).cos()
[INFO] [stdout] 111 ~                 + 10 as f64
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `core::time`
[INFO] [stdout]   --> src/main.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use core::time;
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io::Read`
[INFO] [stdout]   --> src/main.rs:24:5
[INFO] [stdout]    |
[INFO] [stdout] 24 | use std::io::Read;
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `std::thread::sleep_ms`: replaced by `std::thread::sleep`
[INFO] [stdout]    --> src/main.rs:182:29
[INFO] [stdout]     |
[INFO] [stdout] 182 |                     thread::sleep_ms(100);
[INFO] [stdout]     |                             ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `BufRead`
[INFO] [stdout]  --> src/geneticalgorithm.rs:7:16
[INFO] [stdout]   |
[INFO] [stdout] 7 |     io::{self, BufRead, BufReader, Write},
[INFO] [stdout]   |                ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `next_count`
[INFO] [stdout]   --> src/beemsearch.rs:86:9
[INFO] [stdout]    |
[INFO] [stdout] 86 |         next_count: i8,
[INFO] [stdout]    |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_next_count`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `is_pc`
[INFO] [stdout]    --> src/environment.rs:585:9
[INFO] [stdout]     |
[INFO] [stdout] 585 |         is_pc: bool,
[INFO] [stdout]     |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_is_pc`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `mino`
[INFO] [stdout]   --> src/evaluation.rs:20:9
[INFO] [stdout]    |
[INFO] [stdout] 20 |         mino: &Mino,
[INFO] [stdout]    |         ^^^^ help: if this is intentional, prefix it with an underscore: `_mino`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `gen_count`
[INFO] [stdout]   --> src/geneticalgorithm.rs:33:17
[INFO] [stdout]    |
[INFO] [stdout] 33 |         let mut gen_count = 0;
[INFO] [stdout]    |                 ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_gen_count`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/geneticalgorithm.rs:33:13
[INFO] [stdout]    |
[INFO] [stdout] 33 |         let mut gen_count = 0;
[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: unused variable: `stdout`
[INFO] [stdout]    --> src/main.rs:104:21
[INFO] [stdout]     |
[INFO] [stdout] 104 |             let mut stdout = stdout();
[INFO] [stdout]     |                     ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stdout`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:104:17
[INFO] [stdout]     |
[INFO] [stdout] 104 |             let mut stdout = stdout();
[INFO] [stdout]     |                 ----^^^^^^
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `can_hold` is never read
[INFO] [stdout]   --> src/beemsearch.rs:45:9
[INFO] [stdout]    |
[INFO] [stdout] 38 | pub struct SearchedPattern {
[INFO] [stdout]    |            --------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 45 |     pub can_hold: bool,
[INFO] [stdout]    |         ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SearchedPattern` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `main` is never used
[INFO] [stdout]    --> src/draw.rs:116:8
[INFO] [stdout]     |
[INFO] [stdout] 116 |     fn main() {
[INFO] [stdout]     |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `btb_level` is never read
[INFO] [stdout]    --> src/environment.rs:107:5
[INFO] [stdout]     |
[INFO] [stdout] 96  | pub struct Environment {
[INFO] [stdout]     |            ----------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 107 |     btb_level: u32,
[INFO] [stdout]     |     ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated functions `get_attack_garbage` and `is_tspin` are never used
[INFO] [stdout]    --> src/environment.rs:579:12
[INFO] [stdout]     |
[INFO] [stdout] 113 | impl Environment {
[INFO] [stdout]     | ---------------- associated functions in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 579 |     pub fn get_attack_garbage(
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 682 |     pub fn is_tspin() -> bool {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated functions `bench_mark_test`, `Function`, and `tournament_choise` are never used
[INFO] [stdout]    --> src/geneticalgorithm.rs:32:12
[INFO] [stdout]     |
[INFO] [stdout] 31  | impl GeneticAlgorithm {
[INFO] [stdout]     | --------------------- associated functions in this implementation
[INFO] [stdout] 32  |     pub fn bench_mark_test() {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 106 |     fn Function(array: &[f64]) -> f64 {
[INFO] [stdout]     |        ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 313 |     fn tournament_choise(indivisuals: &[Indivisual], tournament_count: i32) -> Indivisual {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `id` is never read
[INFO] [stdout]   --> src/threadpool.rs:50:5
[INFO] [stdout]    |
[INFO] [stdout] 49 | struct Worker {
[INFO] [stdout]    |        ------ field in this struct
[INFO] [stdout] 50 |     id: usize,
[INFO] [stdout]    |     ^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `Terminate` is never constructed
[INFO] [stdout]   --> src/threadpool.rs:84:5
[INFO] [stdout]    |
[INFO] [stdout] 82 | enum Message {
[INFO] [stdout]    |      ------- variant in this enum
[INFO] [stdout] 83 |     NewJob(Job),
[INFO] [stdout] 84 |     Terminate,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `Function` should have a snake case name
[INFO] [stdout]    --> src/geneticalgorithm.rs:106:8
[INFO] [stdout]     |
[INFO] [stdout] 106 |     fn Function(array: &[f64]) -> f64 {
[INFO] [stdout]     |        ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `function`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(non_snake_case)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.15s
[INFO] running `Command { std: "docker" "inspect" "2f591f7ef33178f01fb6e14e249c02ae0ffb2509b4bf187d101b4ca41c532668", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "2f591f7ef33178f01fb6e14e249c02ae0ffb2509b4bf187d101b4ca41c532668", kill_on_drop: false }`
[INFO] [stdout] 2f591f7ef33178f01fb6e14e249c02ae0ffb2509b4bf187d101b4ca41c532668
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+ad211ced81509462cdfe4c29ed10f97279a0acae" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] a2dbc1d3b9bc5fbd5dcb2cbca8b37bd3462cb80e98dd99714bce4e5f3f16b204
[INFO] running `Command { std: "docker" "start" "-a" "a2dbc1d3b9bc5fbd5dcb2cbca8b37bd3462cb80e98dd99714bce4e5f3f16b204", kill_on_drop: false }`
[INFO] [stderr]    Compiling TetrisAIrs v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `Vector2`
[INFO] [stdout]  --> src/draw.rs:4:32
[INFO] [stdout]   |
[INFO] [stdout] 4 |     environment::{Environment, Vector2},
[INFO] [stdout]   |                                ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `BufReader`, `Write`, and `fs::File`
[INFO] [stdout]  --> src/geneticalgorithm.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 |     fs::File,
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout] 7 |     io::{self, BufRead, BufReader, Write},
[INFO] [stdout]   |                         ^^^^^^^^^  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around assigned value
[INFO] [stdout]    --> src/geneticalgorithm.rs:109:23
[INFO] [stdout]     |
[INFO] [stdout] 109 |             result += (array[i].powf(2.0) as f64
[INFO] [stdout]     |                       ^
[INFO] [stdout] 110 |                 - 10 as f64 * (2 as f64 * PI * array[i] as f64).cos()
[INFO] [stdout] 111 |                 + 10 as f64)
[INFO] [stdout]     |                            ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 109 ~             result += array[i].powf(2.0) as f64
[INFO] [stdout] 110 |                 - 10 as f64 * (2 as f64 * PI * array[i] as f64).cos()
[INFO] [stdout] 111 ~                 + 10 as f64
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `core::time`
[INFO] [stdout]   --> src/main.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use core::time;
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io::Read`
[INFO] [stdout]   --> src/main.rs:24:5
[INFO] [stdout]    |
[INFO] [stdout] 24 | use std::io::Read;
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `std::thread::sleep_ms`: replaced by `std::thread::sleep`
[INFO] [stdout]    --> src/main.rs:182:29
[INFO] [stdout]     |
[INFO] [stdout] 182 |                     thread::sleep_ms(100);
[INFO] [stdout]     |                             ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `BufRead`
[INFO] [stdout]  --> src/geneticalgorithm.rs:7:16
[INFO] [stdout]   |
[INFO] [stdout] 7 |     io::{self, BufRead, BufReader, Write},
[INFO] [stdout]   |                ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `next_count`
[INFO] [stdout]   --> src/beemsearch.rs:86:9
[INFO] [stdout]    |
[INFO] [stdout] 86 |         next_count: i8,
[INFO] [stdout]    |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_next_count`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `is_pc`
[INFO] [stdout]    --> src/environment.rs:585:9
[INFO] [stdout]     |
[INFO] [stdout] 585 |         is_pc: bool,
[INFO] [stdout]     |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_is_pc`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `mino`
[INFO] [stdout]   --> src/evaluation.rs:20:9
[INFO] [stdout]    |
[INFO] [stdout] 20 |         mino: &Mino,
[INFO] [stdout]    |         ^^^^ help: if this is intentional, prefix it with an underscore: `_mino`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `gen_count`
[INFO] [stdout]   --> src/geneticalgorithm.rs:33:17
[INFO] [stdout]    |
[INFO] [stdout] 33 |         let mut gen_count = 0;
[INFO] [stdout]    |                 ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_gen_count`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/geneticalgorithm.rs:33:13
[INFO] [stdout]    |
[INFO] [stdout] 33 |         let mut gen_count = 0;
[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: unused variable: `stdout`
[INFO] [stdout]    --> src/main.rs:104:21
[INFO] [stdout]     |
[INFO] [stdout] 104 |             let mut stdout = stdout();
[INFO] [stdout]     |                     ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stdout`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:104:17
[INFO] [stdout]     |
[INFO] [stdout] 104 |             let mut stdout = stdout();
[INFO] [stdout]     |                 ----^^^^^^
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `can_hold` is never read
[INFO] [stdout]   --> src/beemsearch.rs:45:9
[INFO] [stdout]    |
[INFO] [stdout] 38 | pub struct SearchedPattern {
[INFO] [stdout]    |            --------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 45 |     pub can_hold: bool,
[INFO] [stdout]    |         ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SearchedPattern` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `main` is never used
[INFO] [stdout]    --> src/draw.rs:116:8
[INFO] [stdout]     |
[INFO] [stdout] 116 |     fn main() {
[INFO] [stdout]     |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `btb_level` is never read
[INFO] [stdout]    --> src/environment.rs:107:5
[INFO] [stdout]     |
[INFO] [stdout] 96  | pub struct Environment {
[INFO] [stdout]     |            ----------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 107 |     btb_level: u32,
[INFO] [stdout]     |     ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated functions `get_attack_garbage` and `is_tspin` are never used
[INFO] [stdout]    --> src/environment.rs:579:12
[INFO] [stdout]     |
[INFO] [stdout] 113 | impl Environment {
[INFO] [stdout]     | ---------------- associated functions in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 579 |     pub fn get_attack_garbage(
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 682 |     pub fn is_tspin() -> bool {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated functions `bench_mark_test`, `Function`, and `tournament_choise` are never used
[INFO] [stdout]    --> src/geneticalgorithm.rs:32:12
[INFO] [stdout]     |
[INFO] [stdout] 31  | impl GeneticAlgorithm {
[INFO] [stdout]     | --------------------- associated functions in this implementation
[INFO] [stdout] 32  |     pub fn bench_mark_test() {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 106 |     fn Function(array: &[f64]) -> f64 {
[INFO] [stdout]     |        ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 313 |     fn tournament_choise(indivisuals: &[Indivisual], tournament_count: i32) -> Indivisual {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `id` is never read
[INFO] [stdout]   --> src/threadpool.rs:50:5
[INFO] [stdout]    |
[INFO] [stdout] 49 | struct Worker {
[INFO] [stdout]    |        ------ field in this struct
[INFO] [stdout] 50 |     id: usize,
[INFO] [stdout]    |     ^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `Terminate` is never constructed
[INFO] [stdout]   --> src/threadpool.rs:84:5
[INFO] [stdout]    |
[INFO] [stdout] 82 | enum Message {
[INFO] [stdout]    |      ------- variant in this enum
[INFO] [stdout] 83 |     NewJob(Job),
[INFO] [stdout] 84 |     Terminate,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `Function` should have a snake case name
[INFO] [stdout]    --> src/geneticalgorithm.rs:106:8
[INFO] [stdout]     |
[INFO] [stdout] 106 |     fn Function(array: &[f64]) -> f64 {
[INFO] [stdout]     |        ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `function`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(non_snake_case)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.42s
[INFO] running `Command { std: "docker" "inspect" "a2dbc1d3b9bc5fbd5dcb2cbca8b37bd3462cb80e98dd99714bce4e5f3f16b204", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a2dbc1d3b9bc5fbd5dcb2cbca8b37bd3462cb80e98dd99714bce4e5f3f16b204", kill_on_drop: false }`
[INFO] [stdout] a2dbc1d3b9bc5fbd5dcb2cbca8b37bd3462cb80e98dd99714bce4e5f3f16b204
