[INFO] cloning repository https://github.com/NearlyGold/rust-chess [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/NearlyGold/rust-chess" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNearlyGold%2Frust-chess", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNearlyGold%2Frust-chess'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 66a6ad2604c3d46b30292aef7ddd4d7b2b0a6d80 [INFO] building NearlyGold/rust-chess against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNearlyGold%2Frust-chess" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/NearlyGold/rust-chess on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/NearlyGold/rust-chess [INFO] finished tweaking git repo https://github.com/NearlyGold/rust-chess [INFO] tweaked toml for git repo https://github.com/NearlyGold/rust-chess written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/NearlyGold/rust-chess 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bab1bd6dc9395dd41aa692d3fab68728ea1bd43facd5d5066b3483c6c0eafe46 [INFO] running `Command { std: "docker" "start" "-a" "bab1bd6dc9395dd41aa692d3fab68728ea1bd43facd5d5066b3483c6c0eafe46", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bab1bd6dc9395dd41aa692d3fab68728ea1bd43facd5d5066b3483c6c0eafe46", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bab1bd6dc9395dd41aa692d3fab68728ea1bd43facd5d5066b3483c6c0eafe46", kill_on_drop: false }` [INFO] [stdout] bab1bd6dc9395dd41aa692d3fab68728ea1bd43facd5d5066b3483c6c0eafe46 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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 -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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 66b5963ee69d6559d95626ee7bbd12dea1cec256c193858e2a1f12100108fae7 [INFO] running `Command { std: "docker" "start" "-a" "66b5963ee69d6559d95626ee7bbd12dea1cec256c193858e2a1f12100108fae7", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.144 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling getrandom v0.2.9 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling chess v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `write` [INFO] [stdout] --> src/main.rs:1:36 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::{Display, Formatter, write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:220:9 [INFO] [stdout] | [INFO] [stdout] 220 | for x in 0..size_x { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/main.rs:222:13 [INFO] [stdout] | [INFO] [stdout] 222 | for y in 0..size_y { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `opp_pieces` [INFO] [stdout] --> src/main.rs:345:9 [INFO] [stdout] | [INFO] [stdout] 345 | let opp_pieces = generate_piece_set(Colour::Black); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_opp_pieces` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:351:9 [INFO] [stdout] | [INFO] [stdout] 351 | let mut board = generate_board(); [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: struct `Board` is never constructed [INFO] [stdout] --> src/main.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Board { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Three`, `Four`, `Five`, and `Six` are never constructed [INFO] [stdout] --> src/main.rs:14:23 [INFO] [stdout] | [INFO] [stdout] 14 | enum Rank { One, Two, Three, Four, Five, Six, Seven, Eight } [INFO] [stdout] | ---- ^^^^^ ^^^^ ^^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | variants in this enum [INFO] [stdout] | [INFO] [stdout] = note: `Rank` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `value` is never used [INFO] [stdout] --> src/main.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 16 | impl Rank { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 30 | fn value(&self) -> i8 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `value` is never used [INFO] [stdout] --> src/main.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 48 | impl File { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 62 | fn value(&self) -> i8 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `move_vectors` is never used [INFO] [stdout] --> src/main.rs:115:8 [INFO] [stdout] | [INFO] [stdout] 114 | impl GamePiece { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 115 | fn move_vectors(&self) -> Vec<(i8, i8)> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `symbol` is never used [INFO] [stdout] --> src/main.rs:175:8 [INFO] [stdout] | [INFO] [stdout] 163 | impl PieceKind { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 175 | fn symbol(&self) -> char { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Position` is never used [INFO] [stdout] --> src/main.rs:189:6 [INFO] [stdout] | [INFO] [stdout] 189 | type Position = (File, Rank); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_valid_move` is never used [INFO] [stdout] --> src/main.rs:283:4 [INFO] [stdout] | [INFO] [stdout] 283 | fn is_valid_move(player_colour: Colour, board: &BoardGrid, source_position: Position, dest_position: Position) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_move_vector` is never used [INFO] [stdout] --> src/main.rs:329:4 [INFO] [stdout] | [INFO] [stdout] 329 | fn calculate_move_vector(source_position: Position, dest_position: Position) -> (i8, i8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.48s [INFO] running `Command { std: "docker" "inspect" "66b5963ee69d6559d95626ee7bbd12dea1cec256c193858e2a1f12100108fae7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "66b5963ee69d6559d95626ee7bbd12dea1cec256c193858e2a1f12100108fae7", kill_on_drop: false }` [INFO] [stdout] 66b5963ee69d6559d95626ee7bbd12dea1cec256c193858e2a1f12100108fae7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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 -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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0976f982b72a64b439ee4c5ee4bc19e50be856c7a11ac8aa8e191ecce2e3f882 [INFO] running `Command { std: "docker" "start" "-a" "0976f982b72a64b439ee4c5ee4bc19e50be856c7a11ac8aa8e191ecce2e3f882", kill_on_drop: false }` [INFO] [stderr] Compiling chess v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `write` [INFO] [stdout] --> src/main.rs:1:36 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::{Display, Formatter, write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:220:9 [INFO] [stdout] | [INFO] [stdout] 220 | for x in 0..size_x { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/main.rs:222:13 [INFO] [stdout] | [INFO] [stdout] 222 | for y in 0..size_y { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `opp_pieces` [INFO] [stdout] --> src/main.rs:345:9 [INFO] [stdout] | [INFO] [stdout] 345 | let opp_pieces = generate_piece_set(Colour::Black); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_opp_pieces` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:351:9 [INFO] [stdout] | [INFO] [stdout] 351 | let mut board = generate_board(); [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: struct `Board` is never constructed [INFO] [stdout] --> src/main.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Board { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Six` is never constructed [INFO] [stdout] --> src/main.rs:14:42 [INFO] [stdout] | [INFO] [stdout] 14 | enum Rank { One, Two, Three, Four, Five, Six, Seven, Eight } [INFO] [stdout] | ---- variant in this enum ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Rank` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `symbol` is never used [INFO] [stdout] --> src/main.rs:175:8 [INFO] [stdout] | [INFO] [stdout] 163 | impl PieceKind { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 175 | fn symbol(&self) -> char { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.20s [INFO] running `Command { std: "docker" "inspect" "0976f982b72a64b439ee4c5ee4bc19e50be856c7a11ac8aa8e191ecce2e3f882", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0976f982b72a64b439ee4c5ee4bc19e50be856c7a11ac8aa8e191ecce2e3f882", kill_on_drop: false }` [INFO] [stdout] 0976f982b72a64b439ee4c5ee4bc19e50be856c7a11ac8aa8e191ecce2e3f882