[INFO] cloning repository https://github.com/robbagott/rob-chess-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/robbagott/rob-chess-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frobbagott%2Frob-chess-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frobbagott%2Frob-chess-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 344b2ede8aef126fd3947ec42d52516ac69429f3 [INFO] checking robbagott/rob-chess-rust against master#936f2600b6c903b04387f74ed5cbce88bb06d243 for pr-91141 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frobbagott%2Frob-chess-rust" "/workspace/builds/worker-114/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-114/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/robbagott/rob-chess-rust on toolchain 936f2600b6c903b04387f74ed5cbce88bb06d243 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+936f2600b6c903b04387f74ed5cbce88bb06d243" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/robbagott/rob-chess-rust [INFO] finished tweaking git repo https://github.com/robbagott/rob-chess-rust [INFO] tweaked toml for git repo https://github.com/robbagott/rob-chess-rust written to /workspace/builds/worker-114/source/Cargo.toml [INFO] crate git repo https://github.com/robbagott/rob-chess-rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+936f2600b6c903b04387f74ed5cbce88bb06d243" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-114/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-114/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+936f2600b6c903b04387f74ed5cbce88bb06d243" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 119e452b9931549c3ca063f5b5ac88ea344cf49de4d5e98c4e74e203f02ac09d [INFO] running `Command { std: "docker" "start" "-a" "119e452b9931549c3ca063f5b5ac88ea344cf49de4d5e98c4e74e203f02ac09d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "119e452b9931549c3ca063f5b5ac88ea344cf49de4d5e98c4e74e203f02ac09d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "119e452b9931549c3ca063f5b5ac88ea344cf49de4d5e98c4e74e203f02ac09d", kill_on_drop: false }` [INFO] [stdout] 119e452b9931549c3ca063f5b5ac88ea344cf49de4d5e98c4e74e203f02ac09d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-114/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-114/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+936f2600b6c903b04387f74ed5cbce88bb06d243" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f109019ee2a8547acd4a9d48abda93556a38584b6e3df526177fb9c8f61a7182 [INFO] running `Command { std: "docker" "start" "-a" "f109019ee2a8547acd4a9d48abda93556a38584b6e3df526177fb9c8f61a7182", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.93 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking regex-syntax v0.6.23 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking colored v2.0.0 [INFO] [stderr] Checking aho-corasick v0.7.15 [INFO] [stderr] Checking regex v1.4.5 [INFO] [stderr] Checking rob_chess v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `super::tree::Tree` [INFO] [stdout] --> src/game/engine.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use super::tree::Tree; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::tree::Tree` [INFO] [stdout] --> src/game/engine.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use super::tree::Tree; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `best_move_so_far` [INFO] [stdout] --> src/game/engine.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let best_move_so_far: ChessMove; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_best_move_so_far` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `old_piece` [INFO] [stdout] --> src/game/engine.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | let old_piece = p.board[curr_move.o_rank][curr_move.o_file]; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_old_piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `captured_piece` [INFO] [stdout] --> src/game/engine.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | let captured_piece = p.board[curr_move.n_rank][curr_move.n_file]; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_captured_piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `eval` [INFO] [stdout] --> src/game/engine.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | let eval = -calculate(p, color.opp_color(), depth, -beta, -alpha, child); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_eval` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/game/engine.rs:94:17 [INFO] [stdout] | [INFO] [stdout] 94 | Err(err) => println!("Failed to make move {}", chess_move), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/game/engine.rs:124:13 [INFO] [stdout] | [INFO] [stdout] 124 | fn evaluate(p: &Position, color: Color) -> f64 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/game/engine.rs:124:27 [INFO] [stdout] | [INFO] [stdout] 124 | fn evaluate(p: &Position, color: Color) -> f64 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/game/engine.rs:132:15 [INFO] [stdout] | [INFO] [stdout] 132 | (Some(a), None) => Ordering::Greater, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/game/engine.rs:133:21 [INFO] [stdout] | [INFO] [stdout] 133 | (None, Some(b)) => Ordering::Less, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/game/position.rs:130:48 [INFO] [stdout] | [INFO] [stdout] 130 | fn get_moves_at(&self, f: usize, r: usize, color: Color) -> Vec { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `best_move_so_far` [INFO] [stdout] --> src/game/engine.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let best_move_so_far: ChessMove; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_best_move_so_far` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `old_piece` [INFO] [stdout] --> src/game/engine.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | let old_piece = p.board[curr_move.o_rank][curr_move.o_file]; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_old_piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `captured_piece` [INFO] [stdout] --> src/game/engine.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | let captured_piece = p.board[curr_move.n_rank][curr_move.n_file]; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_captured_piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `eval` [INFO] [stdout] --> src/game/engine.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | let eval = -calculate(p, color.opp_color(), depth, -beta, -alpha, child); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_eval` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/game/engine.rs:94:17 [INFO] [stdout] | [INFO] [stdout] 94 | Err(err) => println!("Failed to make move {}", chess_move), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/game/engine.rs:124:13 [INFO] [stdout] | [INFO] [stdout] 124 | fn evaluate(p: &Position, color: Color) -> f64 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/game/engine.rs:124:27 [INFO] [stdout] | [INFO] [stdout] 124 | fn evaluate(p: &Position, color: Color) -> f64 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/game/engine.rs:132:15 [INFO] [stdout] | [INFO] [stdout] 132 | (Some(a), None) => Ordering::Greater, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/game/engine.rs:133:21 [INFO] [stdout] | [INFO] [stdout] 133 | (None, Some(b)) => Ordering::Less, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/game/position.rs:130:48 [INFO] [stdout] | [INFO] [stdout] 130 | fn get_moves_at(&self, f: usize, r: usize, color: Color) -> Vec { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `value` [INFO] [stdout] --> src/game/game_piece.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn value(&self) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `value` [INFO] [stdout] --> src/game/game_piece.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn value(&self) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `value` [INFO] [stdout] --> src/game/game_piece.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn value(&self) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `value` [INFO] [stdout] --> src/game/game_piece.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn value(&self) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/game/position.rs:307:16 [INFO] [stdout] | [INFO] [stdout] 307 | panic!(format!("No king found in position: \n {}", self)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 307 - panic!(format!("No king found in position: \n {}", self)); [INFO] [stdout] 307 + panic!("No king found in position: \n {}", self); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/game/engine.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | p.make_move(&curr_move); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/game/position.rs:285:9 [INFO] [stdout] | [INFO] [stdout] 285 | self.make_move(&m); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/game/position.rs:307:16 [INFO] [stdout] | [INFO] [stdout] 307 | panic!(format!("No king found in position: \n {}", self)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 307 - panic!(format!("No king found in position: \n {}", self)); [INFO] [stdout] 307 + panic!("No king found in position: \n {}", self); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/game/engine.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | p.make_move(&curr_move); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/game/position.rs:285:9 [INFO] [stdout] | [INFO] [stdout] 285 | self.make_move(&m); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 12.44s [INFO] running `Command { std: "docker" "inspect" "f109019ee2a8547acd4a9d48abda93556a38584b6e3df526177fb9c8f61a7182", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f109019ee2a8547acd4a9d48abda93556a38584b6e3df526177fb9c8f61a7182", kill_on_drop: false }` [INFO] [stdout] f109019ee2a8547acd4a9d48abda93556a38584b6e3df526177fb9c8f61a7182