[INFO] cloning repository https://github.com/mariankay/chess-server [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mariankay/chess-server" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmariankay%2Fchess-server", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmariankay%2Fchess-server'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 45df3ffb41fe30441897d88327315ba6419376a2 [INFO] checking mariankay/chess-server against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmariankay%2Fchess-server" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mariankay/chess-server on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mariankay/chess-server [INFO] finished tweaking git repo https://github.com/mariankay/chess-server [INFO] tweaked toml for git repo https://github.com/mariankay/chess-server written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/mariankay/chess-server 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5174565db164c634c9572c1cdc7ff6f204c88d93f37a90c36646c88b02184519 [INFO] running `Command { std: "docker" "start" "-a" "5174565db164c634c9572c1cdc7ff6f204c88d93f37a90c36646c88b02184519", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5174565db164c634c9572c1cdc7ff6f204c88d93f37a90c36646c88b02184519", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5174565db164c634c9572c1cdc7ff6f204c88d93f37a90c36646c88b02184519", kill_on_drop: false }` [INFO] [stdout] 5174565db164c634c9572c1cdc7ff6f204c88d93f37a90c36646c88b02184519 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ceae08a9d53b88181ba8623ad95e4e1113a49f617c24532531043d29a943c695 [INFO] running `Command { std: "docker" "start" "-a" "ceae08a9d53b88181ba8623ad95e4e1113a49f617c24532531043d29a943c695", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.149 [INFO] [stderr] Compiling proc-macro2 v1.0.69 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling lock_api v0.4.10 [INFO] [stderr] Compiling parking_lot_core v0.9.8 [INFO] [stderr] Compiling rustix v0.38.19 [INFO] [stderr] Checking memchr v2.6.4 [INFO] [stderr] Checking bitflags v2.4.1 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Checking linux-raw-sys v0.4.10 [INFO] [stderr] Checking smallvec v1.11.1 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking termcolor v1.3.0 [INFO] [stderr] Checking bytes v1.5.0 [INFO] [stderr] Checking pin-project-lite v0.2.13 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Checking socket2 v0.5.4 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking mio v0.8.8 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Compiling syn v2.0.38 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking is-terminal v0.4.9 [INFO] [stderr] Checking regex-automata v0.4.3 [INFO] [stderr] Checking regex v1.10.2 [INFO] [stderr] Checking env_logger v0.10.0 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Checking tokio v1.33.0 [INFO] [stderr] Checking chess-server v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `bytes` [INFO] [stdout] --> src/net/buffer.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use bytes; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PlayerSideRequest` [INFO] [stdout] --> src/net/buffer.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | net::{PlayerSideRequest, *, frame::Frame}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Command`, `NewGame`, `Parameter` [INFO] [stdout] --> src/net/buffer.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | use super::{Command, NewGame, Parameter, BUF_LEN}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `BUF_LEN` is imported redundantly [INFO] [stdout] --> src/net/buffer.rs:13:42 [INFO] [stdout] | [INFO] [stdout] 7 | net::{PlayerSideRequest, *, frame::Frame}, [INFO] [stdout] | - the item `BUF_LEN` is already imported here [INFO] [stdout] ... [INFO] [stdout] 13 | use super::{Command, NewGame, Parameter, BUF_LEN}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncReadExt`, `AsyncWriteExt` [INFO] [stdout] --> src/net/connection.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use tokio::io::{AsyncReadExt, AsyncWriteExt}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::net::TcpStream` [INFO] [stdout] --> src/net/connection.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::net::TcpStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BUF_LEN`, `Command`, `NewGame` [INFO] [stdout] --> src/net/connection.rs:8:24 [INFO] [stdout] | [INFO] [stdout] 8 | use super::super::{Command, NewGame, BUF_LEN}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Connection` is imported redundantly [INFO] [stdout] --> src/net/client.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::net::connection::Connection::Connection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 5 | use crate::net::*; [INFO] [stdout] | ------------- the item `Connection` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Command` is imported redundantly [INFO] [stdout] --> src/net/client.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::net::Command; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 5 | use crate::net::*; [INFO] [stdout] | ------------- the item `Command` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `NewGame` is imported redundantly [INFO] [stdout] --> src/net/frame.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::net::NewGame; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 5 | use crate::net::*; [INFO] [stdout] | ------------- the item `NewGame` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `PlayerSideRequest` is imported redundantly [INFO] [stdout] --> src/net/frame.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::net::PlayerSideRequest; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 4 | use crate::net::Command; [INFO] [stdout] 5 | use crate::net::*; [INFO] [stdout] | ------------- the item `PlayerSideRequest` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Command` is imported redundantly [INFO] [stdout] --> src/net/frame.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::net::Command; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 5 | use crate::net::*; [INFO] [stdout] | ------------- the item `Command` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `BUF_LEN` is imported redundantly [INFO] [stdout] --> src/net/frame.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::net::*; [INFO] [stdout] | ------------- the item `BUF_LEN` is already imported here [INFO] [stdout] 6 | [INFO] [stdout] 7 | use super::BUF_LEN; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Parameter` is imported redundantly [INFO] [stdout] --> src/net/frame.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::net::*; [INFO] [stdout] | ------------- the item `Parameter` is already imported here [INFO] [stdout] ... [INFO] [stdout] 8 | use super::Parameter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `TcpListener` is imported redundantly [INFO] [stdout] --> src/net/server.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `TcpListener` is already imported here [INFO] [stdout] 2 | [INFO] [stdout] 3 | use tokio::net::TcpListener; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::net::TcpListener` [INFO] [stdout] --> src/net/mod.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use tokio::net::TcpListener; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tile` is imported redundantly [INFO] [stdout] --> src/pieces/knight.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::pieces::*; [INFO] [stdout] | ---------------- the item `Tile` is already imported here [INFO] [stdout] 2 | use crate::tile::Tile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tile` is imported redundantly [INFO] [stdout] --> src/pieces/rook.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::pieces::*; [INFO] [stdout] | ---------------- the item `Tile` is already imported here [INFO] [stdout] 2 | use crate::tile::Tile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `error`, `trace`, `warn` [INFO] [stdout] --> src/tile.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | use log::{debug, error, trace, warn}; [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bytes` [INFO] [stdout] --> src/net/buffer.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use bytes; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PlayerSideRequest` [INFO] [stdout] --> src/net/buffer.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | net::{PlayerSideRequest, *, frame::Frame}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Command`, `NewGame`, `Parameter` [INFO] [stdout] --> src/net/buffer.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | use super::{Command, NewGame, Parameter, BUF_LEN}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `BUF_LEN` is imported redundantly [INFO] [stdout] --> src/net/buffer.rs:13:42 [INFO] [stdout] | [INFO] [stdout] 7 | net::{PlayerSideRequest, *, frame::Frame}, [INFO] [stdout] | - the item `BUF_LEN` is already imported here [INFO] [stdout] ... [INFO] [stdout] 13 | use super::{Command, NewGame, Parameter, BUF_LEN}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncReadExt`, `AsyncWriteExt` [INFO] [stdout] --> src/net/connection.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use tokio::io::{AsyncReadExt, AsyncWriteExt}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::net::TcpStream` [INFO] [stdout] --> src/net/connection.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::net::TcpStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BUF_LEN`, `Command`, `NewGame` [INFO] [stdout] --> src/net/connection.rs:8:24 [INFO] [stdout] | [INFO] [stdout] 8 | use super::super::{Command, NewGame, BUF_LEN}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Connection` is imported redundantly [INFO] [stdout] --> src/net/client.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::net::connection::Connection::Connection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 5 | use crate::net::*; [INFO] [stdout] | ------------- the item `Connection` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Command` is imported redundantly [INFO] [stdout] --> src/net/client.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::net::Command; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 5 | use crate::net::*; [INFO] [stdout] | ------------- the item `Command` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `NewGame` is imported redundantly [INFO] [stdout] --> src/net/frame.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::net::NewGame; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 5 | use crate::net::*; [INFO] [stdout] | ------------- the item `NewGame` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `PlayerSideRequest` is imported redundantly [INFO] [stdout] --> src/net/frame.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::net::PlayerSideRequest; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 4 | use crate::net::Command; [INFO] [stdout] 5 | use crate::net::*; [INFO] [stdout] | ------------- the item `PlayerSideRequest` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Command` is imported redundantly [INFO] [stdout] --> src/net/frame.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::net::Command; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 5 | use crate::net::*; [INFO] [stdout] | ------------- the item `Command` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `BUF_LEN` is imported redundantly [INFO] [stdout] --> src/net/frame.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::net::*; [INFO] [stdout] | ------------- the item `BUF_LEN` is already imported here [INFO] [stdout] 6 | [INFO] [stdout] 7 | use super::BUF_LEN; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Parameter` is imported redundantly [INFO] [stdout] --> src/net/frame.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::net::*; [INFO] [stdout] | ------------- the item `Parameter` is already imported here [INFO] [stdout] ... [INFO] [stdout] 8 | use super::Parameter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `TcpListener` is imported redundantly [INFO] [stdout] --> src/net/server.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `TcpListener` is already imported here [INFO] [stdout] 2 | [INFO] [stdout] 3 | use tokio::net::TcpListener; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::net::TcpListener` [INFO] [stdout] --> src/net/mod.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use tokio::net::TcpListener; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tile` is imported redundantly [INFO] [stdout] --> src/pieces/knight.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::pieces::*; [INFO] [stdout] | ---------------- the item `Tile` is already imported here [INFO] [stdout] 2 | use crate::tile::Tile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tile` is imported redundantly [INFO] [stdout] --> src/pieces/rook.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::pieces::*; [INFO] [stdout] | ---------------- the item `Tile` is already imported here [INFO] [stdout] 2 | use crate::tile::Tile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `error`, `trace`, `warn` [INFO] [stdout] --> src/tile.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | use log::{debug, error, trace, warn}; [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/game.rs:128:25 [INFO] [stdout] | [INFO] [stdout] 128 | if let Some(p) = t { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/net/mod.rs:60:30 [INFO] [stdout] | [INFO] [stdout] 60 | Command::NewGame(c) => "New Game", [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/game.rs:128:25 [INFO] [stdout] | [INFO] [stdout] 128 | if let Some(p) = t { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [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:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let mut server = Server::new(); [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: method `get_fen` is never used [INFO] [stdout] --> src/game.rs:122:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Chess { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 122 | pub fn get_fen(&self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Response` is never constructed [INFO] [stdout] --> src/net/mod.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | struct Response { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Invalid` is never constructed [INFO] [stdout] --> src/net/mod.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 49 | pub enum Command { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 54 | Invalid = 0xFF, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Command` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Connection` should have a snake case name [INFO] [stdout] --> src/net/connection.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod Connection { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `connection` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/net/mod.rs:60:30 [INFO] [stdout] | [INFO] [stdout] 60 | Command::NewGame(c) => "New Game", [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let mut server = Server::new(); [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: method `get_fen` is never used [INFO] [stdout] --> src/game.rs:122:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Chess { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 122 | pub fn get_fen(&self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Response` is never constructed [INFO] [stdout] --> src/net/mod.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | struct Response { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Invalid` is never constructed [INFO] [stdout] --> src/net/mod.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 49 | pub enum Command { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 54 | Invalid = 0xFF, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Command` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Connection` should have a snake case name [INFO] [stdout] --> src/net/connection.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod Connection { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `connection` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.26s [INFO] running `Command { std: "docker" "inspect" "ceae08a9d53b88181ba8623ad95e4e1113a49f617c24532531043d29a943c695", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ceae08a9d53b88181ba8623ad95e4e1113a49f617c24532531043d29a943c695", kill_on_drop: false }` [INFO] [stdout] ceae08a9d53b88181ba8623ad95e4e1113a49f617c24532531043d29a943c695 [INFO] checking mariankay/chess-server against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmariankay%2Fchess-server" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mariankay/chess-server on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mariankay/chess-server [INFO] finished tweaking git repo https://github.com/mariankay/chess-server [INFO] tweaked toml for git repo https://github.com/mariankay/chess-server written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/mariankay/chess-server 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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 398aa7da516470326cb746871d9e7179fd377271b667effeaf98b34fcf06fe7f [INFO] running `Command { std: "docker" "start" "-a" "398aa7da516470326cb746871d9e7179fd377271b667effeaf98b34fcf06fe7f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "398aa7da516470326cb746871d9e7179fd377271b667effeaf98b34fcf06fe7f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "398aa7da516470326cb746871d9e7179fd377271b667effeaf98b34fcf06fe7f", kill_on_drop: false }` [INFO] [stdout] 398aa7da516470326cb746871d9e7179fd377271b667effeaf98b34fcf06fe7f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4dc45eef35bfbd8e20a3e2cc894c9064cdc5c5d3a5c19ff790f59d4c3e4827bd [INFO] running `Command { std: "docker" "start" "-a" "4dc45eef35bfbd8e20a3e2cc894c9064cdc5c5d3a5c19ff790f59d4c3e4827bd", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.149 [INFO] [stderr] Compiling proc-macro2 v1.0.69 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Checking memchr v2.6.4 [INFO] [stderr] Compiling rustix v0.38.19 [INFO] [stderr] Compiling parking_lot_core v0.9.8 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Checking smallvec v1.11.1 [INFO] [stderr] Checking linux-raw-sys v0.4.10 [INFO] [stderr] Checking bitflags v2.4.1 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking pin-project-lite v0.2.13 [INFO] [stderr] Checking bytes v1.5.0 [INFO] [stderr] Compiling lock_api v0.4.10 [INFO] [stderr] Checking termcolor v1.3.0 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Checking socket2 v0.5.4 [INFO] [stderr] Checking mio v0.8.8 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Compiling syn v2.0.38 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking is-terminal v0.4.9 [INFO] [stderr] Checking regex-automata v0.4.3 [INFO] [stderr] Checking regex v1.10.2 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Checking env_logger v0.10.0 [INFO] [stderr] Checking tokio v1.33.0 [INFO] [stderr] Checking chess-server v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `bytes` [INFO] [stdout] --> src/net/buffer.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use bytes; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PlayerSideRequest` [INFO] [stdout] --> src/net/buffer.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | net::{PlayerSideRequest, *, frame::Frame}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Command`, `NewGame`, `Parameter` [INFO] [stdout] --> src/net/buffer.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | use super::{Command, NewGame, Parameter, BUF_LEN}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `BUF_LEN` is imported redundantly [INFO] [stdout] --> src/net/buffer.rs:13:42 [INFO] [stdout] | [INFO] [stdout] 7 | net::{PlayerSideRequest, *, frame::Frame}, [INFO] [stdout] | - the item `BUF_LEN` is already imported here [INFO] [stdout] ... [INFO] [stdout] 13 | use super::{Command, NewGame, Parameter, BUF_LEN}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncReadExt`, `AsyncWriteExt` [INFO] [stdout] --> src/net/connection.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use tokio::io::{AsyncReadExt, AsyncWriteExt}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::net::TcpStream` [INFO] [stdout] --> src/net/connection.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::net::TcpStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BUF_LEN`, `Command`, `NewGame` [INFO] [stdout] --> src/net/connection.rs:8:24 [INFO] [stdout] | [INFO] [stdout] 8 | use super::super::{Command, NewGame, BUF_LEN}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Connection` is imported redundantly [INFO] [stdout] --> src/net/client.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::net::connection::Connection::Connection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 5 | use crate::net::*; [INFO] [stdout] | ------------- the item `Connection` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Command` is imported redundantly [INFO] [stdout] --> src/net/client.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::net::Command; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 5 | use crate::net::*; [INFO] [stdout] | ------------- the item `Command` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `NewGame` is imported redundantly [INFO] [stdout] --> src/net/frame.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::net::NewGame; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 5 | use crate::net::*; [INFO] [stdout] | ------------- the item `NewGame` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `PlayerSideRequest` is imported redundantly [INFO] [stdout] --> src/net/frame.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::net::PlayerSideRequest; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 4 | use crate::net::Command; [INFO] [stdout] 5 | use crate::net::*; [INFO] [stdout] | ------------- the item `PlayerSideRequest` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Command` is imported redundantly [INFO] [stdout] --> src/net/frame.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::net::Command; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 5 | use crate::net::*; [INFO] [stdout] | ------------- the item `Command` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `BUF_LEN` is imported redundantly [INFO] [stdout] --> src/net/frame.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::net::*; [INFO] [stdout] | ------------- the item `BUF_LEN` is already imported here [INFO] [stdout] 6 | [INFO] [stdout] 7 | use super::BUF_LEN; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Parameter` is imported redundantly [INFO] [stdout] --> src/net/frame.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::net::*; [INFO] [stdout] | ------------- the item `Parameter` is already imported here [INFO] [stdout] ... [INFO] [stdout] 8 | use super::Parameter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `TcpListener` is imported redundantly [INFO] [stdout] --> src/net/server.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `TcpListener` is already imported here [INFO] [stdout] 2 | [INFO] [stdout] 3 | use tokio::net::TcpListener; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::net::TcpListener` [INFO] [stdout] --> src/net/mod.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use tokio::net::TcpListener; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tile` is imported redundantly [INFO] [stdout] --> src/pieces/knight.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::pieces::*; [INFO] [stdout] | ---------------- the item `Tile` is already imported here [INFO] [stdout] 2 | use crate::tile::Tile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tile` is imported redundantly [INFO] [stdout] --> src/pieces/rook.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::pieces::*; [INFO] [stdout] | ---------------- the item `Tile` is already imported here [INFO] [stdout] 2 | use crate::tile::Tile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `error`, `trace`, `warn` [INFO] [stdout] --> src/tile.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | use log::{debug, error, trace, warn}; [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bytes` [INFO] [stdout] --> src/net/buffer.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use bytes; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PlayerSideRequest` [INFO] [stdout] --> src/net/buffer.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | net::{PlayerSideRequest, *, frame::Frame}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Command`, `NewGame`, `Parameter` [INFO] [stdout] --> src/net/buffer.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | use super::{Command, NewGame, Parameter, BUF_LEN}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `BUF_LEN` is imported redundantly [INFO] [stdout] --> src/net/buffer.rs:13:42 [INFO] [stdout] | [INFO] [stdout] 7 | net::{PlayerSideRequest, *, frame::Frame}, [INFO] [stdout] | - the item `BUF_LEN` is already imported here [INFO] [stdout] ... [INFO] [stdout] 13 | use super::{Command, NewGame, Parameter, BUF_LEN}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncReadExt`, `AsyncWriteExt` [INFO] [stdout] --> src/net/connection.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use tokio::io::{AsyncReadExt, AsyncWriteExt}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::net::TcpStream` [INFO] [stdout] --> src/net/connection.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::net::TcpStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BUF_LEN`, `Command`, `NewGame` [INFO] [stdout] --> src/net/connection.rs:8:24 [INFO] [stdout] | [INFO] [stdout] 8 | use super::super::{Command, NewGame, BUF_LEN}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Connection` is imported redundantly [INFO] [stdout] --> src/net/client.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::net::connection::Connection::Connection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 5 | use crate::net::*; [INFO] [stdout] | ------------- the item `Connection` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Command` is imported redundantly [INFO] [stdout] --> src/net/client.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::net::Command; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 5 | use crate::net::*; [INFO] [stdout] | ------------- the item `Command` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `NewGame` is imported redundantly [INFO] [stdout] --> src/net/frame.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::net::NewGame; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 5 | use crate::net::*; [INFO] [stdout] | ------------- the item `NewGame` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `PlayerSideRequest` is imported redundantly [INFO] [stdout] --> src/net/frame.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::net::PlayerSideRequest; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 4 | use crate::net::Command; [INFO] [stdout] 5 | use crate::net::*; [INFO] [stdout] | ------------- the item `PlayerSideRequest` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Command` is imported redundantly [INFO] [stdout] --> src/net/frame.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::net::Command; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 5 | use crate::net::*; [INFO] [stdout] | ------------- the item `Command` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `BUF_LEN` is imported redundantly [INFO] [stdout] --> src/net/frame.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::net::*; [INFO] [stdout] | ------------- the item `BUF_LEN` is already imported here [INFO] [stdout] 6 | [INFO] [stdout] 7 | use super::BUF_LEN; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Parameter` is imported redundantly [INFO] [stdout] --> src/net/frame.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::net::*; [INFO] [stdout] | ------------- the item `Parameter` is already imported here [INFO] [stdout] ... [INFO] [stdout] 8 | use super::Parameter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `TcpListener` is imported redundantly [INFO] [stdout] --> src/net/server.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `TcpListener` is already imported here [INFO] [stdout] 2 | [INFO] [stdout] 3 | use tokio::net::TcpListener; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::net::TcpListener` [INFO] [stdout] --> src/net/mod.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use tokio::net::TcpListener; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tile` is imported redundantly [INFO] [stdout] --> src/pieces/knight.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::pieces::*; [INFO] [stdout] | ---------------- the item `Tile` is already imported here [INFO] [stdout] 2 | use crate::tile::Tile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Tile` is imported redundantly [INFO] [stdout] --> src/pieces/rook.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::pieces::*; [INFO] [stdout] | ---------------- the item `Tile` is already imported here [INFO] [stdout] 2 | use crate::tile::Tile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `error`, `trace`, `warn` [INFO] [stdout] --> src/tile.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | use log::{debug, error, trace, warn}; [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/game.rs:128:25 [INFO] [stdout] | [INFO] [stdout] 128 | if let Some(p) = t { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/net/mod.rs:60:30 [INFO] [stdout] | [INFO] [stdout] 60 | Command::NewGame(c) => "New Game", [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let mut server = Server::new(); [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: method `get_fen` is never used [INFO] [stdout] --> src/game.rs:122:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Chess { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 122 | pub fn get_fen(&self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Response` is never constructed [INFO] [stdout] --> src/net/mod.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | struct Response { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Invalid` is never constructed [INFO] [stdout] --> src/net/mod.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 49 | pub enum Command { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 54 | Invalid = 0xFF, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Command` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Connection` should have a snake case name [INFO] [stdout] --> src/net/connection.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod Connection { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `connection` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/game.rs:128:25 [INFO] [stdout] | [INFO] [stdout] 128 | if let Some(p) = t { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/net/mod.rs:60:30 [INFO] [stdout] | [INFO] [stdout] 60 | Command::NewGame(c) => "New Game", [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let mut server = Server::new(); [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: method `get_fen` is never used [INFO] [stdout] --> src/game.rs:122:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Chess { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 122 | pub fn get_fen(&self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Response` is never constructed [INFO] [stdout] --> src/net/mod.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | struct Response { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Invalid` is never constructed [INFO] [stdout] --> src/net/mod.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 49 | pub enum Command { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 54 | Invalid = 0xFF, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Command` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Connection` should have a snake case name [INFO] [stdout] --> src/net/connection.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod Connection { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `connection` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.37s [INFO] running `Command { std: "docker" "inspect" "4dc45eef35bfbd8e20a3e2cc894c9064cdc5c5d3a5c19ff790f59d4c3e4827bd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4dc45eef35bfbd8e20a3e2cc894c9064cdc5c5d3a5c19ff790f59d4c3e4827bd", kill_on_drop: false }` [INFO] [stdout] 4dc45eef35bfbd8e20a3e2cc894c9064cdc5c5d3a5c19ff790f59d4c3e4827bd