[INFO] cloning repository https://github.com/Lila-Kuhlt/Tonk [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Lila-Kuhlt/Tonk" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLila-Kuhlt%2FTonk", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLila-Kuhlt%2FTonk'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bf9226cb74a99597189b3c7147fc188895c95020 [INFO] checking Lila-Kuhlt/Tonk against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLila-Kuhlt%2FTonk" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Lila-Kuhlt/Tonk 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/Lila-Kuhlt/Tonk [INFO] finished tweaking git repo https://github.com/Lila-Kuhlt/Tonk [INFO] tweaked toml for git repo https://github.com/Lila-Kuhlt/Tonk written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Lila-Kuhlt/Tonk 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] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 11 packages [INFO] [stderr] Adding futures v0.3.30 [INFO] [stderr] Adding futures-channel v0.3.30 [INFO] [stderr] Adding futures-core v0.3.30 [INFO] [stderr] Adding futures-executor v0.3.30 [INFO] [stderr] Adding futures-io v0.3.30 [INFO] [stderr] Adding futures-macro v0.3.30 [INFO] [stderr] Adding futures-sink v0.3.30 [INFO] [stderr] Adding futures-task v0.3.30 [INFO] [stderr] Adding futures-util v0.3.30 [INFO] [stderr] Adding pin-utils v0.1.0 [INFO] [stderr] Adding slab v0.4.9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] cf7f68bb84fccfe5056d029feff4f672d7472e50c57fd46b1fa59896df0fae44 [INFO] running `Command { std: "docker" "start" "-a" "cf7f68bb84fccfe5056d029feff4f672d7472e50c57fd46b1fa59896df0fae44", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cf7f68bb84fccfe5056d029feff4f672d7472e50c57fd46b1fa59896df0fae44", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cf7f68bb84fccfe5056d029feff4f672d7472e50c57fd46b1fa59896df0fae44", kill_on_drop: false }` [INFO] [stdout] cf7f68bb84fccfe5056d029feff4f672d7472e50c57fd46b1fa59896df0fae44 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] e16a15a7711f72061a92da34353988d5f7dd66db4a736be69de31aec4ed630a7 [INFO] running `Command { std: "docker" "start" "-a" "e16a15a7711f72061a92da34353988d5f7dd66db4a736be69de31aec4ed630a7", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Compiling autocfg v1.2.0 [INFO] [stderr] Compiling proc-macro2 v1.0.79 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking memchr v2.7.2 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking socket2 v0.5.6 [INFO] [stderr] Checking parking_lot_core v0.9.9 [INFO] [stderr] Checking bytes v1.6.0 [INFO] [stderr] Checking tonk-client v0.0.0 (/opt/rustwide/workdir/client) [INFO] [stdout] warning: unused imports: `io::BufReader`, `io::BufWriter`, `io::prelude::*` [INFO] [stdout] --> client/src/main.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fmt::Write, io::prelude::*, io::Write as IOWrite, io::BufWriter, io::BufRead, io::BufReader}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `BufRead` is imported redundantly [INFO] [stdout] --> client/src/main.rs:1:76 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fmt::Write, io::prelude::*, io::Write as IOWrite, io::BufWriter, io::BufRead, io::BufReader}; [INFO] [stdout] | -------------- ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | the item `BufRead` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `io::BufReader`, `io::BufWriter`, `io::prelude::*` [INFO] [stdout] --> client/src/main.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fmt::Write, io::prelude::*, io::Write as IOWrite, io::BufWriter, io::BufRead, io::BufReader}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `BufRead` is imported redundantly [INFO] [stdout] --> client/src/main.rs:1:76 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fmt::Write, io::prelude::*, io::Write as IOWrite, io::BufWriter, io::BufRead, io::BufReader}; [INFO] [stdout] | -------------- ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | the item `BufRead` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fmt::Write` [INFO] [stdout] --> client/src/main.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fmt::Write, io::prelude::*, io::Write as IOWrite, io::BufWriter, io::BufRead, io::BufReader}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fmt::Write` [INFO] [stdout] --> client/src/main.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fmt::Write, io::prelude::*, io::Write as IOWrite, io::BufWriter, io::BufRead, io::BufReader}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> client/src/main.rs:97:23 [INFO] [stdout] | [INFO] [stdout] 97 | ("HELLO", id) => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Down`, `Left`, and `Right` are never constructed [INFO] [stdout] --> client/src/main.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 29 | enum Direction { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 30 | Up, [INFO] [stdout] 31 | Down, [INFO] [stdout] | ^^^^ [INFO] [stdout] 32 | Left, [INFO] [stdout] | ^^^^ [INFO] [stdout] 33 | Right, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> client/src/main.rs:97:23 [INFO] [stdout] | [INFO] [stdout] 97 | ("HELLO", id) => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Fire` is never constructed [INFO] [stdout] --> client/src/main.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 47 | enum Command { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 48 | Fire(u16, u32), [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x`, `y`, `health`, and `id` are never read [INFO] [stdout] --> client/src/main.rs:131:5 [INFO] [stdout] | [INFO] [stdout] 130 | struct Player { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 131 | x: u32, [INFO] [stdout] | ^ [INFO] [stdout] 132 | y: u32, [INFO] [stdout] | ^ [INFO] [stdout] 133 | health: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 134 | id: u32, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `data` is never read [INFO] [stdout] --> client/src/main.rs:157:5 [INFO] [stdout] | [INFO] [stdout] 154 | struct Map { [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 157 | data: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get` and `set` are never used [INFO] [stdout] --> client/src/main.rs:169:8 [INFO] [stdout] | [INFO] [stdout] 160 | impl Map { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 169 | fn get(&self, x: u16, y: u16) -> Tile { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | fn set(&mut self, x: u16, y: u16, value: Tile) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Down`, `Left`, and `Right` are never constructed [INFO] [stdout] --> client/src/main.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 29 | enum Direction { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 30 | Up, [INFO] [stdout] 31 | Down, [INFO] [stdout] | ^^^^ [INFO] [stdout] 32 | Left, [INFO] [stdout] | ^^^^ [INFO] [stdout] 33 | Right, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> client/src/main.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | writeln!(self, "{command}"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Fire` is never constructed [INFO] [stdout] --> client/src/main.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 47 | enum Command { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 48 | Fire(u16, u32), [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x`, `y`, `health`, and `id` are never read [INFO] [stdout] --> client/src/main.rs:131:5 [INFO] [stdout] | [INFO] [stdout] 130 | struct Player { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 131 | x: u32, [INFO] [stdout] | ^ [INFO] [stdout] 132 | y: u32, [INFO] [stdout] | ^ [INFO] [stdout] 133 | health: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 134 | id: u32, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `data` is never read [INFO] [stdout] --> client/src/main.rs:157:5 [INFO] [stdout] | [INFO] [stdout] 154 | struct Map { [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 157 | data: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get` and `set` are never used [INFO] [stdout] --> client/src/main.rs:169:8 [INFO] [stdout] | [INFO] [stdout] 160 | impl Map { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 169 | fn get(&self, x: u16, y: u16) -> Tile { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | fn set(&mut self, x: u16, y: u16, value: Tile) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> client/src/main.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | writeln!(self, "{command}"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Compiling syn v2.0.55 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Checking tokio v1.37.0 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking tonk v0.1.0 (/opt/rustwide/workdir/server) [INFO] [stdout] warning: unused import: `GameCommand` [INFO] [stdout] --> server/src/main.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | use protocol::{GameCommand, ServerError}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AsyncReadExt` [INFO] [stdout] --> server/src/main.rs:6:34 [INFO] [stdout] | [INFO] [stdout] 6 | use tokio::io::{AsyncBufReadExt, AsyncReadExt, AsyncWriteExt}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AsyncWrite` [INFO] [stdout] --> server/src/game/mod.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use tokio::io::{AsyncWrite, AsyncWriteExt}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GameCommand` [INFO] [stdout] --> server/src/main.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | use protocol::{GameCommand, ServerError}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AsyncReadExt` [INFO] [stdout] --> server/src/main.rs:6:34 [INFO] [stdout] | [INFO] [stdout] 6 | use tokio::io::{AsyncBufReadExt, AsyncReadExt, AsyncWriteExt}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AsyncWrite` [INFO] [stdout] --> server/src/game/mod.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use tokio::io::{AsyncWrite, AsyncWriteExt}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Server` is never constructed [INFO] [stdout] --> server/src/main.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | struct Server { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `health`, `position`, `addr`, and `stream` are never read [INFO] [stdout] --> server/src/game/mod.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Player { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 19 | id: u32, [INFO] [stdout] 20 | health: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 21 | position: Position, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 22 | addr: SocketAddr, [INFO] [stdout] | ^^^^ [INFO] [stdout] 23 | stream: BufStream, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `tick_speed` is never read [INFO] [stdout] --> server/src/game/mod.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct GameSettings { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 33 | player_health: u32, [INFO] [stdout] 34 | tick_speed: Duration, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `map` is never read [INFO] [stdout] --> server/src/game/mod.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct Game { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 43 | map: Map, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `send_client` is never used [INFO] [stdout] --> server/src/game/mod.rs:61:18 [INFO] [stdout] | [INFO] [stdout] 46 | impl Game { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 61 | pub async fn send_client(&mut self, target: u32, msg: ServerResponse) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Wall` and `Player` are never constructed [INFO] [stdout] --> server/src/game/map.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub enum Tile { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 21 | Air, [INFO] [stdout] 22 | Wall, [INFO] [stdout] | ^^^^ [INFO] [stdout] 23 | Player, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Tile` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `tiles`, `width`, and `height` are never read [INFO] [stdout] --> server/src/game/map.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct Map { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 27 | tiles: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 28 | width: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 29 | height: usize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_index_from_pos`, `get_tile`, and `get_tile_mut` are never used [INFO] [stdout] --> server/src/game/map.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 32 | impl Map { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 41 | fn get_index_from_pos(&self, xy: impl Into) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn get_tile(&self, xy: impl Into) -> Option<&Tile> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn get_tile_mut(&mut self, xy: impl Into) -> Option<&mut Tile> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Direction` is never used [INFO] [stdout] --> server/src/protocol.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Direction { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Direction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Foo` is never constructed [INFO] [stdout] --> server/src/protocol.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum GameCommand { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] 13 | Foo, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GameCommand` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Motd` is never constructed [INFO] [stdout] --> server/src/protocol.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub enum ServerMessage { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] 26 | Motd { msg: String }, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ServerMessage` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> server/src/protocol.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | IOError(std::io::Error), [INFO] [stdout] | ------- ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 75 | IOError(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `UnexpectedCommand` is never constructed [INFO] [stdout] --> server/src/protocol.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 67 | pub enum ServerError { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 71 | UnexpectedCommand, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ServerError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ServerResponse` is never used [INFO] [stdout] --> server/src/protocol.rs:84:10 [INFO] [stdout] | [INFO] [stdout] 84 | pub type ServerResponse = Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `transpose_flatten` is never used [INFO] [stdout] --> server/src/util/mod.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait AsyncMap [INFO] [stdout] | -------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 10 | async fn transpose_flatten(self, fun: Fun) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Server` is never constructed [INFO] [stdout] --> server/src/main.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | struct Server { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `health`, `position`, `addr`, and `stream` are never read [INFO] [stdout] --> server/src/game/mod.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Player { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 19 | id: u32, [INFO] [stdout] 20 | health: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 21 | position: Position, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 22 | addr: SocketAddr, [INFO] [stdout] | ^^^^ [INFO] [stdout] 23 | stream: BufStream, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `tick_speed` is never read [INFO] [stdout] --> server/src/game/mod.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct GameSettings { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 33 | player_health: u32, [INFO] [stdout] 34 | tick_speed: Duration, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `map` is never read [INFO] [stdout] --> server/src/game/mod.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct Game { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 43 | map: Map, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `send_client` is never used [INFO] [stdout] --> server/src/game/mod.rs:61:18 [INFO] [stdout] | [INFO] [stdout] 46 | impl Game { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 61 | pub async fn send_client(&mut self, target: u32, msg: ServerResponse) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Wall` and `Player` are never constructed [INFO] [stdout] --> server/src/game/map.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub enum Tile { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 21 | Air, [INFO] [stdout] 22 | Wall, [INFO] [stdout] | ^^^^ [INFO] [stdout] 23 | Player, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Tile` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `tiles`, `width`, and `height` are never read [INFO] [stdout] --> server/src/game/map.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct Map { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 27 | tiles: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 28 | width: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 29 | height: usize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_index_from_pos`, `get_tile`, and `get_tile_mut` are never used [INFO] [stdout] --> server/src/game/map.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 32 | impl Map { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 41 | fn get_index_from_pos(&self, xy: impl Into) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn get_tile(&self, xy: impl Into) -> Option<&Tile> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn get_tile_mut(&mut self, xy: impl Into) -> Option<&mut Tile> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Direction` is never used [INFO] [stdout] --> server/src/protocol.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Direction { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Direction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Foo` is never constructed [INFO] [stdout] --> server/src/protocol.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum GameCommand { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] 13 | Foo, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GameCommand` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Motd` is never constructed [INFO] [stdout] --> server/src/protocol.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub enum ServerMessage { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] 26 | Motd { msg: String }, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ServerMessage` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> server/src/protocol.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | IOError(std::io::Error), [INFO] [stdout] | ------- ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 75 | IOError(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `UnexpectedCommand` is never constructed [INFO] [stdout] --> server/src/protocol.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 67 | pub enum ServerError { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 71 | UnexpectedCommand, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ServerError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ServerResponse` is never used [INFO] [stdout] --> server/src/protocol.rs:84:10 [INFO] [stdout] | [INFO] [stdout] 84 | pub type ServerResponse = Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `transpose_flatten` is never used [INFO] [stdout] --> server/src/util/mod.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait AsyncMap [INFO] [stdout] | -------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 10 | async fn transpose_flatten(self, fun: Fun) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.67s [INFO] running `Command { std: "docker" "inspect" "e16a15a7711f72061a92da34353988d5f7dd66db4a736be69de31aec4ed630a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e16a15a7711f72061a92da34353988d5f7dd66db4a736be69de31aec4ed630a7", kill_on_drop: false }` [INFO] [stdout] e16a15a7711f72061a92da34353988d5f7dd66db4a736be69de31aec4ed630a7 [INFO] checking Lila-Kuhlt/Tonk against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLila-Kuhlt%2FTonk" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Lila-Kuhlt/Tonk 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/Lila-Kuhlt/Tonk [INFO] finished tweaking git repo https://github.com/Lila-Kuhlt/Tonk [INFO] tweaked toml for git repo https://github.com/Lila-Kuhlt/Tonk written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Lila-Kuhlt/Tonk 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] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Updating crates.io index [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 481b64c215ca6d11b63986c6734eb3d77dda225ae9f711237790476f853ca7bc [INFO] running `Command { std: "docker" "start" "-a" "481b64c215ca6d11b63986c6734eb3d77dda225ae9f711237790476f853ca7bc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "481b64c215ca6d11b63986c6734eb3d77dda225ae9f711237790476f853ca7bc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "481b64c215ca6d11b63986c6734eb3d77dda225ae9f711237790476f853ca7bc", kill_on_drop: false }` [INFO] [stdout] 481b64c215ca6d11b63986c6734eb3d77dda225ae9f711237790476f853ca7bc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] e878f8e1745a939962c5cfe153c8ba2986accdf2743030deb44b9c9be8b0fe0e [INFO] running `Command { std: "docker" "start" "-a" "e878f8e1745a939962c5cfe153c8ba2986accdf2743030deb44b9c9be8b0fe0e", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Compiling autocfg v1.2.0 [INFO] [stderr] Compiling proc-macro2 v1.0.79 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Checking memchr v2.7.2 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking socket2 v0.5.6 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Checking bytes v1.6.0 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Checking parking_lot_core v0.9.9 [INFO] [stderr] Checking tonk-client v0.0.0 (/opt/rustwide/workdir/client) [INFO] [stdout] warning: unused imports: `io::BufReader`, `io::BufWriter`, `io::prelude::*` [INFO] [stdout] --> client/src/main.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fmt::Write, io::prelude::*, io::Write as IOWrite, io::BufWriter, io::BufRead, io::BufReader}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `BufRead` is imported redundantly [INFO] [stdout] --> client/src/main.rs:1:76 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fmt::Write, io::prelude::*, io::Write as IOWrite, io::BufWriter, io::BufRead, io::BufReader}; [INFO] [stdout] | -------------- ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | the item `BufRead` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fmt::Write` [INFO] [stdout] --> client/src/main.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fmt::Write, io::prelude::*, io::Write as IOWrite, io::BufWriter, io::BufRead, io::BufReader}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> client/src/main.rs:97:23 [INFO] [stdout] | [INFO] [stdout] 97 | ("HELLO", id) => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Down`, `Left`, and `Right` are never constructed [INFO] [stdout] --> client/src/main.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 29 | enum Direction { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 30 | Up, [INFO] [stdout] 31 | Down, [INFO] [stdout] | ^^^^ [INFO] [stdout] 32 | Left, [INFO] [stdout] | ^^^^ [INFO] [stdout] 33 | Right, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Fire` is never constructed [INFO] [stdout] --> client/src/main.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 47 | enum Command { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 48 | Fire(u16, u32), [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x`, `y`, `health`, and `id` are never read [INFO] [stdout] --> client/src/main.rs:131:5 [INFO] [stdout] | [INFO] [stdout] 130 | struct Player { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 131 | x: u32, [INFO] [stdout] | ^ [INFO] [stdout] 132 | y: u32, [INFO] [stdout] | ^ [INFO] [stdout] 133 | health: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 134 | id: u32, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `data` is never read [INFO] [stdout] --> client/src/main.rs:157:5 [INFO] [stdout] | [INFO] [stdout] 154 | struct Map { [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 157 | data: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get` and `set` are never used [INFO] [stdout] --> client/src/main.rs:169:8 [INFO] [stdout] | [INFO] [stdout] 160 | impl Map { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 169 | fn get(&self, x: u16, y: u16) -> Tile { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | fn set(&mut self, x: u16, y: u16, value: Tile) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> client/src/main.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | writeln!(self, "{command}"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `io::BufReader`, `io::BufWriter`, `io::prelude::*` [INFO] [stdout] --> client/src/main.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fmt::Write, io::prelude::*, io::Write as IOWrite, io::BufWriter, io::BufRead, io::BufReader}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `BufRead` is imported redundantly [INFO] [stdout] --> client/src/main.rs:1:76 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fmt::Write, io::prelude::*, io::Write as IOWrite, io::BufWriter, io::BufRead, io::BufReader}; [INFO] [stdout] | -------------- ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | the item `BufRead` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fmt::Write` [INFO] [stdout] --> client/src/main.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fmt::Write, io::prelude::*, io::Write as IOWrite, io::BufWriter, io::BufRead, io::BufReader}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> client/src/main.rs:97:23 [INFO] [stdout] | [INFO] [stdout] 97 | ("HELLO", id) => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Down`, `Left`, and `Right` are never constructed [INFO] [stdout] --> client/src/main.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 29 | enum Direction { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 30 | Up, [INFO] [stdout] 31 | Down, [INFO] [stdout] | ^^^^ [INFO] [stdout] 32 | Left, [INFO] [stdout] | ^^^^ [INFO] [stdout] 33 | Right, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Fire` is never constructed [INFO] [stdout] --> client/src/main.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 47 | enum Command { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 48 | Fire(u16, u32), [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x`, `y`, `health`, and `id` are never read [INFO] [stdout] --> client/src/main.rs:131:5 [INFO] [stdout] | [INFO] [stdout] 130 | struct Player { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 131 | x: u32, [INFO] [stdout] | ^ [INFO] [stdout] 132 | y: u32, [INFO] [stdout] | ^ [INFO] [stdout] 133 | health: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 134 | id: u32, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `data` is never read [INFO] [stdout] --> client/src/main.rs:157:5 [INFO] [stdout] | [INFO] [stdout] 154 | struct Map { [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 157 | data: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get` and `set` are never used [INFO] [stdout] --> client/src/main.rs:169:8 [INFO] [stdout] | [INFO] [stdout] 160 | impl Map { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 169 | fn get(&self, x: u16, y: u16) -> Tile { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | fn set(&mut self, x: u16, y: u16, value: Tile) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> client/src/main.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | writeln!(self, "{command}"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling syn v2.0.55 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Checking tokio v1.37.0 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking tonk v0.1.0 (/opt/rustwide/workdir/server) [INFO] [stdout] warning: unused import: `GameCommand` [INFO] [stdout] --> server/src/main.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | use protocol::{GameCommand, ServerError}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AsyncReadExt` [INFO] [stdout] --> server/src/main.rs:6:34 [INFO] [stdout] | [INFO] [stdout] 6 | use tokio::io::{AsyncBufReadExt, AsyncReadExt, AsyncWriteExt}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AsyncWrite` [INFO] [stdout] --> server/src/game/mod.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use tokio::io::{AsyncWrite, AsyncWriteExt}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GameCommand` [INFO] [stdout] --> server/src/main.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | use protocol::{GameCommand, ServerError}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AsyncReadExt` [INFO] [stdout] --> server/src/main.rs:6:34 [INFO] [stdout] | [INFO] [stdout] 6 | use tokio::io::{AsyncBufReadExt, AsyncReadExt, AsyncWriteExt}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AsyncWrite` [INFO] [stdout] --> server/src/game/mod.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use tokio::io::{AsyncWrite, AsyncWriteExt}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Server` is never constructed [INFO] [stdout] --> server/src/main.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | struct Server { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `health`, `position`, `addr`, and `stream` are never read [INFO] [stdout] --> server/src/game/mod.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Player { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 19 | id: u32, [INFO] [stdout] 20 | health: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 21 | position: Position, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 22 | addr: SocketAddr, [INFO] [stdout] | ^^^^ [INFO] [stdout] 23 | stream: BufStream, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `tick_speed` is never read [INFO] [stdout] --> server/src/game/mod.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct GameSettings { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 33 | player_health: u32, [INFO] [stdout] 34 | tick_speed: Duration, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `map` is never read [INFO] [stdout] --> server/src/game/mod.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct Game { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 43 | map: Map, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `send_client` is never used [INFO] [stdout] --> server/src/game/mod.rs:61:18 [INFO] [stdout] | [INFO] [stdout] 46 | impl Game { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 61 | pub async fn send_client(&mut self, target: u32, msg: ServerResponse) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Wall` and `Player` are never constructed [INFO] [stdout] --> server/src/game/map.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub enum Tile { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 21 | Air, [INFO] [stdout] 22 | Wall, [INFO] [stdout] | ^^^^ [INFO] [stdout] 23 | Player, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Tile` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `tiles`, `width`, and `height` are never read [INFO] [stdout] --> server/src/game/map.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct Map { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 27 | tiles: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 28 | width: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 29 | height: usize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_index_from_pos`, `get_tile`, and `get_tile_mut` are never used [INFO] [stdout] --> server/src/game/map.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 32 | impl Map { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 41 | fn get_index_from_pos(&self, xy: impl Into) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn get_tile(&self, xy: impl Into) -> Option<&Tile> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn get_tile_mut(&mut self, xy: impl Into) -> Option<&mut Tile> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Direction` is never used [INFO] [stdout] --> server/src/protocol.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Direction { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Direction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Foo` is never constructed [INFO] [stdout] --> server/src/protocol.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum GameCommand { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] 13 | Foo, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GameCommand` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Motd` is never constructed [INFO] [stdout] --> server/src/protocol.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub enum ServerMessage { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] 26 | Motd { msg: String }, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ServerMessage` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> server/src/protocol.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | IOError(std::io::Error), [INFO] [stdout] | ------- ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 75 | IOError(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `UnexpectedCommand` is never constructed [INFO] [stdout] --> server/src/protocol.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 67 | pub enum ServerError { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 71 | UnexpectedCommand, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ServerError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ServerResponse` is never used [INFO] [stdout] --> server/src/protocol.rs:84:10 [INFO] [stdout] | [INFO] [stdout] 84 | pub type ServerResponse = Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `transpose_flatten` is never used [INFO] [stdout] --> server/src/util/mod.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait AsyncMap [INFO] [stdout] | -------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 10 | async fn transpose_flatten(self, fun: Fun) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Server` is never constructed [INFO] [stdout] --> server/src/main.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | struct Server { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `health`, `position`, `addr`, and `stream` are never read [INFO] [stdout] --> server/src/game/mod.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Player { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 19 | id: u32, [INFO] [stdout] 20 | health: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 21 | position: Position, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 22 | addr: SocketAddr, [INFO] [stdout] | ^^^^ [INFO] [stdout] 23 | stream: BufStream, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `tick_speed` is never read [INFO] [stdout] --> server/src/game/mod.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct GameSettings { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 33 | player_health: u32, [INFO] [stdout] 34 | tick_speed: Duration, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `map` is never read [INFO] [stdout] --> server/src/game/mod.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct Game { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 43 | map: Map, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `send_client` is never used [INFO] [stdout] --> server/src/game/mod.rs:61:18 [INFO] [stdout] | [INFO] [stdout] 46 | impl Game { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 61 | pub async fn send_client(&mut self, target: u32, msg: ServerResponse) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Wall` and `Player` are never constructed [INFO] [stdout] --> server/src/game/map.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub enum Tile { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 21 | Air, [INFO] [stdout] 22 | Wall, [INFO] [stdout] | ^^^^ [INFO] [stdout] 23 | Player, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Tile` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `tiles`, `width`, and `height` are never read [INFO] [stdout] --> server/src/game/map.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct Map { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 27 | tiles: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 28 | width: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 29 | height: usize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_index_from_pos`, `get_tile`, and `get_tile_mut` are never used [INFO] [stdout] --> server/src/game/map.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 32 | impl Map { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 41 | fn get_index_from_pos(&self, xy: impl Into) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn get_tile(&self, xy: impl Into) -> Option<&Tile> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn get_tile_mut(&mut self, xy: impl Into) -> Option<&mut Tile> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Direction` is never used [INFO] [stdout] --> server/src/protocol.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Direction { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Direction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Foo` is never constructed [INFO] [stdout] --> server/src/protocol.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum GameCommand { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] 13 | Foo, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GameCommand` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Motd` is never constructed [INFO] [stdout] --> server/src/protocol.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub enum ServerMessage { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] 26 | Motd { msg: String }, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ServerMessage` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> server/src/protocol.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | IOError(std::io::Error), [INFO] [stdout] | ------- ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 75 | IOError(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `UnexpectedCommand` is never constructed [INFO] [stdout] --> server/src/protocol.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 67 | pub enum ServerError { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 71 | UnexpectedCommand, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ServerError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ServerResponse` is never used [INFO] [stdout] --> server/src/protocol.rs:84:10 [INFO] [stdout] | [INFO] [stdout] 84 | pub type ServerResponse = Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `transpose_flatten` is never used [INFO] [stdout] --> server/src/util/mod.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait AsyncMap [INFO] [stdout] | -------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 10 | async fn transpose_flatten(self, fun: Fun) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.90s [INFO] running `Command { std: "docker" "inspect" "e878f8e1745a939962c5cfe153c8ba2986accdf2743030deb44b9c9be8b0fe0e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e878f8e1745a939962c5cfe153c8ba2986accdf2743030deb44b9c9be8b0fe0e", kill_on_drop: false }` [INFO] [stdout] e878f8e1745a939962c5cfe153c8ba2986accdf2743030deb44b9c9be8b0fe0e