[INFO] cloning repository https://github.com/rishavchakra/Chess [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rishavchakra/Chess" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frishavchakra%2FChess", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frishavchakra%2FChess'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fec0d98ed97aa4482872ff295d241b8c046417e5 [INFO] testing rishavchakra/Chess against master#99e3aef02079e9c10583638520cd0c134dc3a01d for pr-85530 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frishavchakra%2FChess" "/workspace/builds/worker-8/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/rishavchakra/Chess on toolchain 99e3aef02079e9c10583638520cd0c134dc3a01d [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/rishavchakra/Chess [INFO] finished tweaking git repo https://github.com/rishavchakra/Chess [INFO] tweaked toml for git repo https://github.com/rishavchakra/Chess written to /workspace/builds/worker-8/source/Cargo.toml [INFO] crate git repo https://github.com/rishavchakra/Chess already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 83be5e2d70105337bafa8d38e91603c0d244fc1e3a5e87cf3b7a080bcf1c682c [INFO] running `Command { std: "docker" "start" "-a" "83be5e2d70105337bafa8d38e91603c0d244fc1e3a5e87cf3b7a080bcf1c682c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "83be5e2d70105337bafa8d38e91603c0d244fc1e3a5e87cf3b7a080bcf1c682c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "83be5e2d70105337bafa8d38e91603c0d244fc1e3a5e87cf3b7a080bcf1c682c", kill_on_drop: false }` [INFO] [stdout] 83be5e2d70105337bafa8d38e91603c0d244fc1e3a5e87cf3b7a080bcf1c682c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] aaf5024c26828b41d4ecf8cdead274ffee2c8c81a0cd59ff7d629a0ad2986e02 [INFO] running `Command { std: "docker" "start" "-a" "aaf5024c26828b41d4ecf8cdead274ffee2c8c81a0cd59ff7d629a0ad2986e02", kill_on_drop: false }` [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling libc v0.2.89 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling khronos_api v3.1.0 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling ttf-parser v0.6.2 [INFO] [stderr] Compiling piston-float v1.0.0 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling once_cell v1.7.2 [INFO] [stderr] Compiling downcast-rs v1.2.0 [INFO] [stderr] Compiling syn v1.0.64 [INFO] [stderr] Compiling scoped-tls v1.0.0 [INFO] [stderr] Compiling ab_glyph_rasterizer v0.1.4 [INFO] [stderr] Compiling serde_derive v1.0.124 [INFO] [stderr] Compiling nix v0.18.0 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Compiling adler32 v1.2.0 [INFO] [stderr] Compiling piston-graphics_api_version v1.0.0 [INFO] [stderr] Compiling xdg v2.2.0 [INFO] [stderr] Compiling weezl v0.1.4 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling slab v0.4.2 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stderr] Compiling piston-texture v0.8.0 [INFO] [stderr] Compiling bytemuck v1.5.1 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling read_color v1.0.0 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling interpolation v0.2.0 [INFO] [stderr] Compiling piston-shaders_graphics2d v0.4.0 [INFO] [stderr] Compiling regex-syntax v0.6.23 [INFO] [stderr] Compiling nom v6.1.2 [INFO] [stderr] Compiling libloading v0.7.0 [INFO] [stderr] Compiling libloading v0.6.7 [INFO] [stderr] Compiling instant v0.1.9 [INFO] [stderr] Compiling lock_api v0.4.2 [INFO] [stderr] Compiling miniz_oxide v0.3.7 [INFO] [stderr] Compiling shader_version v0.7.0 [INFO] [stderr] Compiling piston-viewport v1.0.0 [INFO] [stderr] Compiling vecmath v1.0.0 [INFO] [stderr] Compiling serde v1.0.124 [INFO] [stderr] Compiling gif v0.11.1 [INFO] [stderr] Compiling deflate v0.8.6 [INFO] [stderr] Compiling dlib v0.5.0 [INFO] [stderr] Compiling dlib v0.4.2 [INFO] [stderr] Compiling draw_state v0.8.0 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Compiling gl_generator v0.13.1 [INFO] [stderr] Compiling crossbeam-utils v0.8.3 [INFO] [stderr] Compiling memoffset v0.6.1 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling rayon v1.5.0 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling aho-corasick v0.7.15 [INFO] [stderr] Compiling wayland-sys v0.28.5 [INFO] [stderr] Compiling x11-dl v2.18.5 [INFO] [stderr] Compiling gfx_core v0.9.2 [INFO] [stderr] Compiling png v0.16.8 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling crossbeam-epoch v0.9.3 [INFO] [stderr] Compiling crossbeam-channel v0.5.0 [INFO] [stderr] Compiling owned_ttf_parser v0.6.0 [INFO] [stderr] Compiling wayland-scanner v0.28.5 [INFO] [stderr] Compiling rusttype v0.9.2 [INFO] [stderr] Compiling crossbeam-deque v0.8.0 [INFO] [stderr] Compiling andrew v0.3.1 [INFO] [stderr] Compiling piston2d-graphics v0.39.0 [INFO] [stderr] Compiling gl v0.13.0 [INFO] [stderr] Compiling glutin_egl_sys v0.1.5 [INFO] [stderr] Compiling glutin_glx_sys v0.1.7 [INFO] [stderr] Compiling gfx_gl v0.6.1 [INFO] [stderr] Compiling regex v1.4.5 [INFO] [stderr] Compiling gfx v0.18.2 [INFO] [stderr] Compiling xcursor v0.3.3 [INFO] [stderr] Compiling wayland-client v0.28.5 [INFO] [stderr] Compiling wayland-protocols v0.28.5 [INFO] [stderr] Compiling nix v0.20.0 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling net2 v0.2.37 [INFO] [stderr] Compiling memmap2 v0.1.0 [INFO] [stderr] Compiling parking_lot_core v0.8.3 [INFO] [stderr] Compiling shared_library v0.1.9 [INFO] [stderr] Compiling raw-window-handle v0.3.3 [INFO] [stderr] Compiling osmesa-sys v0.1.2 [INFO] [stderr] Compiling rayon-core v1.9.0 [INFO] [stderr] Compiling rand_core v0.6.2 [INFO] [stderr] Compiling mio v0.6.23 [INFO] [stderr] Compiling parking_lot v0.11.1 [INFO] [stderr] Compiling rand_chacha v0.3.0 [INFO] [stderr] Compiling rand v0.8.3 [INFO] [stderr] Compiling mio-extras v2.0.6 [INFO] [stderr] Compiling calloop v0.6.5 [INFO] [stderr] Compiling jpeg-decoder v0.1.22 [INFO] [stderr] Compiling gfx_device_gl v0.16.2 [INFO] [stderr] Compiling tiff v0.6.1 [INFO] [stderr] Compiling wayland-commons v0.28.5 [INFO] [stderr] Compiling image v0.23.14 [INFO] [stderr] Compiling wayland-cursor v0.28.5 [INFO] [stderr] Compiling wayland-egl v0.28.5 [INFO] [stderr] Compiling pistoncore-input v1.0.0 [INFO] [stderr] Compiling piston-gfx_texture v0.41.0 [INFO] [stderr] Compiling piston2d-gfx_graphics v0.72.0 [INFO] [stderr] Compiling pistoncore-window v0.47.0 [INFO] [stderr] Compiling smithay-client-toolkit v0.12.3 [INFO] [stderr] Compiling pistoncore-event_loop v0.52.0 [INFO] [stderr] Compiling piston v0.52.1 [INFO] [stderr] Compiling winit v0.24.0 [INFO] [stderr] Compiling glutin v0.26.0 [INFO] [stderr] Compiling pistoncore-glutin_window v0.68.2 [INFO] [stderr] Compiling piston_window v0.117.0 [INFO] [stderr] Compiling Chess v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `startpiece` [INFO] [stdout] --> src/chess/board.rs:90:7 [INFO] [stdout] | [INFO] [stdout] 90 | let startpiece: &Piece = &self.board[frompos]; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_startpiece` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/gui.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | while let Some(e) = window.next() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Piece` [INFO] [stdout] --> src/chess/piece.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Piece { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `PAWN` [INFO] [stdout] --> src/chess/piece.rs:6:2 [INFO] [stdout] | [INFO] [stdout] 6 | const PAWN: u8 = 0b00000001; // 1 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `KNIGHT` [INFO] [stdout] --> src/chess/piece.rs:7:2 [INFO] [stdout] | [INFO] [stdout] 7 | const KNIGHT:u8= 0b00000010; // 2 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `BISHOP` [INFO] [stdout] --> src/chess/piece.rs:8:2 [INFO] [stdout] | [INFO] [stdout] 8 | const BISHOP:u8= 0b00000011; // 3 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `ROOK` [INFO] [stdout] --> src/chess/piece.rs:9:2 [INFO] [stdout] | [INFO] [stdout] 9 | const ROOK: u8 = 0b00000100; // 4 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `QUEEN` [INFO] [stdout] --> src/chess/piece.rs:10:2 [INFO] [stdout] | [INFO] [stdout] 10 | const QUEEN: u8= 0b00000101; // 5 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `KING` [INFO] [stdout] --> src/chess/piece.rs:11:2 [INFO] [stdout] | [INFO] [stdout] 11 | const KING: u8 = 0b00000110; // 6 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `WHITE` [INFO] [stdout] --> src/chess/piece.rs:12:2 [INFO] [stdout] | [INFO] [stdout] 12 | const WHITE:u8 = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `BIT_PIECE` [INFO] [stdout] --> src/chess/piece.rs:14:2 [INFO] [stdout] | [INFO] [stdout] 14 | const BIT_PIECE: u8 = 0b00000111; // First three bits [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `BIT_COLOR` [INFO] [stdout] --> src/chess/piece.rs:15:2 [INFO] [stdout] | [INFO] [stdout] 15 | const BIT_COLOR: u8 = 0b00001000; // Fourth bit [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `BIT_PAWN` [INFO] [stdout] --> src/chess/piece.rs:16:2 [INFO] [stdout] | [INFO] [stdout] 16 | const BIT_PAWN: u8 = 0b00010000; // Fifth bit [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `BIT_CASTLE` [INFO] [stdout] --> src/chess/piece.rs:17:2 [INFO] [stdout] | [INFO] [stdout] 17 | const BIT_CASTLE:u8 = 0b00100000; // Sixth bit [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `NAMES_SHORT` [INFO] [stdout] --> src/chess/piece.rs:19:2 [INFO] [stdout] | [INFO] [stdout] 19 | const NAMES_SHORT: [char; 7] = [' ', 'p', 'n', 'b', 'r', 'q', 'k']; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `NAMES` [INFO] [stdout] --> src/chess/piece.rs:20:2 [INFO] [stdout] | [INFO] [stdout] 20 | const NAMES: [&'static str; 7] = ["", "pawn", "knight", "bishop", "rook", "queen", "king"]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `class` [INFO] [stdout] --> src/chess/piece.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn class(&self) -> u8 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_white` [INFO] [stdout] --> src/chess/piece.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn is_white(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_allied` [INFO] [stdout] --> src/chess/piece.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn is_allied(&self, other: &Piece) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `name` [INFO] [stdout] --> src/chess/piece.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn name(&self) -> &'static str { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `name_short` [INFO] [stdout] --> src/chess/piece.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn name_short(&self) -> char { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/chess/piece.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn new(class: char) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_long` [INFO] [stdout] --> src/chess/piece.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn new_long(class: &str) -> Piece { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `can_castle` [INFO] [stdout] --> src/chess/piece.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn can_castle(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `poss_moves` [INFO] [stdout] --> src/chess/piece.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn poss_moves(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `moves_line` [INFO] [stdout] --> src/chess/piece.rs:98:9 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn moves_line(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Chessboard` [INFO] [stdout] --> src/chess/board.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Chessboard { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `FEN_START` [INFO] [stdout] --> src/chess/board.rs:17:2 [INFO] [stdout] | [INFO] [stdout] 17 | const FEN_START:&'static str = "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/chess/board.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn new(&mut self) -> &mut Chessboard { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_fen` [INFO] [stdout] --> src/chess/board.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn set_fen(&mut self, fen_str: &str) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cull_moves` [INFO] [stdout] --> src/chess/board.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | fn cull_moves(&self, pos: i8, poss_moves: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `move_piece` [INFO] [stdout] --> src/chess/board.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn move_piece(&mut self, frompos: usize, topos: usize) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `Chess` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `chess` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 41s [INFO] running `Command { std: "docker" "inspect" "aaf5024c26828b41d4ecf8cdead274ffee2c8c81a0cd59ff7d629a0ad2986e02", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aaf5024c26828b41d4ecf8cdead274ffee2c8c81a0cd59ff7d629a0ad2986e02", kill_on_drop: false }` [INFO] [stdout] aaf5024c26828b41d4ecf8cdead274ffee2c8c81a0cd59ff7d629a0ad2986e02 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 23a9b12aff3d78d39d0f1f251a511e4d183d38e409a468e035bc089e25533b3e [INFO] running `Command { std: "docker" "start" "-a" "23a9b12aff3d78d39d0f1f251a511e4d183d38e409a468e035bc089e25533b3e", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling Chess v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `startpiece` [INFO] [stdout] --> src/chess/board.rs:90:7 [INFO] [stdout] | [INFO] [stdout] 90 | let startpiece: &Piece = &self.board[frompos]; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_startpiece` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/gui.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | while let Some(e) = window.next() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Piece` [INFO] [stdout] --> src/chess/piece.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Piece { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `PAWN` [INFO] [stdout] --> src/chess/piece.rs:6:2 [INFO] [stdout] | [INFO] [stdout] 6 | const PAWN: u8 = 0b00000001; // 1 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `KNIGHT` [INFO] [stdout] --> src/chess/piece.rs:7:2 [INFO] [stdout] | [INFO] [stdout] 7 | const KNIGHT:u8= 0b00000010; // 2 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `BISHOP` [INFO] [stdout] --> src/chess/piece.rs:8:2 [INFO] [stdout] | [INFO] [stdout] 8 | const BISHOP:u8= 0b00000011; // 3 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `ROOK` [INFO] [stdout] --> src/chess/piece.rs:9:2 [INFO] [stdout] | [INFO] [stdout] 9 | const ROOK: u8 = 0b00000100; // 4 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `QUEEN` [INFO] [stdout] --> src/chess/piece.rs:10:2 [INFO] [stdout] | [INFO] [stdout] 10 | const QUEEN: u8= 0b00000101; // 5 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `KING` [INFO] [stdout] --> src/chess/piece.rs:11:2 [INFO] [stdout] | [INFO] [stdout] 11 | const KING: u8 = 0b00000110; // 6 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `WHITE` [INFO] [stdout] --> src/chess/piece.rs:12:2 [INFO] [stdout] | [INFO] [stdout] 12 | const WHITE:u8 = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `BIT_PIECE` [INFO] [stdout] --> src/chess/piece.rs:14:2 [INFO] [stdout] | [INFO] [stdout] 14 | const BIT_PIECE: u8 = 0b00000111; // First three bits [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `BIT_COLOR` [INFO] [stdout] --> src/chess/piece.rs:15:2 [INFO] [stdout] | [INFO] [stdout] 15 | const BIT_COLOR: u8 = 0b00001000; // Fourth bit [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `BIT_PAWN` [INFO] [stdout] --> src/chess/piece.rs:16:2 [INFO] [stdout] | [INFO] [stdout] 16 | const BIT_PAWN: u8 = 0b00010000; // Fifth bit [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `BIT_CASTLE` [INFO] [stdout] --> src/chess/piece.rs:17:2 [INFO] [stdout] | [INFO] [stdout] 17 | const BIT_CASTLE:u8 = 0b00100000; // Sixth bit [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `NAMES_SHORT` [INFO] [stdout] --> src/chess/piece.rs:19:2 [INFO] [stdout] | [INFO] [stdout] 19 | const NAMES_SHORT: [char; 7] = [' ', 'p', 'n', 'b', 'r', 'q', 'k']; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `NAMES` [INFO] [stdout] --> src/chess/piece.rs:20:2 [INFO] [stdout] | [INFO] [stdout] 20 | const NAMES: [&'static str; 7] = ["", "pawn", "knight", "bishop", "rook", "queen", "king"]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `class` [INFO] [stdout] --> src/chess/piece.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn class(&self) -> u8 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_white` [INFO] [stdout] --> src/chess/piece.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn is_white(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_allied` [INFO] [stdout] --> src/chess/piece.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn is_allied(&self, other: &Piece) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `name` [INFO] [stdout] --> src/chess/piece.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn name(&self) -> &'static str { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `name_short` [INFO] [stdout] --> src/chess/piece.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn name_short(&self) -> char { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/chess/piece.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn new(class: char) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_long` [INFO] [stdout] --> src/chess/piece.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn new_long(class: &str) -> Piece { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `can_castle` [INFO] [stdout] --> src/chess/piece.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn can_castle(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `poss_moves` [INFO] [stdout] --> src/chess/piece.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn poss_moves(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `moves_line` [INFO] [stdout] --> src/chess/piece.rs:98:9 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn moves_line(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Chessboard` [INFO] [stdout] --> src/chess/board.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Chessboard { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `FEN_START` [INFO] [stdout] --> src/chess/board.rs:17:2 [INFO] [stdout] | [INFO] [stdout] 17 | const FEN_START:&'static str = "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/chess/board.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn new(&mut self) -> &mut Chessboard { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_fen` [INFO] [stdout] --> src/chess/board.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn set_fen(&mut self, fen_str: &str) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cull_moves` [INFO] [stdout] --> src/chess/board.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | fn cull_moves(&self, pos: i8, poss_moves: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `move_piece` [INFO] [stdout] --> src/chess/board.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn move_piece(&mut self, frompos: usize, topos: usize) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `Chess` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `chess` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 28.16s [INFO] running `Command { std: "docker" "inspect" "23a9b12aff3d78d39d0f1f251a511e4d183d38e409a468e035bc089e25533b3e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "23a9b12aff3d78d39d0f1f251a511e4d183d38e409a468e035bc089e25533b3e", kill_on_drop: false }` [INFO] [stdout] 23a9b12aff3d78d39d0f1f251a511e4d183d38e409a468e035bc089e25533b3e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 7254fe945eb2ec7b7537e7d5e3f721b8fac16375709b9ba239d90aafb39a597a [INFO] running `Command { std: "docker" "start" "-a" "7254fe945eb2ec7b7537e7d5e3f721b8fac16375709b9ba239d90aafb39a597a", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] warning: unused variable: `startpiece` [INFO] [stderr] --> src/chess/board.rs:90:7 [INFO] [stderr] | [INFO] [stderr] 90 | let startpiece: &Piece = &self.board[frompos]; [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_startpiece` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/gui.rs:5:17 [INFO] [stderr] | [INFO] [stderr] 5 | while let Some(e) = window.next() { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Piece` [INFO] [stderr] --> src/chess/piece.rs:1:12 [INFO] [stderr] | [INFO] [stderr] 1 | pub struct Piece { [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `PAWN` [INFO] [stderr] --> src/chess/piece.rs:6:2 [INFO] [stderr] | [INFO] [stderr] 6 | const PAWN: u8 = 0b00000001; // 1 [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `KNIGHT` [INFO] [stderr] --> src/chess/piece.rs:7:2 [INFO] [stderr] | [INFO] [stderr] 7 | const KNIGHT:u8= 0b00000010; // 2 [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `BISHOP` [INFO] [stderr] --> src/chess/piece.rs:8:2 [INFO] [stderr] | [INFO] [stderr] 8 | const BISHOP:u8= 0b00000011; // 3 [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `ROOK` [INFO] [stderr] --> src/chess/piece.rs:9:2 [INFO] [stderr] | [INFO] [stderr] 9 | const ROOK: u8 = 0b00000100; // 4 [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `QUEEN` [INFO] [stderr] --> src/chess/piece.rs:10:2 [INFO] [stderr] | [INFO] [stderr] 10 | const QUEEN: u8= 0b00000101; // 5 [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `KING` [INFO] [stderr] --> src/chess/piece.rs:11:2 [INFO] [stderr] | [INFO] [stderr] 11 | const KING: u8 = 0b00000110; // 6 [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `WHITE` [INFO] [stderr] --> src/chess/piece.rs:12:2 [INFO] [stderr] | [INFO] [stderr] 12 | const WHITE:u8 = 1; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `BIT_PIECE` [INFO] [stderr] --> src/chess/piece.rs:14:2 [INFO] [stderr] | [INFO] [stderr] 14 | const BIT_PIECE: u8 = 0b00000111; // First three bits [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `BIT_COLOR` [INFO] [stderr] --> src/chess/piece.rs:15:2 [INFO] [stderr] | [INFO] [stderr] 15 | const BIT_COLOR: u8 = 0b00001000; // Fourth bit [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `BIT_PAWN` [INFO] [stderr] --> src/chess/piece.rs:16:2 [INFO] [stderr] | [INFO] [stderr] 16 | const BIT_PAWN: u8 = 0b00010000; // Fifth bit [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `BIT_CASTLE` [INFO] [stderr] --> src/chess/piece.rs:17:2 [INFO] [stderr] | [INFO] [stderr] 17 | const BIT_CASTLE:u8 = 0b00100000; // Sixth bit [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `NAMES_SHORT` [INFO] [stderr] --> src/chess/piece.rs:19:2 [INFO] [stderr] | [INFO] [stderr] 19 | const NAMES_SHORT: [char; 7] = [' ', 'p', 'n', 'b', 'r', 'q', 'k']; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `NAMES` [INFO] [stderr] --> src/chess/piece.rs:20:2 [INFO] [stderr] | [INFO] [stderr] 20 | const NAMES: [&'static str; 7] = ["", "pawn", "knight", "bishop", "rook", "queen", "king"]; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `class` [INFO] [stderr] --> src/chess/piece.rs:23:9 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn class(&self) -> u8 { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `is_white` [INFO] [stderr] --> src/chess/piece.rs:28:9 [INFO] [stderr] | [INFO] [stderr] 28 | pub fn is_white(&self) -> bool { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `is_allied` [INFO] [stderr] --> src/chess/piece.rs:33:9 [INFO] [stderr] | [INFO] [stderr] 33 | pub fn is_allied(&self, other: &Piece) -> bool { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `name` [INFO] [stderr] --> src/chess/piece.rs:38:9 [INFO] [stderr] | [INFO] [stderr] 38 | pub fn name(&self) -> &'static str { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `name_short` [INFO] [stderr] --> src/chess/piece.rs:43:9 [INFO] [stderr] | [INFO] [stderr] 43 | pub fn name_short(&self) -> char { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/chess/piece.rs:48:9 [INFO] [stderr] | [INFO] [stderr] 48 | pub fn new(class: char) -> Option { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new_long` [INFO] [stderr] --> src/chess/piece.rs:60:9 [INFO] [stderr] | [INFO] [stderr] 60 | pub fn new_long(class: &str) -> Piece { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `can_castle` [INFO] [stderr] --> src/chess/piece.rs:70:9 [INFO] [stderr] | [INFO] [stderr] 70 | pub fn can_castle(&self) -> Option { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `poss_moves` [INFO] [stderr] --> src/chess/piece.rs:81:9 [INFO] [stderr] | [INFO] [stderr] 81 | pub fn poss_moves(&self) -> Vec { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `moves_line` [INFO] [stderr] --> src/chess/piece.rs:98:9 [INFO] [stderr] | [INFO] [stderr] 98 | pub fn moves_line(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Chessboard` [INFO] [stderr] --> src/chess/board.rs:5:8 [INFO] [stderr] | [INFO] [stderr] 5 | struct Chessboard { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `FEN_START` [INFO] [stderr] --> src/chess/board.rs:17:2 [INFO] [stderr] | [INFO] [stderr] 17 | const FEN_START:&'static str = "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/chess/board.rs:19:9 [INFO] [stderr] | [INFO] [stderr] 19 | pub fn new(&mut self) -> &mut Chessboard { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `set_fen` [INFO] [stderr] --> src/chess/board.rs:26:9 [INFO] [stderr] | [INFO] [stderr] 26 | pub fn set_fen(&mut self, fen_str: &str) { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `cull_moves` [INFO] [stderr] --> src/chess/board.rs:70:5 [INFO] [stderr] | [INFO] [stderr] 70 | fn cull_moves(&self, pos: i8, poss_moves: &mut Vec) { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `move_piece` [INFO] [stderr] --> src/chess/board.rs:83:9 [INFO] [stderr] | [INFO] [stderr] 83 | pub fn move_piece(&mut self, frompos: usize, topos: usize) { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: crate `Chess` should have a snake case name [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] = help: convert the identifier to snake case: `chess` [INFO] [stderr] [INFO] [stderr] warning: 33 warnings emitted [INFO] [stderr] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 12.22s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/Chess-bf52f0ddd975e901) [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" "7254fe945eb2ec7b7537e7d5e3f721b8fac16375709b9ba239d90aafb39a597a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7254fe945eb2ec7b7537e7d5e3f721b8fac16375709b9ba239d90aafb39a597a", kill_on_drop: false }` [INFO] [stdout] 7254fe945eb2ec7b7537e7d5e3f721b8fac16375709b9ba239d90aafb39a597a