[INFO] cloning repository https://github.com/inda21plusplus/ollejer-chess [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/inda21plusplus/ollejer-chess" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Finda21plusplus%2Follejer-chess", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Finda21plusplus%2Follejer-chess'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ea9943b9f2b67e54a477acad577557f70d669293 [INFO] checking inda21plusplus/ollejer-chess against master#bca37a20bd376ce3fd138e7cdee7fe704e0f8814 for pr-139493-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Finda21plusplus%2Follejer-chess" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/inda21plusplus/ollejer-chess [INFO] finished tweaking git repo https://github.com/inda21plusplus/ollejer-chess [INFO] tweaked toml for git repo https://github.com/inda21plusplus/ollejer-chess written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/inda21plusplus/ollejer-chess on toolchain bca37a20bd376ce3fd138e7cdee7fe704e0f8814 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/inda21plusplus/ollejer-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" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ndk-glue v0.4.0 [INFO] [stderr] Downloaded mint v0.5.7 [INFO] [stderr] Downloaded cpal v0.13.4 [INFO] [stderr] Downloaded oboe v0.4.4 [INFO] [stderr] Downloaded lyon_algorithms v0.17.6 [INFO] [stderr] Downloaded twox-hash v1.6.1 [INFO] [stderr] Downloaded clang-sys v1.2.2 [INFO] [stderr] Downloaded ndk v0.4.0 [INFO] [stderr] Downloaded lyon_geom v0.17.5 [INFO] [stderr] Downloaded oboe-sys v0.4.4 [INFO] [stderr] Downloaded lyon_tessellation v0.17.9 [INFO] [stderr] Downloaded ggez v0.6.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 281b41f660fa13e18a2f73fb08f9ba52e5e47bc9787c36b8c21a5da30a5e4f5a [INFO] running `Command { std: "docker" "start" "-a" "281b41f660fa13e18a2f73fb08f9ba52e5e47bc9787c36b8c21a5da30a5e4f5a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "281b41f660fa13e18a2f73fb08f9ba52e5e47bc9787c36b8c21a5da30a5e4f5a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "281b41f660fa13e18a2f73fb08f9ba52e5e47bc9787c36b8c21a5da30a5e4f5a", kill_on_drop: false }` [INFO] [stdout] 281b41f660fa13e18a2f73fb08f9ba52e5e47bc9787c36b8c21a5da30a5e4f5a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ecac44b555c9f70e0ab4df7de47b3b36a9d00929be6f37ca782251d89f90fc11 [INFO] running `Command { std: "docker" "start" "-a" "ecac44b555c9f70e0ab4df7de47b3b36a9d00929be6f37ca782251d89f90fc11", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.103 [INFO] [stderr] Compiling pkg-config v0.3.20 [INFO] [stderr] Compiling syn v1.0.77 [INFO] [stderr] Checking instant v0.1.11 [INFO] [stderr] Checking crossbeam-epoch v0.9.5 [INFO] [stderr] Compiling crossbeam-queue v0.3.2 [INFO] [stderr] Checking nom v7.0.0 [INFO] [stderr] Compiling serde_json v1.0.68 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Checking lyon_geom v0.17.5 [INFO] [stderr] Compiling winit v0.25.0 [INFO] [stderr] Compiling pulldown-cmark v0.8.0 [INFO] [stderr] Compiling cpal v0.13.4 [INFO] [stderr] Checking tinyvec v1.5.0 [INFO] [stderr] Checking ordered-float v2.8.0 [INFO] [stderr] Checking mint v0.5.7 [INFO] [stderr] Checking ollejer-chess v0.1.0 (/opt/rustwide/workdir/ollejer-chess) [INFO] [stderr] Checking image v0.23.14 [INFO] [stdout] warning: unused variable: `rook` [INFO] [stdout] --> ollejer-chess/src/board.rs:210:9 [INFO] [stdout] | [INFO] [stdout] 210 | rook: Piece, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rook` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `destination` [INFO] [stdout] --> ollejer-chess/src/board.rs:212:9 [INFO] [stdout] | [INFO] [stdout] 212 | destination: usize, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_destination` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `result` is assigned to, but never used [INFO] [stdout] --> ollejer-chess/src/board.rs:356:13 [INFO] [stdout] | [INFO] [stdout] 356 | let result: Result<(), &'static str>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_result` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `result` is never read [INFO] [stdout] --> ollejer-chess/src/board.rs:386:13 [INFO] [stdout] | [INFO] [stdout] 386 | result = Ok(()); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `result` is never read [INFO] [stdout] --> ollejer-chess/src/board.rs:372:13 [INFO] [stdout] | [INFO] [stdout] 372 | / result = match read_promotion() { [INFO] [stdout] 373 | | Ok(piece_type) => { [INFO] [stdout] 374 | | self.promote( [INFO] [stdout] 375 | | destination, [INFO] [stdout] ... | [INFO] [stdout] 383 | | Err(e) => return Err(e), [INFO] [stdout] 384 | | }; [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `result` is never read [INFO] [stdout] --> ollejer-chess/src/board.rs:358:13 [INFO] [stdout] | [INFO] [stdout] 358 | / result = match read_promotion() { [INFO] [stdout] 359 | | Ok(piece_type) => { [INFO] [stdout] 360 | | self.promote( [INFO] [stdout] 361 | | destination, [INFO] [stdout] ... | [INFO] [stdout] 369 | | Err(e) => return Err(e), [INFO] [stdout] 370 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `turn` [INFO] [stdout] --> ollejer-chess/src/board.rs:425:13 [INFO] [stdout] | [INFO] [stdout] 425 | let turn = match turn { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_turn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> ollejer-chess/src/movement.rs:193:9 [INFO] [stdout] | [INFO] [stdout] 193 | _ => panic!("Error! Cant get move from unknown piece."), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> ollejer-chess/src/movement.rs:193:9 [INFO] [stdout] | [INFO] [stdout] 187 | Knight => get_knight_moves(position), [INFO] [stdout] | ------ matches some of the same values [INFO] [stdout] 188 | Bishop => get_bishop_moves(position), [INFO] [stdout] | ------ matches some of the same values [INFO] [stdout] 189 | Rook => get_rook_moves(position), [INFO] [stdout] | ---- matches some of the same values [INFO] [stdout] 190 | Queen => get_queen_moves(position), [INFO] [stdout] | ----- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 193 | _ => panic!("Error! Cant get move from unknown piece."), [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `largest` is never read [INFO] [stdout] --> ollejer-chess/src/rules.rs:271:27 [INFO] [stdout] | [INFO] [stdout] 271 | let mut largest = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `smallest` is never read [INFO] [stdout] --> ollejer-chess/src/rules.rs:272:28 [INFO] [stdout] | [INFO] [stdout] 272 | let mut smallest = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> ollejer-chess/src/rules.rs:337:9 [INFO] [stdout] | [INFO] [stdout] 337 | _ => panic!("Error! Cant get move from unknown piece."), //WARNING WTF IS THIS GHOST [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> ollejer-chess/src/rules.rs:337:9 [INFO] [stdout] | [INFO] [stdout] 331 | pieces::Pieces::Knight => validate_knight_moves(one_d_board, moves, position), [INFO] [stdout] | ---------------------- matches some of the same values [INFO] [stdout] 332 | pieces::Pieces::Queen => validate_queen_moves(one_d_board, moves, position), [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] 333 | pieces::Pieces::Rook => validate_rook_moves(one_d_board, moves, position), [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 334 | pieces::Pieces::Bishop => validate_bishop_moves(one_d_board, moves, position), [INFO] [stdout] | ---------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 337 | _ => panic!("Error! Cant get move from unknown piece."), //WARNING WTF IS THIS GHOST [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> ollejer-chess/src/rules.rs:410:5 [INFO] [stdout] | [INFO] [stdout] 410 | pos: usize, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `halfmove_clock` and `fullmove_clock` are never read [INFO] [stdout] --> ollejer-chess/src/board.rs:157:5 [INFO] [stdout] | [INFO] [stdout] 152 | pub struct OneDBoard { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 157 | halfmove_clock: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 158 | fullmove_clock: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OneDBoard` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_piece_UNSAFE` should have a snake case name [INFO] [stdout] --> ollejer-chess/src/board.rs:400:12 [INFO] [stdout] | [INFO] [stdout] 400 | pub fn set_piece_UNSAFE(&mut self, position: usize, piece: Option) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `set_piece_unsafe` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `new_from_FEN` should have a snake case name [INFO] [stdout] --> ollejer-chess/src/board.rs:418:12 [INFO] [stdout] | [INFO] [stdout] 418 | pub fn new_from_FEN(fen: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `new_from_fen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> ollejer-chess/src/board.rs:456:30 [INFO] [stdout] | [INFO] [stdout] 456 | Err(e) => panic!(e), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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: `#[warn(non_fmt_panics)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 456 | Err(e) => panic!("{}", e), [INFO] [stdout] | +++++ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 456 - Err(e) => panic!(e), [INFO] [stdout] 456 + Err(e) => std::panic::panic_any(e), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> ollejer-chess/src/board.rs:462:30 [INFO] [stdout] | [INFO] [stdout] 462 | Err(e) => panic!(e), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 462 | Err(e) => panic!("{}", e), [INFO] [stdout] | +++++ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 462 - Err(e) => panic!(e), [INFO] [stdout] 462 + Err(e) => std::panic::panic_any(e), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling wayland-sys v0.28.6 [INFO] [stderr] Compiling x11-dl v2.19.1 [INFO] [stderr] Compiling alsa-sys v0.3.1 [INFO] [stderr] Compiling libudev-sys v0.1.4 [INFO] [stdout] warning: unused variable: `rook` [INFO] [stdout] --> ollejer-chess/src/board.rs:210:9 [INFO] [stdout] | [INFO] [stdout] 210 | rook: Piece, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rook` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `destination` [INFO] [stdout] --> ollejer-chess/src/board.rs:212:9 [INFO] [stdout] | [INFO] [stdout] 212 | destination: usize, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_destination` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `result` is assigned to, but never used [INFO] [stdout] --> ollejer-chess/src/board.rs:356:13 [INFO] [stdout] | [INFO] [stdout] 356 | let result: Result<(), &'static str>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_result` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `result` is never read [INFO] [stdout] --> ollejer-chess/src/board.rs:386:13 [INFO] [stdout] | [INFO] [stdout] 386 | result = Ok(()); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `result` is never read [INFO] [stdout] --> ollejer-chess/src/board.rs:372:13 [INFO] [stdout] | [INFO] [stdout] 372 | / result = match read_promotion() { [INFO] [stdout] 373 | | Ok(piece_type) => { [INFO] [stdout] 374 | | self.promote( [INFO] [stdout] 375 | | destination, [INFO] [stdout] ... | [INFO] [stdout] 383 | | Err(e) => return Err(e), [INFO] [stdout] 384 | | }; [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `result` is never read [INFO] [stdout] --> ollejer-chess/src/board.rs:358:13 [INFO] [stdout] | [INFO] [stdout] 358 | / result = match read_promotion() { [INFO] [stdout] 359 | | Ok(piece_type) => { [INFO] [stdout] 360 | | self.promote( [INFO] [stdout] 361 | | destination, [INFO] [stdout] ... | [INFO] [stdout] 369 | | Err(e) => return Err(e), [INFO] [stdout] 370 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `turn` [INFO] [stdout] --> ollejer-chess/src/board.rs:425:13 [INFO] [stdout] | [INFO] [stdout] 425 | let turn = match turn { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_turn` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking crossbeam-deque v0.8.1 [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> ollejer-chess/src/movement.rs:193:9 [INFO] [stdout] | [INFO] [stdout] 193 | _ => panic!("Error! Cant get move from unknown piece."), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> ollejer-chess/src/movement.rs:193:9 [INFO] [stdout] | [INFO] [stdout] 187 | Knight => get_knight_moves(position), [INFO] [stdout] | ------ matches some of the same values [INFO] [stdout] 188 | Bishop => get_bishop_moves(position), [INFO] [stdout] | ------ matches some of the same values [INFO] [stdout] 189 | Rook => get_rook_moves(position), [INFO] [stdout] | ---- matches some of the same values [INFO] [stdout] 190 | Queen => get_queen_moves(position), [INFO] [stdout] | ----- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 193 | _ => panic!("Error! Cant get move from unknown piece."), [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `largest` is never read [INFO] [stdout] --> ollejer-chess/src/rules.rs:271:27 [INFO] [stdout] | [INFO] [stdout] 271 | let mut largest = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `smallest` is never read [INFO] [stdout] --> ollejer-chess/src/rules.rs:272:28 [INFO] [stdout] | [INFO] [stdout] 272 | let mut smallest = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> ollejer-chess/src/rules.rs:337:9 [INFO] [stdout] | [INFO] [stdout] 337 | _ => panic!("Error! Cant get move from unknown piece."), //WARNING WTF IS THIS GHOST [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> ollejer-chess/src/rules.rs:337:9 [INFO] [stdout] | [INFO] [stdout] 331 | pieces::Pieces::Knight => validate_knight_moves(one_d_board, moves, position), [INFO] [stdout] | ---------------------- matches some of the same values [INFO] [stdout] 332 | pieces::Pieces::Queen => validate_queen_moves(one_d_board, moves, position), [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] 333 | pieces::Pieces::Rook => validate_rook_moves(one_d_board, moves, position), [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 334 | pieces::Pieces::Bishop => validate_bishop_moves(one_d_board, moves, position), [INFO] [stdout] | ---------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 337 | _ => panic!("Error! Cant get move from unknown piece."), //WARNING WTF IS THIS GHOST [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> ollejer-chess/src/rules.rs:410:5 [INFO] [stdout] | [INFO] [stdout] 410 | pos: usize, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `halfmove_clock` and `fullmove_clock` are never read [INFO] [stdout] --> ollejer-chess/src/board.rs:157:5 [INFO] [stdout] | [INFO] [stdout] 152 | pub struct OneDBoard { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 157 | halfmove_clock: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 158 | fullmove_clock: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OneDBoard` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_piece_UNSAFE` should have a snake case name [INFO] [stdout] --> ollejer-chess/src/board.rs:400:12 [INFO] [stdout] | [INFO] [stdout] 400 | pub fn set_piece_UNSAFE(&mut self, position: usize, piece: Option) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `set_piece_unsafe` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `new_from_FEN` should have a snake case name [INFO] [stdout] --> ollejer-chess/src/board.rs:418:12 [INFO] [stdout] | [INFO] [stdout] 418 | pub fn new_from_FEN(fen: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `new_from_fen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> ollejer-chess/src/board.rs:456:30 [INFO] [stdout] | [INFO] [stdout] 456 | Err(e) => panic!(e), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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: `#[warn(non_fmt_panics)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 456 | Err(e) => panic!("{}", e), [INFO] [stdout] | +++++ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 456 - Err(e) => panic!(e), [INFO] [stdout] 456 + Err(e) => std::panic::panic_any(e), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> ollejer-chess/src/board.rs:462:30 [INFO] [stdout] | [INFO] [stdout] 462 | Err(e) => panic!(e), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 462 | Err(e) => panic!("{}", e), [INFO] [stdout] | +++++ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 462 - Err(e) => panic!(e), [INFO] [stdout] 462 + Err(e) => std::panic::panic_any(e), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking termapp v0.1.0 (/opt/rustwide/workdir/termapp) [INFO] [stderr] Checking glam v0.17.3 [INFO] [stderr] Checking crossbeam v0.8.1 [INFO] [stderr] Checking lyon_path v0.17.7 [INFO] [stderr] Checking lewton v0.10.2 [INFO] [stderr] Checking nix v0.20.0 [INFO] [stderr] Checking parking_lot_core v0.8.5 [INFO] [stderr] Checking nix v0.18.0 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking memmap2 v0.1.0 [INFO] [stderr] Checking mio v0.7.13 [INFO] [stderr] Checking raw-window-handle v0.3.3 [INFO] [stderr] Checking shared_library v0.1.9 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking rayon-core v1.9.1 [INFO] [stderr] Checking osmesa-sys v0.1.2 [INFO] [stderr] Checking slice-deque v0.3.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking lyon_algorithms v0.17.6 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Checking lyon_tessellation v0.17.9 [INFO] [stderr] Checking rand v0.8.4 [INFO] [stderr] Checking mio-misc v1.2.1 [INFO] [stderr] Checking rayon v1.5.1 [INFO] [stderr] Checking dirs-sys v0.3.6 [INFO] [stderr] Compiling jobserver v0.1.24 [INFO] [stderr] Checking directories v3.0.2 [INFO] [stderr] Compiling cc v1.0.70 [INFO] [stderr] Checking lyon v0.17.5 [INFO] [stderr] Checking xcursor v0.3.4 [INFO] [stderr] Checking twox-hash v1.6.1 [INFO] [stderr] Compiling bzip2-sys v0.1.11+1.0.8 [INFO] [stderr] Compiling minimp3-sys v0.3.2 [INFO] [stderr] Compiling tempfile v3.2.0 [INFO] [stderr] Checking glutin_glx_sys v0.1.7 [INFO] [stderr] Checking bzip2 v0.4.3 [INFO] [stderr] Checking calloop v0.6.5 [INFO] [stderr] Checking glyph_brush_draw_cache v0.1.4 [INFO] [stderr] Checking glyph_brush v0.7.2 [INFO] [stderr] Checking wayland-commons v0.28.6 [INFO] [stderr] Checking alsa v0.5.0 [INFO] [stderr] Checking gilrs-core v0.3.1 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Compiling thiserror-impl v1.0.29 [INFO] [stderr] Compiling smart-default v0.6.0 [INFO] [stderr] Checking gilrs v0.8.1 [INFO] [stderr] Checking wayland-client v0.28.6 [INFO] [stderr] Checking thiserror v1.0.29 [INFO] [stderr] Checking minimp3 v0.5.1 [INFO] [stderr] Checking zip v0.5.13 [INFO] [stderr] Checking rodio v0.14.0 [INFO] [stderr] Checking wayland-protocols v0.28.6 [INFO] [stderr] Checking wayland-cursor v0.28.6 [INFO] [stderr] Checking wayland-egl v0.28.6 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Checking smithay-client-toolkit v0.12.3 [INFO] [stderr] Checking toml v0.5.8 [INFO] [stderr] Compiling cargo-platform v0.1.2 [INFO] [stderr] Compiling semver v0.11.0 [INFO] [stderr] Checking glutin v0.27.0 [INFO] [stderr] Compiling cargo_metadata v0.12.3 [INFO] [stderr] Checking old_school_gfx_glutin_ext v0.27.0 [INFO] [stderr] Compiling skeptic v0.13.6 [INFO] [stderr] Compiling ggez v0.6.1 [INFO] [stderr] Checking gui v0.1.0 (/opt/rustwide/workdir/gui) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 42.39s [INFO] running `Command { std: "docker" "inspect" "ecac44b555c9f70e0ab4df7de47b3b36a9d00929be6f37ca782251d89f90fc11", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ecac44b555c9f70e0ab4df7de47b3b36a9d00929be6f37ca782251d89f90fc11", kill_on_drop: false }` [INFO] [stdout] ecac44b555c9f70e0ab4df7de47b3b36a9d00929be6f37ca782251d89f90fc11