[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/bf9226cb74a99597189b3c7147fc188895c95020 against try#c387b04bf028733cd561d62128c8a5eee4bc1458+rustflags=-Dtail_expr_drop_order for pr-130930 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLila-Kuhlt%2FTonk" "/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/Lila-Kuhlt/Tonk on toolchain c387b04bf028733cd561d62128c8a5eee4bc1458 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "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-5-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" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "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] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 11 packages to latest compatible versions [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] [stderr] Blocking waiting for file lock on package cache [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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 71807767cea2edb76056c6604b4aeb911f3d69d5675886a4eeefb85ed8e2a7cb [INFO] running `Command { std: "docker" "start" "-a" "71807767cea2edb76056c6604b4aeb911f3d69d5675886a4eeefb85ed8e2a7cb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "71807767cea2edb76056c6604b4aeb911f3d69d5675886a4eeefb85ed8e2a7cb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "71807767cea2edb76056c6604b4aeb911f3d69d5675886a4eeefb85ed8e2a7cb", kill_on_drop: false }` [INFO] [stdout] 71807767cea2edb76056c6604b4aeb911f3d69d5675886a4eeefb85ed8e2a7cb [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 -Dtail_expr_drop_order" "-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b994f5bb67acb23c902097b5e4f019b34699475b9e7eda488ec701b67d49db80 [INFO] running `Command { std: "docker" "start" "-a" "b994f5bb67acb23c902097b5e4f019b34699475b9e7eda488ec701b67d49db80", 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] Compiling libc v0.2.153 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Checking pin-project-lite v0.2.13 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Checking tonk-client v0.0.0 (/opt/rustwide/workdir/client) [INFO] [stdout] warning: unused imports: `io::BufReader`, `io::BufWriter`, and `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: unused imports: `io::BufReader`, `io::BufWriter`, and `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: 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] [stderr] Checking futures-channel v0.3.30 [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 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: 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: 9 warnings emitted [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: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling syn v2.0.55 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking socket2 v0.5.6 [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] = note: `ServerError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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: 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: 18 warnings emitted [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] = note: `ServerError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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 7.51s [INFO] running `Command { std: "docker" "inspect" "b994f5bb67acb23c902097b5e4f019b34699475b9e7eda488ec701b67d49db80", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b994f5bb67acb23c902097b5e4f019b34699475b9e7eda488ec701b67d49db80", kill_on_drop: false }` [INFO] [stdout] b994f5bb67acb23c902097b5e4f019b34699475b9e7eda488ec701b67d49db80