[INFO] cloning repository https://github.com/diamondAlex/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/diamondAlex/chess_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FdiamondAlex%2Fchess_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FdiamondAlex%2Fchess_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bbdc39c9b4d091280eb1315c3719dcc9aec4616f [INFO] testing diamondAlex/chess_rust against master#9e136a30a965bf4e63f03095c57df7257bf96fd6 for pr-134530 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FdiamondAlex%2Fchess_rust" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/diamondAlex/chess_rust on toolchain 9e136a30a965bf4e63f03095c57df7257bf96fd6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9e136a30a965bf4e63f03095c57df7257bf96fd6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/diamondAlex/chess_rust [INFO] finished tweaking git repo https://github.com/diamondAlex/chess_rust [INFO] tweaked toml for git repo https://github.com/diamondAlex/chess_rust written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/diamondAlex/chess_rust 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" "+9e136a30a965bf4e63f03095c57df7257bf96fd6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+9e136a30a965bf4e63f03095c57df7257bf96fd6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c61532c47c0458384767a2917dce0d4a8e91f6b9424c07f0ab4e13eca3e8cab6 [INFO] running `Command { std: "docker" "start" "-a" "c61532c47c0458384767a2917dce0d4a8e91f6b9424c07f0ab4e13eca3e8cab6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c61532c47c0458384767a2917dce0d4a8e91f6b9424c07f0ab4e13eca3e8cab6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c61532c47c0458384767a2917dce0d4a8e91f6b9424c07f0ab4e13eca3e8cab6", kill_on_drop: false }` [INFO] [stdout] c61532c47c0458384767a2917dce0d4a8e91f6b9424c07f0ab4e13eca3e8cab6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+9e136a30a965bf4e63f03095c57df7257bf96fd6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 15c073a54b6db7a3b9fca5f9af0de52e4d455708322c7057ca067dc3fae0e197 [INFO] running `Command { std: "docker" "start" "-a" "15c073a54b6db7a3b9fca5f9af0de52e4d455708322c7057ca067dc3fae0e197", kill_on_drop: false }` [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling libc v0.2.158 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling rustversion v1.0.17 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling signal-hook v0.3.17 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling rustix v0.38.35 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling sharded-slab v0.1.7 [INFO] [stderr] Compiling thread_local v1.1.8 [INFO] [stderr] Compiling pin-project-lite v0.2.14 [INFO] [stderr] Compiling cc v1.1.15 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling gimli v0.28.1 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling eyre v0.6.12 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling allocator-api2 v0.2.18 [INFO] [stderr] Compiling miniz_oxide v0.7.4 [INFO] [stderr] Compiling itertools v0.13.0 [INFO] [stderr] Compiling indenter v0.3.3 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling object v0.32.2 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling unicode-segmentation v1.11.0 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling castaway v0.2.3 [INFO] [stderr] Compiling owo-colors v3.5.0 [INFO] [stderr] Compiling rustc-demangle v0.1.24 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling tracing-subscriber v0.3.18 [INFO] [stderr] Compiling syn v2.0.76 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling unicode-width v0.1.13 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling mio v1.0.2 [INFO] [stderr] Compiling compact_str v0.8.0 [INFO] [stderr] Compiling signal-hook-mio v0.2.4 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling cassowary v0.3.0 [INFO] [stderr] Compiling backtrace v0.3.71 [INFO] [stderr] Compiling crossterm v0.28.1 [INFO] [stderr] Compiling lru v0.12.4 [INFO] [stderr] Compiling tracing-error v0.2.0 [INFO] [stderr] Compiling color-spantrace v0.2.1 [INFO] [stderr] Compiling addr2line v0.21.0 [INFO] [stderr] Compiling unicode-truncate v1.1.0 [INFO] [stderr] Compiling color-eyre v0.6.3 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Compiling instability v0.3.2 [INFO] [stderr] Compiling strum v0.26.3 [INFO] [stderr] Compiling ratatui v0.28.1 [INFO] [stderr] Compiling chess v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `found` [INFO] [stdout] --> src/main.rs:139:17 [INFO] [stdout] | [INFO] [stdout] 139 | let mut found = 0; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_found` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | let mut found = 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: `chess_move` [INFO] [stdout] --> src/main.rs:385:13 [INFO] [stdout] | [INFO] [stdout] 385 | let mut chess_move = String::new(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_chess_move` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:385:9 [INFO] [stdout] | [INFO] [stdout] 385 | let mut chess_move = String::new(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fi` [INFO] [stdout] --> src/main.rs:439:29 [INFO] [stdout] | [INFO] [stdout] 439 | let fi = (*from/8 as i32) as usize; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_fi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fj` [INFO] [stdout] --> src/main.rs:440:29 [INFO] [stdout] | [INFO] [stdout] 440 | let fj = (*from%8) as usize; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_fj` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:454:33 [INFO] [stdout] | [INFO] [stdout] 454 | ... let mut piece = board[fi][fj]; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/main.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 26 | impl ChessPiece{ [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 27 | fn new(piece: Piece, color: PColors, rec: Rect) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_e_type` is never used [INFO] [stdout] --> src/main.rs:365:4 [INFO] [stdout] | [INFO] [stdout] 365 | fn print_e_type(input: Piece) -> io::Result{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/main.rs:142:19 [INFO] [stdout] | [INFO] [stdout] 142 | while i >= 0 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/main.rs:176:19 [INFO] [stdout] | [INFO] [stdout] 176 | while j >= 0 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 23.41s [INFO] running `Command { std: "docker" "inspect" "15c073a54b6db7a3b9fca5f9af0de52e4d455708322c7057ca067dc3fae0e197", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "15c073a54b6db7a3b9fca5f9af0de52e4d455708322c7057ca067dc3fae0e197", kill_on_drop: false }` [INFO] [stdout] 15c073a54b6db7a3b9fca5f9af0de52e4d455708322c7057ca067dc3fae0e197 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+9e136a30a965bf4e63f03095c57df7257bf96fd6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d7aaac9e81c9702572f7b90668ba84af0d85316fbea63e9090ba5bba2c047024 [INFO] running `Command { std: "docker" "start" "-a" "d7aaac9e81c9702572f7b90668ba84af0d85316fbea63e9090ba5bba2c047024", kill_on_drop: false }` [INFO] [stderr] Compiling chess v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `found` [INFO] [stdout] --> src/main.rs:139:17 [INFO] [stdout] | [INFO] [stdout] 139 | let mut found = 0; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_found` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | let mut found = 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: `chess_move` [INFO] [stdout] --> src/main.rs:385:13 [INFO] [stdout] | [INFO] [stdout] 385 | let mut chess_move = String::new(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_chess_move` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:385:9 [INFO] [stdout] | [INFO] [stdout] 385 | let mut chess_move = String::new(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fi` [INFO] [stdout] --> src/main.rs:439:29 [INFO] [stdout] | [INFO] [stdout] 439 | let fi = (*from/8 as i32) as usize; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_fi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fj` [INFO] [stdout] --> src/main.rs:440:29 [INFO] [stdout] | [INFO] [stdout] 440 | let fj = (*from%8) as usize; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_fj` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:454:33 [INFO] [stdout] | [INFO] [stdout] 454 | ... let mut piece = board[fi][fj]; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/main.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 26 | impl ChessPiece{ [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 27 | fn new(piece: Piece, color: PColors, rec: Rect) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_e_type` is never used [INFO] [stdout] --> src/main.rs:365:4 [INFO] [stdout] | [INFO] [stdout] 365 | fn print_e_type(input: Piece) -> io::Result{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/main.rs:142:19 [INFO] [stdout] | [INFO] [stdout] 142 | while i >= 0 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/main.rs:176:19 [INFO] [stdout] | [INFO] [stdout] 176 | while j >= 0 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.52s [INFO] running `Command { std: "docker" "inspect" "d7aaac9e81c9702572f7b90668ba84af0d85316fbea63e9090ba5bba2c047024", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d7aaac9e81c9702572f7b90668ba84af0d85316fbea63e9090ba5bba2c047024", kill_on_drop: false }` [INFO] [stdout] d7aaac9e81c9702572f7b90668ba84af0d85316fbea63e9090ba5bba2c047024 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+9e136a30a965bf4e63f03095c57df7257bf96fd6" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 4fd321a848082cef3c81699a37de02e0e3b00c580a1657d9280ccd13d8922f38 [INFO] running `Command { std: "docker" "start" "-a" "4fd321a848082cef3c81699a37de02e0e3b00c580a1657d9280ccd13d8922f38", kill_on_drop: false }` [INFO] [stderr] warning: unused variable: `found` [INFO] [stderr] --> src/main.rs:139:17 [INFO] [stderr] | [INFO] [stderr] 139 | let mut found = 0; [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_found` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:139:13 [INFO] [stderr] | [INFO] [stderr] 139 | let mut found = 0; [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `chess_move` [INFO] [stderr] --> src/main.rs:385:13 [INFO] [stderr] | [INFO] [stderr] 385 | let mut chess_move = String::new(); [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_chess_move` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:385:9 [INFO] [stderr] | [INFO] [stderr] 385 | let mut chess_move = String::new(); [INFO] [stderr] | ----^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `fi` [INFO] [stderr] --> src/main.rs:439:29 [INFO] [stderr] | [INFO] [stderr] 439 | let fi = (*from/8 as i32) as usize; [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_fi` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `fj` [INFO] [stderr] --> src/main.rs:440:29 [INFO] [stderr] | [INFO] [stderr] 440 | let fj = (*from%8) as usize; [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_fj` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:454:33 [INFO] [stderr] | [INFO] [stderr] 454 | ... let mut piece = board[fi][fj]; [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/main.rs:27:8 [INFO] [stderr] | [INFO] [stderr] 26 | impl ChessPiece{ [INFO] [stderr] | --------------- associated function in this implementation [INFO] [stderr] 27 | fn new(piece: Piece, color: PColors, rec: Rect) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function `print_e_type` is never used [INFO] [stderr] --> src/main.rs:365:4 [INFO] [stderr] | [INFO] [stderr] 365 | fn print_e_type(input: Piece) -> io::Result{ [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: comparison is useless due to type limits [INFO] [stderr] --> src/main.rs:142:19 [INFO] [stderr] | [INFO] [stderr] 142 | while i >= 0 { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stderr] [INFO] [stderr] warning: comparison is useless due to type limits [INFO] [stderr] --> src/main.rs:176:19 [INFO] [stderr] | [INFO] [stderr] 176 | while j >= 0 { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `chess` (bin "chess" test) generated 11 warnings (run `cargo fix --bin "chess" --tests` to apply 3 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.09s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/chess-58c21bf30fc09606) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "4fd321a848082cef3c81699a37de02e0e3b00c580a1657d9280ccd13d8922f38", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4fd321a848082cef3c81699a37de02e0e3b00c580a1657d9280ccd13d8922f38", kill_on_drop: false }` [INFO] [stdout] 4fd321a848082cef3c81699a37de02e0e3b00c580a1657d9280ccd13d8922f38